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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.006052/0.006053, allocations: 101.7 kB / 15.73 MB, free: 6.051 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.001556/0.001557, allocations: 194.2 kB / 16.67 MB, free: 5.98 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.409/1.409, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.738/2.738, allocations: 461.9 MB / 0.7347 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 67.84 kB / 1.054 GB, free: 7.133 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2947/0.2961, allocations: 157.4 MB / 1.208 GB, free: 9.629 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.04254/0.3387, allocations: 37.96 MB / 1.245 GB, free: 3.535 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.719/1.058, allocations: 10.98 MB / 1.256 GB, free: 12.13 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004162/1.062, allocations: 155.5 kB / 1.256 GB, free: 12.13 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.01043/1.072, allocations: 4.359 MB / 1.26 GB, free: 12.04 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.006702/1.079, allocations: 2.218 MB / 1.262 GB, free: 11.41 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005444/1.085, allocations: 2.174 MB / 1.264 GB, free: 11.27 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01262/1.097, allocations: 9.282 MB / 1.273 GB, free: 10.09 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01638/1.114, allocations: 11.26 MB / 1.284 GB, free: 6.797 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00969/1.123, allocations: 4.051 MB / 1.288 GB, free: 5.121 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009654/1.133, allocations: 4.507 MB / 1.293 GB, free: 3.445 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.003145/1.136, allocations: 0.8264 MB / 1.293 GB, free: 3.441 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007414/1.144, allocations: 1.592 MB / 1.295 GB, free: 3.262 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.007034/1.151, allocations: 3.145 MB / 1.298 GB, free: 1.973 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.01084/1.162, allocations: 3.655 MB / 1.302 GB, free: 15.65 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.01738/1.179, allocations: 12.32 MB / 1.314 GB, free: 11.23 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/1.179, allocations: 0 / 1.314 GB, free: 11.23 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.373e-06/1.179, allocations: 0 / 1.314 GB, free: 11.23 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0003809/1.179, allocations: 0 / 1.314 GB, free: 11.23 MB / 1.014 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.01972/1.199, allocations: 6.318 MB / 1.32 GB, free: 7.18 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/1.199, allocations: 9.406 kB / 1.32 GB, free: 7.18 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007653/1.207, allocations: 1.066 MB / 1.321 GB, free: 6.672 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01134/1.218, allocations: 3.607 MB / 1.324 GB, free: 4.402 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006234/1.219, allocations: 421.8 kB / 1.325 GB, free: 4.223 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002932/1.222, allocations: 0.5433 MB / 1.325 GB, free: 4.047 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02725/1.249, allocations: 9.383 MB / 1.335 GB, free: 14.33 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002841/1.249, allocations: 29.53 kB / 1.335 GB, free: 14.31 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002485/1.252, allocations: 244.6 kB / 1.335 GB, free: 14.14 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007265/1.253, allocations: 418.5 kB / 1.335 GB, free: 14.04 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01623/1.269, allocations: 7.127 MB / 1.342 GB, free: 10.38 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05499/1.324, allocations: 41 MB / 1.382 GB, free: 14.54 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005274/1.329, allocations: 3.105 MB / 1.385 GB, free: 11.43 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003266/1.333, allocations: 2.157 MB / 1.387 GB, free: 9.273 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001663/1.333, allocations: 22 kB / 1.387 GB, free: 9.254 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.283e-05/1.333, allocations: 56.56 kB / 1.387 GB, free: 9.188 MB / 1.076 GB Notification: Performance of pre-optimization done (n=209): time 4.448e-06/1.333, allocations: 0 / 1.387 GB, free: 9.188 MB / 1.076 GB Notification: Performance of matching and sorting (n=212): time 0.02632/1.359, allocations: 10.56 MB / 1.398 GB, free: 14.54 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.641e-05/1.359, allocations: 81.34 kB / 1.398 GB, free: 14.45 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004461/1.364, allocations: 2.005 MB / 1.4 GB, free: 12.42 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 0.0005292/1.364, allocations: 61.7 kB / 1.4 GB, free: 12.36 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 0.001836/1.366, allocations: 2.4 MB / 1.402 GB, free: 9.934 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 0.001018/1.367, allocations: 0.7288 MB / 1.403 GB, free: 9.211 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001548/1.369, allocations: 481.1 kB / 1.403 GB, free: 8.734 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0001054/1.369, allocations: 301.1 kB / 1.404 GB, free: 8.438 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002266/1.371, allocations: 1.376 MB / 1.405 GB, free: 7.059 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002808/1.374, allocations: 2.107 MB / 1.407 GB, free: 4.637 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00517/1.379, allocations: 3.768 MB / 1.411 GB, free: 0.5664 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.77e-05/1.379, allocations: 4 kB / 1.411 GB, free: 0.5625 MB / 1.092 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.008787/1.388, allocations: 5.064 MB / 1.416 GB, free: 11.47 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 4.362e-05/1.388, allocations: 21.39 kB / 1.416 GB, free: 11.45 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.438e-05/1.388, allocations: 20 kB / 1.416 GB, free: 11.43 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003795/1.392, allocations: 1.594 MB / 1.417 GB, free: 9.832 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001819/1.394, allocations: 451.2 kB / 1.418 GB, free: 9.391 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02284/1.417, allocations: 18.58 MB / 1.436 GB, free: 6.262 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002515/1.419, allocations: 147.9 kB / 1.436 GB, free: 6.117 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004711/1.42, allocations: 104 kB / 1.436 GB, free: 6.016 MB / 1.123 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.0038/1.423, allocations: 1.948 MB / 1.438 GB, free: 4.059 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007434/1.424, allocations: 284.7 kB / 1.438 GB, free: 3.777 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00742/1.432, allocations: 4.459 MB / 1.443 GB, free: 15.29 MB / 1.139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.897e-05/1.432, allocations: 24.08 kB / 1.443 GB, free: 15.26 MB / 1.139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.46e-05/1.432, allocations: 16 kB / 1.443 GB, free: 15.25 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.153e-05/1.432, allocations: 11.95 kB / 1.443 GB, free: 15.23 MB / 1.139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01757/1.449, allocations: 9.667 MB / 1.452 GB, free: 5.469 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.681e-05/1.449, allocations: 16 kB / 1.452 GB, free: 5.453 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001029/1.45, allocations: 223.7 kB / 1.452 GB, free: 5.234 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003491/1.454, allocations: 1.43 MB / 1.454 GB, free: 3.793 MB / 1.139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002296/1.454, allocations: 40 kB / 1.454 GB, free: 3.754 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02334/1.477, allocations: 18.56 MB / 1.472 GB, free: 0.6367 MB / 1.154 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/1.478, allocations: 4 kB / 1.472 GB, free: 0.6328 MB / 1.154 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007975/1.486, allocations: 4.548 MB / 1.476 GB, free: 12 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001712/1.487, allocations: 0.6343 MB / 1.477 GB, free: 11.34 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007375/1.488, allocations: 40 kB / 1.477 GB, free: 11.3 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001648/1.49, allocations: 115.8 kB / 1.477 GB, free: 11.19 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005126/1.49, allocations: 181.6 kB / 1.477 GB, free: 11.01 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001708/1.49, allocations: 56 kB / 1.477 GB, free: 10.95 MB / 1.17 GB Notification: Performance of sorting global known variables: time 0.002193/1.493, allocations: 1.327 MB / 1.479 GB, free: 9.617 MB / 1.17 GB Notification: Performance of sort global known variables: time 1.683e-06/1.493, allocations: 0 / 1.479 GB, free: 9.617 MB / 1.17 GB Notification: Performance of remove unused functions: time 0.004099/1.497, allocations: 1.141 MB / 1.48 GB, free: 8.477 MB / 1.17 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.0003337/1.497, allocations: 161.9 kB / 1.48 GB, free: 8.312 MB / 1.17 GB Notification: Performance of simCode: created initialization part: time 0.007419/1.504, allocations: 4.722 MB / 1.484 GB, free: 3.551 MB / 1.17 GB Notification: Performance of simCode: created event and clocks part: time 7.194e-06/1.504, allocations: 0 / 1.484 GB, free: 3.551 MB / 1.17 GB Notification: Performance of simCode: created simulation system equations: time 0.00469/1.509, allocations: 2.929 MB / 1.487 GB, free: 0.5703 MB / 1.17 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00464/1.514, allocations: 0.8827 MB / 1.488 GB, free: 15.7 MB / 1.186 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02014/1.534, allocations: 9.26 MB / 1.497 GB, free: 6.359 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005618/1.54, allocations: 3.698 MB / 1.501 GB, free: 2.629 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 0.002486/1.542, allocations: 0.5556 MB / 1.501 GB, free: 2.066 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005728/1.543, allocations: 151.4 kB / 1.502 GB, free: 1.918 MB / 1.186 GB Notification: Performance of SimCode: time 5.41e-07/1.543, allocations: 0 / 1.502 GB, free: 1.918 MB / 1.186 GB Notification: Performance of Templates: time 0.08806/1.631, allocations: 51.66 MB / 1.552 GB, free: 15.09 MB / 1.248 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