Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z1.i.1.|Z1.i.2.|Z2.i.1.|Z2.i.2.|Z3.i.1.|Z3.i.2.|Z4.i.1.|Z4.i.2.|Z5.i.1.|Z5.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z1.i.1.|Z1.i.2.|Z2.i.1.|Z2.i.2.|Z3.i.1.|Z3.i.2.|Z4.i.1.|Z4.i.2.|Z5.i.1.|Z5.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 107.4 kB / 15.34 MB, free: 0.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001445/0.001445, allocations: 194.7 kB / 16.26 MB, free: 6.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.481/1.481, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.504/2.504, allocations: 390.2 MB / 0.6644 GB, free: 0.5703 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001319, allocations: 67.89 kB / 0.812 GB, free: 14.78 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.755/0.7563, allocations: 140.4 MB / 0.9491 GB, free: 9.211 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.006571/0.7629, allocations: 4.879 MB / 0.9539 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003904/0.7669, allocations: 2.429 MB / 0.9562 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002795/0.7672, allocations: 22.75 kB / 0.9563 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001192/0.7684, allocations: 374.9 kB / 0.9566 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0008901/0.7693, allocations: 415.4 kB / 0.957 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000735/0.77, allocations: 334 kB / 0.9573 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0009178/0.771, allocations: 0.9209 MB / 0.9582 GB, free: 2.078 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007513/0.7717, allocations: 394.4 kB / 0.9586 GB, free: 1.852 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000485/0.7722, allocations: 347.3 kB / 0.9589 GB, free: 1.66 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004596/0.7727, allocations: 358.1 kB / 0.9593 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.375e-05/0.7728, allocations: 37.84 kB / 0.9593 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007075/0.7735, allocations: 407.9 kB / 0.9597 GB, free: 1.25 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001827/0.7737, allocations: 180 kB / 0.9599 GB, free: 1.133 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0003183/0.774, allocations: 318.1 kB / 0.9602 GB, free: 0.9258 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.001037/0.7751, allocations: 0.8976 MB / 0.9611 GB, free: 340 kB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.7751, allocations: 5.078 kB / 0.9611 GB, free: 336 kB / 0.7169 GB Notification: Performance of FrontEnd: time 1.844e-06/0.7751, allocations: 0 / 0.9611 GB, free: 336 kB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.52e-05/0.7751, allocations: 0 / 0.9611 GB, free: 336 kB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001644/0.7768, allocations: 0.9379 MB / 0.962 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.319e-05/0.7768, allocations: 9.344 kB / 0.962 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001307/0.7781, allocations: 211.5 kB / 0.9622 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007051/0.7789, allocations: 486.6 kB / 0.9627 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.978e-05/0.7789, allocations: 34.58 kB / 0.9627 GB, free: 15.03 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.655e-05/0.779, allocations: 49.36 kB / 0.9627 GB, free: 15.01 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001279/0.7803, allocations: 0.8553 MB / 0.9636 GB, free: 14.3 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.766e-05/0.7804, allocations: 7.406 kB / 0.9636 GB, free: 14.3 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.595e-05/0.7804, allocations: 21.31 kB / 0.9636 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000101/0.7805, allocations: 61.3 kB / 0.9637 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009327/0.7815, allocations: 0.5717 MB / 0.9642 GB, free: 13.98 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004727/0.7862, allocations: 5.647 MB / 0.9697 GB, free: 8.543 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007078/0.7869, allocations: 458.9 kB / 0.9702 GB, free: 8.309 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003434/0.7873, allocations: 227.6 kB / 0.9704 GB, free: 8.191 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.219e-05/0.7873, allocations: 3.594 kB / 0.9704 GB, free: 8.191 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.712e-05/0.7874, allocations: 36.72 kB / 0.9704 GB, free: 8.148 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=32): time 2.114e-06/0.7874, allocations: 0 / 0.9704 GB, free: 8.148 MB / 0.7325 GB Notification: Performance of matching and sorting (n=33): time 0.002807/0.7902, allocations: 1.506 MB / 0.9719 GB, free: 7.047 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.243e-05/0.7903, allocations: 58.56 kB / 0.9719 GB, free: 6.98 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007484/0.791, allocations: 0.4964 MB / 0.9724 GB, free: 6.668 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.451e-05/0.7911, allocations: 30.98 kB / 0.9725 GB, free: 6.633 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002784/0.7914, allocations: 354.7 kB / 0.9728 GB, free: 6.312 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001029/0.7915, allocations: 119.6 kB / 0.9729 GB, free: 6.211 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001658/0.7916, allocations: 111.5 kB / 0.973 GB, free: 6.141 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001813/0.7918, allocations: 363.2 kB / 0.9734 GB, free: 5.789 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002974/0.7921, allocations: 193.5 kB / 0.9736 GB, free: 5.699 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005186/0.7927, allocations: 444.7 kB / 0.974 GB, free: 5.27 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008196/0.7935, allocations: 0.6893 MB / 0.9746 GB, free: 4.699 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.7935, allocations: 2.938 kB / 0.9747 GB, free: 4.699 MB / 0.7325 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001404/0.7949, allocations: 0.8113 MB / 0.9754 GB, free: 4.242 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.444e-05/0.7949, allocations: 9.125 kB / 0.9755 GB, free: 4.242 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/0.795, allocations: 7.875 kB / 0.9755 GB, free: 4.242 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005109/0.7955, allocations: 165.8 kB / 0.9756 GB, free: 4.133 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004565/0.7959, allocations: 122.8 kB / 0.9757 GB, free: 4.102 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003385/0.7993, allocations: 4.331 MB / 0.98 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005001/0.7999, allocations: 41.84 kB / 0.98 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.826e-05/0.7999, allocations: 34.77 kB / 0.98 GB, free: 15.66 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003667/0.8003, allocations: 209.6 kB / 0.9802 GB, free: 15.49 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001078/0.8004, allocations: 61.12 kB / 0.9803 GB, free: 15.46 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001193/0.8016, allocations: 0.6018 MB / 0.9809 GB, free: 15.07 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.8016, allocations: 3.812 kB / 0.9809 GB, free: 15.07 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.8017, allocations: 2.562 kB / 0.9809 GB, free: 15.07 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.296e-05/0.8017, allocations: 3.984 kB / 0.9809 GB, free: 15.07 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002571/0.8042, allocations: 1.254 MB / 0.9821 GB, free: 14.16 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.413e-06/0.8043, allocations: 2.719 kB / 0.9821 GB, free: 14.16 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003107/0.8046, allocations: 58.36 kB / 0.9822 GB, free: 14.14 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004851/0.8051, allocations: 144.5 kB / 0.9823 GB, free: 14.04 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.265e-05/0.8051, allocations: 11 kB / 0.9823 GB, free: 14.03 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003675/0.8088, allocations: 4.333 MB / 0.9866 GB, free: 9.621 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.501e-06/0.8088, allocations: 6.844 kB / 0.9866 GB, free: 9.617 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001222/0.8101, allocations: 0.7155 MB / 0.9873 GB, free: 8.883 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002398/0.8103, allocations: 164.3 kB / 0.9874 GB, free: 8.703 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.97e-05/0.8104, allocations: 15.89 kB / 0.9874 GB, free: 8.688 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002671/0.8107, allocations: 19.98 kB / 0.9875 GB, free: 8.668 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.973e-05/0.8108, allocations: 35.89 kB / 0.9875 GB, free: 8.633 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.473e-05/0.8108, allocations: 12 kB / 0.9875 GB, free: 8.621 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003764/0.8112, allocations: 330.8 kB / 0.9878 GB, free: 8.301 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8112, allocations: 0 / 0.9878 GB, free: 8.301 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0007317/0.8119, allocations: 144 kB / 0.988 GB, free: 8.16 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001641/0.8121, allocations: 111.9 kB / 0.9881 GB, free: 8.043 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001646/0.8137, allocations: 1.083 MB / 0.9891 GB, free: 6.879 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.8138, allocations: 0 / 0.9891 GB, free: 6.879 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0009012/0.8147, allocations: 0.7271 MB / 0.9898 GB, free: 6.07 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009911/0.8157, allocations: 204.7 kB / 0.99 GB, free: 5.879 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001845/0.8175, allocations: 1.266 MB / 0.9913 GB, free: 4.559 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004759/0.818, allocations: 0.9057 MB / 0.9921 GB, free: 3.621 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0003422/0.8184, allocations: 121.3 kB / 0.9923 GB, free: 3.5 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.873e-05/0.8185, allocations: 39.42 kB / 0.9923 GB, free: 3.465 MB / 0.7481 GB Notification: Performance of SimCode: time 6.21e-07/0.8185, allocations: 0 / 0.9923 GB, free: 3.465 MB / 0.7481 GB Notification: Performance of Templates: time 0.01427/0.8327, allocations: 7.648 MB / 0.9998 GB, free: 11.91 MB / 0.7637 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches