Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.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.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001252/0.001252, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001343/0.001343, allocations: 189 kB / 16.25 MB, free: 6.152 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.372/1.372, allocations: 222.9 MB / 239.9 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.765/2.765, allocations: 472.6 MB / 0.7448 GB, free: 4.879 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001245, allocations: 64.69 kB / 0.9116 GB, free: 33.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3516/0.3529, allocations: 159.9 MB / 1.068 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.03908/0.392, allocations: 37.62 MB / 1.104 GB, free: 5.008 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01951/0.4115, allocations: 10.89 MB / 1.115 GB, free: 10.09 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004888/0.4165, allocations: 143.2 kB / 1.115 GB, free: 9.949 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.01158/0.4281, allocations: 4.088 MB / 1.119 GB, free: 5.855 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.007808/0.4359, allocations: 2.049 MB / 1.121 GB, free: 3.797 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.005716/0.4417, allocations: 1.982 MB / 1.123 GB, free: 1.816 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.01153/0.4532, allocations: 9.292 MB / 1.132 GB, free: 8.496 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02084/0.4741, allocations: 13.59 MB / 1.146 GB, free: 10.8 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007557/0.4817, allocations: 4.054 MB / 1.149 GB, free: 6.73 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008817/0.4906, allocations: 4.709 MB / 1.154 GB, free: 2.008 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.002874/0.4935, allocations: 0.8281 MB / 1.155 GB, free: 1.18 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004985/0.4985, allocations: 1.584 MB / 1.156 GB, free: 15.59 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.004326/0.5028, allocations: 3.15 MB / 1.16 GB, free: 12.44 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.007135/0.51, allocations: 3.653 MB / 1.163 GB, free: 8.77 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0152/0.5252, allocations: 12.31 MB / 1.175 GB, free: 12.42 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.655e-06/0.5253, allocations: 0 / 1.175 GB, free: 12.42 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.874e-06/0.5253, allocations: 0 / 1.175 GB, free: 12.42 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 0.0003439/0.5256, allocations: 0 / 1.175 GB, free: 12.42 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.0148/0.5404, allocations: 6.314 MB / 1.181 GB, free: 6.035 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.5405, allocations: 8.031 kB / 1.181 GB, free: 6.027 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005505/0.546, allocations: 1.067 MB / 1.182 GB, free: 4.953 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00705/0.5531, allocations: 3.419 MB / 1.186 GB, free: 1.48 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003148/0.5534, allocations: 427.7 kB / 1.186 GB, free: 1.062 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001592/0.555, allocations: 0.5471 MB / 1.187 GB, free: 0.5156 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0185/0.5735, allocations: 9.377 MB / 1.196 GB, free: 6.805 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001272/0.5737, allocations: 15.88 kB / 1.196 GB, free: 6.789 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005821/0.5743, allocations: 248 kB / 1.196 GB, free: 6.547 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000549/0.5749, allocations: 418.9 kB / 1.196 GB, free: 6.137 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01167/0.5865, allocations: 7.127 MB / 1.203 GB, free: 15 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04795/0.6345, allocations: 41.3 MB / 1.244 GB, free: 1.957 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.6198/1.254, allocations: 3.094 MB / 1.247 GB, free: 163.8 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004569/1.259, allocations: 2.139 MB / 1.249 GB, free: 163.8 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001756/1.259, allocations: 25.17 kB / 1.249 GB, free: 163.8 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.633e-05/1.259, allocations: 60.05 kB / 1.249 GB, free: 163.8 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=209): time 4.448e-06/1.259, allocations: 0 / 1.249 GB, free: 163.8 MB / 0.9981 GB Notification: Performance of matching and sorting (n=212): time 0.02452/1.284, allocations: 10.56 MB / 1.259 GB, free: 161.6 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.627e-05/1.284, allocations: 72.81 kB / 1.259 GB, free: 161.6 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003207/1.287, allocations: 2.011 MB / 1.261 GB, free: 160.8 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002256/1.287, allocations: 64.23 kB / 1.261 GB, free: 160.8 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001741/1.289, allocations: 2.399 MB / 1.264 GB, free: 158.9 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006834/1.29, allocations: 0.733 MB / 1.264 GB, free: 158.4 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008859/1.291, allocations: 480.7 kB / 1.265 GB, free: 158.1 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.185e-05/1.291, allocations: 301.7 kB / 1.265 GB, free: 157.8 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00204/1.293, allocations: 1.374 MB / 1.266 GB, free: 157.3 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002725/1.295, allocations: 2.107 MB / 1.269 GB, free: 155.9 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004383/1.3, allocations: 3.768 MB / 1.272 GB, free: 153.7 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.538e-05/1.3, allocations: 10.09 kB / 1.272 GB, free: 153.7 MB / 0.9981 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.008495/1.308, allocations: 5.058 MB / 1.277 GB, free: 151.6 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.064e-05/1.308, allocations: 19.48 kB / 1.277 GB, free: 151.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.585e-05/1.309, allocations: 22.38 kB / 1.277 GB, free: 151.6 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003844/1.312, allocations: 1.596 MB / 1.279 GB, free: 151.3 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00185/1.314, allocations: 456.8 kB / 1.279 GB, free: 151.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0231/1.337, allocations: 18.59 MB / 1.297 GB, free: 140 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00268/1.34, allocations: 147.3 kB / 1.297 GB, free: 139.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002841/1.34, allocations: 110.4 kB / 1.298 GB, free: 139.9 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (231): * Single equations (assignments): 227 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(7,31,57.1%), (6,24,66.7%), (4,18,100.0%), (4,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003276/1.344, allocations: 1.946 MB / 1.299 GB, free: 139.1 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006428/1.344, allocations: 291.8 kB / 1.3 GB, free: 138.9 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005988/1.35, allocations: 4.454 MB / 1.304 GB, free: 136.6 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-05/1.35, allocations: 19.69 kB / 1.304 GB, free: 136.6 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.964e-05/1.35, allocations: 21.06 kB / 1.304 GB, free: 136.6 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.425e-05/1.35, allocations: 11.95 kB / 1.304 GB, free: 136.6 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01345/1.364, allocations: 9.663 MB / 1.314 GB, free: 130.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.979e-06/1.364, allocations: 11.72 kB / 1.314 GB, free: 130.9 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008751/1.365, allocations: 229.5 kB / 1.314 GB, free: 130.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002891/1.368, allocations: 1.438 MB / 1.315 GB, free: 130.2 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001346/1.368, allocations: 47.45 kB / 1.315 GB, free: 130.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.017/1.385, allocations: 18.57 MB / 1.333 GB, free: 111.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/1.385, allocations: 7.984 kB / 1.333 GB, free: 111.1 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006077/1.391, allocations: 4.537 MB / 1.338 GB, free: 106.5 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001403/1.392, allocations: 0.6306 MB / 1.338 GB, free: 105.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004328/1.393, allocations: 40 kB / 1.338 GB, free: 105.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001258/1.394, allocations: 123.8 kB / 1.339 GB, free: 105.7 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005774/1.395, allocations: 189.3 kB / 1.339 GB, free: 105.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001255/1.395, allocations: 60 kB / 1.339 GB, free: 105.5 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001578/1.396, allocations: 1.318 MB / 1.34 GB, free: 104.1 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.2e-07/1.396, allocations: 4 kB / 1.34 GB, free: 104.1 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003439/1.4, allocations: 1.141 MB / 1.341 GB, free: 103 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(4,18,100.0%), (6,24,66.7%), (4,18,100.0%), (6,32,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003247/1.4, allocations: 163.1 kB / 1.341 GB, free: 102.8 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.008404/1.409, allocations: 5.904 MB / 1.347 GB, free: 96.88 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 8.305e-06/1.409, allocations: 4 kB / 1.347 GB, free: 96.88 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003646/1.412, allocations: 2.923 MB / 1.35 GB, free: 93.91 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003948/1.416, allocations: 0.8888 MB / 1.351 GB, free: 93.05 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01479/1.431, allocations: 11.77 MB / 1.362 GB, free: 81.22 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003301/1.434, allocations: 3.694 MB / 1.366 GB, free: 77.49 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002265/1.437, allocations: 0.5596 MB / 1.367 GB, free: 76.93 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003561/1.437, allocations: 151.4 kB / 1.367 GB, free: 76.78 MB / 0.9981 GB Notification: Performance of SimCode: time 8.72e-07/1.437, allocations: 0 / 1.367 GB, free: 76.78 MB / 0.9981 GB Notification: Performance of Templates: time 0.07463/1.512, allocations: 53.09 MB / 1.419 GB, free: 24.46 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches