Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.ThreePhasesBalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001181/0.001181, allocations: 89.81 kB / 15.36 MB, free: 0.7383 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.01061/0.01061, allocations: 170.9 kB / 16.26 MB, free: 6.613 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.565/1.565, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.722/2.722, allocations: 443.3 MB / 0.7175 GB, free: 1.457 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0006492/0.0006495, allocations: 8.938 kB / 0.8796 GB, free: 41.53 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3449/0.3455, allocations: 155.2 MB / 1.031 GB, free: 4.348 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R): time 0.008394/0.354, allocations: 6.372 MB / 1.037 GB, free: 13.95 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.005248/0.3593, allocations: 3.048 MB / 1.04 GB, free: 10.89 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006783/0.36, allocations: 27.81 kB / 1.04 GB, free: 10.86 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0004167/0.3604, allocations: 134.9 kB / 1.04 GB, free: 10.73 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.001506/0.3619, allocations: 485.6 kB / 1.041 GB, free: 10.25 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001083/0.363, allocations: 402 kB / 1.041 GB, free: 9.863 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.002202/0.3652, allocations: 1.587 MB / 1.043 GB, free: 8.27 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002056/0.3673, allocations: 1.012 MB / 1.044 GB, free: 7.23 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009057/0.3682, allocations: 386.3 kB / 1.044 GB, free: 6.852 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006862/0.3689, allocations: 0.4941 MB / 1.045 GB, free: 6.355 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 8.438e-05/0.369, allocations: 36 kB / 1.045 GB, free: 6.32 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008294/0.3699, allocations: 451 kB / 1.045 GB, free: 5.879 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.000287/0.3702, allocations: 271.2 kB / 1.045 GB, free: 5.613 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0005529/0.3707, allocations: 435.4 kB / 1.046 GB, free: 5.18 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.00148/0.3722, allocations: 1.183 MB / 1.047 GB, free: 3.992 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.3722, allocations: 0 / 1.047 GB, free: 3.992 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.024e-06/0.3722, allocations: 4 kB / 1.047 GB, free: 3.988 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.084e-05/0.3722, allocations: 0 / 1.047 GB, free: 3.988 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.00188/0.3741, allocations: 1.005 MB / 1.048 GB, free: 2.934 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.3742, allocations: 12.03 kB / 1.048 GB, free: 2.922 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001637/0.3758, allocations: 235.5 kB / 1.048 GB, free: 2.691 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009397/0.3768, allocations: 0.5647 MB / 1.049 GB, free: 2.086 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.106e-05/0.3768, allocations: 49.66 kB / 1.049 GB, free: 2.039 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001127/0.3769, allocations: 68.36 kB / 1.049 GB, free: 1.973 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001984/0.3789, allocations: 1.077 MB / 1.05 GB, free: 0.7812 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.911e-05/0.379, allocations: 7.938 kB / 1.05 GB, free: 0.7734 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.868e-05/0.3791, allocations: 31.98 kB / 1.05 GB, free: 0.7422 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001519/0.3792, allocations: 89.25 kB / 1.05 GB, free: 0.6562 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001432/0.3807, allocations: 0.7504 MB / 1.051 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008166/0.3888, allocations: 5.905 MB / 1.057 GB, free: 9.57 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001347/0.3902, allocations: 0.5515 MB / 1.057 GB, free: 9.004 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006613/0.3909, allocations: 325.4 kB / 1.057 GB, free: 8.688 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.111e-05/0.3909, allocations: 4.438 kB / 1.057 GB, free: 8.684 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.447e-05/0.391, allocations: 43 kB / 1.057 GB, free: 8.633 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=47): time 2.755e-06/0.391, allocations: 4 kB / 1.057 GB, free: 8.629 MB / 0.8106 GB Notification: Performance of matching and sorting (n=48): time 0.004396/0.3954, allocations: 2.002 MB / 1.059 GB, free: 6.531 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.186e-05/0.3955, allocations: 55.84 kB / 1.059 GB, free: 6.465 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007292/0.3962, allocations: 0.5587 MB / 1.06 GB, free: 5.895 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.356e-05/0.3963, allocations: 37.7 kB / 1.06 GB, free: 5.852 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003066/0.3966, allocations: 418.9 kB / 1.06 GB, free: 5.438 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001434/0.3967, allocations: 173.6 kB / 1.061 GB, free: 5.266 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.764e-05/0.3968, allocations: 57.69 kB / 1.061 GB, free: 5.203 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001854/0.397, allocations: 378.7 kB / 1.061 GB, free: 4.824 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004212/0.3975, allocations: 277.8 kB / 1.061 GB, free: 4.555 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006576/0.3981, allocations: 497 kB / 1.062 GB, free: 3.973 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001067/0.3992, allocations: 0.8055 MB / 1.063 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3992, allocations: 0 / 1.063 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001829/0.401, allocations: 1.087 MB / 1.064 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.75e-05/0.4011, allocations: 19.86 kB / 1.064 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.351e-05/0.4011, allocations: 8 kB / 1.064 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009795/0.4021, allocations: 275.6 kB / 1.064 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004751/0.4026, allocations: 123.8 kB / 1.064 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006252/0.4088, allocations: 6.598 MB / 1.07 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006598/0.4095, allocations: 48.02 kB / 1.071 GB, free: 10.35 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.883e-05/0.4096, allocations: 28.23 kB / 1.071 GB, free: 10.32 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (67): * Single equations (assignments): 63 * 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 {(2,6,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003666/0.41, allocations: 258.9 kB / 1.071 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001116/0.4101, allocations: 71.16 kB / 1.071 GB, free: 9.992 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001618/0.4117, allocations: 0.8925 MB / 1.072 GB, free: 9.074 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.4117, allocations: 8 kB / 1.072 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.4117, allocations: 4 kB / 1.072 GB, free: 9.062 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.4117, allocations: 3.984 kB / 1.072 GB, free: 9.059 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002594/0.4143, allocations: 1.717 MB / 1.073 GB, free: 7.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.191e-06/0.4144, allocations: 12.06 kB / 1.073 GB, free: 7.238 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002628/0.4146, allocations: 63.95 kB / 1.073 GB, free: 7.176 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007439/0.4154, allocations: 271.2 kB / 1.074 GB, free: 6.898 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.119e-05/0.4154, allocations: 12 kB / 1.074 GB, free: 6.887 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006047/0.4215, allocations: 6.591 MB / 1.08 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/0.4215, allocations: 7.969 kB / 1.08 GB, free: 15.76 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001671/0.4232, allocations: 0.9874 MB / 1.081 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002954/0.4235, allocations: 192.2 kB / 1.081 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.143e-05/0.4236, allocations: 15.94 kB / 1.081 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003772/0.424, allocations: 23.97 kB / 1.081 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001175/0.4241, allocations: 47.88 kB / 1.081 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.063e-05/0.4241, allocations: 16 kB / 1.081 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004504/0.4246, allocations: 387.1 kB / 1.082 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.61e-07/0.4246, allocations: 4 kB / 1.082 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0008319/0.4254, allocations: 228 kB / 1.082 GB, free: 13.82 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (31): * Single equations (assignments): 27 * 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 {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001522/0.4256, allocations: 116.8 kB / 1.082 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001972/0.4276, allocations: 1.267 MB / 1.083 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 7.274e-06/0.4276, allocations: 8 kB / 1.083 GB, free: 12.37 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001247/0.4289, allocations: 0.8894 MB / 1.084 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001237/0.4301, allocations: 211 kB / 1.084 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002804/0.4329, allocations: 1.663 MB / 1.086 GB, free: 9.516 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007703/0.4337, allocations: 1.017 MB / 1.087 GB, free: 8.473 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0004586/0.4342, allocations: 118 kB / 1.087 GB, free: 8.355 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001271/0.4343, allocations: 43.42 kB / 1.087 GB, free: 8.312 MB / 0.8419 GB Notification: Performance of SimCode: time 6.91e-07/0.4343, allocations: 0 / 1.087 GB, free: 8.312 MB / 0.8419 GB Notification: Performance of Templates: time 0.01908/0.4534, allocations: 10.63 MB / 1.098 GB, free: 13.8 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches