Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.VariableImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z_L.i.1.|Z_L.i.2.|Z_C.i.1.|Z_C.i.2.|Z_R.i.1.|Z_R.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z_L.i.1.|Z_L.i.2.|Z_C.i.1.|Z_C.i.2.|Z_R.i.1.|Z_R.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00152/0.00152, allocations: 106.1 kB / 16.27 MB, free: 6.414 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.001506/0.001506, allocations: 189.7 kB / 17.2 MB, free: 5.953 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.386/1.386, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.726/2.726, allocations: 482.4 MB / 0.7553 GB, free: 6.961 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001877/0.001877, allocations: 67.58 kB / 0.9245 GB, free: 15.96 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8421/0.844, allocations: 162.2 MB / 1.083 GB, free: 1.637 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.005335/0.8494, allocations: 3.732 MB / 1.087 GB, free: 15.06 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.003424/0.8528, allocations: 1.796 MB / 1.088 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003326/0.8532, allocations: 17.25 kB / 1.088 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0009411/0.8542, allocations: 268.7 kB / 1.089 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0007776/0.8549, allocations: 292.2 kB / 1.089 GB, free: 13.49 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006908/0.8557, allocations: 261.1 kB / 1.089 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0007736/0.8564, allocations: 0.5984 MB / 1.09 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004934/0.8569, allocations: 254.2 kB / 1.09 GB, free: 12.97 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004144/0.8574, allocations: 233.7 kB / 1.09 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000372/0.8577, allocations: 241.1 kB / 1.09 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 5.364e-05/0.8578, allocations: 26.88 kB / 1.09 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006441/0.8585, allocations: 270.4 kB / 1.091 GB, free: 12.67 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001885/0.8587, allocations: 121 kB / 1.091 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.000308/0.859, allocations: 215.6 kB / 1.091 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0009498/0.8599, allocations: 0.5806 MB / 1.092 GB, free: 12.28 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.8599, allocations: 1.344 kB / 1.092 GB, free: 12.28 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.044e-06/0.86, allocations: 4 kB / 1.092 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.837e-06/0.86, allocations: 0 / 1.092 GB, free: 12.27 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001313/0.8613, allocations: 0.7264 MB / 1.092 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.8613, allocations: 9.562 kB / 1.092 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008988/0.8622, allocations: 136.7 kB / 1.092 GB, free: 11.67 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005263/0.8628, allocations: 380.3 kB / 1.093 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.767e-05/0.8628, allocations: 20.03 kB / 1.093 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.155e-05/0.8629, allocations: 31.61 kB / 1.093 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009145/0.8638, allocations: 0.558 MB / 1.093 GB, free: 11 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.031e-05/0.8638, allocations: 5.719 kB / 1.093 GB, free: 11 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.408e-05/0.8639, allocations: 21.14 kB / 1.093 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.08e-05/0.864, allocations: 42.36 kB / 1.093 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007671/0.8648, allocations: 404.2 kB / 1.094 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003377/0.8681, allocations: 3.329 MB / 1.097 GB, free: 7.875 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007439/0.8689, allocations: 339.6 kB / 1.097 GB, free: 7.742 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003231/0.8692, allocations: 181.7 kB / 1.098 GB, free: 7.676 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.335e-05/0.8693, allocations: 6.656 kB / 1.098 GB, free: 7.672 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.47e-05/0.8693, allocations: 32.19 kB / 1.098 GB, free: 7.633 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=26): time 2.054e-06/0.8693, allocations: 1.125 kB / 1.098 GB, free: 7.633 MB / 0.8419 GB Notification: Performance of matching and sorting (n=27): time 0.002173/0.8715, allocations: 1.065 MB / 1.099 GB, free: 7.012 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.268e-05/0.8715, allocations: 55.45 kB / 1.099 GB, free: 6.949 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000386/0.8719, allocations: 339.6 kB / 1.099 GB, free: 6.77 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.003e-05/0.872, allocations: 26.89 kB / 1.099 GB, free: 6.738 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001922/0.8722, allocations: 248.3 kB / 1.099 GB, free: 6.527 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 9.027e-05/0.8723, allocations: 99.75 kB / 1.099 GB, free: 6.449 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001239/0.8724, allocations: 75.12 kB / 1.099 GB, free: 6.406 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000165/0.8726, allocations: 346.6 kB / 1.1 GB, free: 6.078 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002799/0.8729, allocations: 146.5 kB / 1.1 GB, free: 6.035 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004119/0.8733, allocations: 293.6 kB / 1.1 GB, free: 5.805 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007079/0.874, allocations: 486.4 kB / 1.101 GB, free: 5.48 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.874, allocations: 1.5 kB / 1.101 GB, free: 5.48 MB / 0.8419 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001019/0.875, allocations: 0.5691 MB / 1.101 GB, free: 5.227 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.8751, allocations: 11.19 kB / 1.101 GB, free: 5.223 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/0.8751, allocations: 9.141 kB / 1.101 GB, free: 5.219 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003113/0.8754, allocations: 83.48 kB / 1.101 GB, free: 5.184 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003316/0.8757, allocations: 91.62 kB / 1.101 GB, free: 5.172 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.408e-05/0.8758, allocations: 8.578 kB / 1.101 GB, free: 5.172 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002695/0.876, allocations: 29.11 kB / 1.101 GB, free: 5.164 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.033e-05/0.8761, allocations: 19.11 kB / 1.101 GB, free: 5.16 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002089/0.8763, allocations: 178.2 kB / 1.102 GB, free: 5.008 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.099e-05/0.8764, allocations: 39.33 kB / 1.102 GB, free: 4.988 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009091/0.8773, allocations: 463.5 kB / 1.102 GB, free: 4.785 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.8773, allocations: 6.844 kB / 1.102 GB, free: 4.781 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.8773, allocations: 1.188 kB / 1.102 GB, free: 4.781 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.8773, allocations: 2.984 kB / 1.102 GB, free: 4.781 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00152/0.8788, allocations: 0.9723 MB / 1.103 GB, free: 4.203 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.8789, allocations: 5.062 kB / 1.103 GB, free: 4.199 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002885/0.8792, allocations: 51.23 kB / 1.103 GB, free: 4.195 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002364/0.8794, allocations: 82.38 kB / 1.103 GB, free: 4.156 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.251e-05/0.8794, allocations: 6.406 kB / 1.103 GB, free: 4.152 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.8794, allocations: 2.891 kB / 1.103 GB, free: 4.152 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.561e-06/0.8795, allocations: 1.219 kB / 1.103 GB, free: 4.152 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000919/0.8804, allocations: 0.5508 MB / 1.104 GB, free: 3.828 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001538/0.8805, allocations: 135.7 kB / 1.104 GB, free: 3.707 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.282e-05/0.8806, allocations: 10.75 kB / 1.104 GB, free: 3.699 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002327/0.8808, allocations: 20.92 kB / 1.104 GB, free: 3.695 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.512e-05/0.8809, allocations: 28.34 kB / 1.104 GB, free: 3.688 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.578e-05/0.881, allocations: 5.031 kB / 1.104 GB, free: 3.688 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002725/0.8812, allocations: 235.4 kB / 1.104 GB, free: 3.566 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.71e-07/0.8812, allocations: 0 / 1.104 GB, free: 3.566 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000431/0.8817, allocations: 88.88 kB / 1.104 GB, free: 3.555 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001465/0.8818, allocations: 110.8 kB / 1.104 GB, free: 3.453 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001017/0.8829, allocations: 0.654 MB / 1.105 GB, free: 3.027 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.8829, allocations: 5.156 kB / 1.105 GB, free: 3.023 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0005073/0.8834, allocations: 432.9 kB / 1.105 GB, free: 2.664 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007258/0.8841, allocations: 124.3 kB / 1.106 GB, free: 2.621 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001262/0.8854, allocations: 0.7639 MB / 1.106 GB, free: 2.168 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005166/0.8859, allocations: 0.8265 MB / 1.107 GB, free: 1.453 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001054/0.886, allocations: 31.75 kB / 1.107 GB, free: 1.449 MB / 0.8419 GB Notification: Performance of SimCode: time 3.31e-07/0.886, allocations: 0 / 1.107 GB, free: 1.449 MB / 0.8419 GB Notification: Performance of Templates: time 0.0154/0.9014, allocations: 9.445 MB / 1.116 GB, free: 15.26 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches