Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.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.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 91.38 kB / 15.06 MB, free: 1.098 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.001477/0.001477, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.556/1.556, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.904/2.904, allocations: 462.6 MB / 0.736 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003863/0.0003863, allocations: 9.906 kB / 0.9021 GB, free: 36.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.402/0.4024, allocations: 159.6 MB / 1.058 GB, free: 5.277 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid): time 0.005941/0.4084, allocations: 4.515 MB / 1.062 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.004634/0.4131, allocations: 3.098 MB / 1.065 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002842/0.4134, allocations: 7.938 kB / 1.065 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0005858/0.414, allocations: 155.1 kB / 1.066 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0008265/0.4149, allocations: 312.5 kB / 1.066 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006341/0.4155, allocations: 183.6 kB / 1.066 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0008827/0.4164, allocations: 0.7048 MB / 1.067 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001173/0.4176, allocations: 0.7353 MB / 1.067 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002771/0.4179, allocations: 195.2 kB / 1.068 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003648/0.4182, allocations: 263.1 kB / 1.068 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.467e-05/0.4183, allocations: 16 kB / 1.068 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005502/0.4189, allocations: 235.7 kB / 1.068 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001595/0.419, allocations: 139.6 kB / 1.068 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 9.569e-05/0.4191, allocations: 105.5 kB / 1.068 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007349/0.4199, allocations: 0.7094 MB / 1.069 GB, free: 9.867 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.4199, allocations: 0 / 1.069 GB, free: 9.867 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.142e-06/0.4199, allocations: 0 / 1.069 GB, free: 9.867 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.613e-06/0.4199, allocations: 0 / 1.069 GB, free: 9.867 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 83 * Number of variables: 83 Notification: Performance of Generate backend data structure: time 0.001352/0.4213, allocations: 0.7519 MB / 1.07 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.4213, allocations: 12.03 kB / 1.07 GB, free: 9.055 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002571/0.4239, allocations: 0.7014 MB / 1.071 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007662/0.4247, allocations: 482.6 kB / 1.071 GB, free: 7.844 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.94e-05/0.4247, allocations: 28.64 kB / 1.071 GB, free: 7.812 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.295e-05/0.4248, allocations: 28 kB / 1.071 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001495/0.4263, allocations: 0.8395 MB / 1.072 GB, free: 6.914 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.4263, allocations: 0 / 1.072 GB, free: 6.914 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.193e-05/0.4264, allocations: 12 kB / 1.072 GB, free: 6.902 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001993/0.4266, allocations: 72.52 kB / 1.072 GB, free: 6.832 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001873/0.4285, allocations: 0.9428 MB / 1.073 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003959/0.4324, allocations: 2.929 MB / 1.076 GB, free: 2.75 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00144/0.4339, allocations: 0.5611 MB / 1.076 GB, free: 2.18 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006964/0.4346, allocations: 320.9 kB / 1.077 GB, free: 1.863 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001295/0.4348, allocations: 81.3 kB / 1.077 GB, free: 1.766 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.307e-05/0.4348, allocations: 42.75 kB / 1.077 GB, free: 1.715 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=22): time 2.324e-06/0.4348, allocations: 0 / 1.077 GB, free: 1.715 MB / 0.8262 GB Notification: Performance of matching and sorting (n=32): time 0.01139/0.4462, allocations: 3.652 MB / 1.08 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.758e-05/0.4463, allocations: 81.11 kB / 1.08 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005272/0.4468, allocations: 424.2 kB / 1.081 GB, free: 13.49 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.133e-05/0.4469, allocations: 33.7 kB / 1.081 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001757/0.4471, allocations: 235.9 kB / 1.081 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001059/0.4472, allocations: 106.3 kB / 1.081 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.929e-05/0.4472, allocations: 12 kB / 1.081 GB, free: 13.1 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001564/0.4474, allocations: 342.8 kB / 1.081 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008548/0.4483, allocations: 399.7 kB / 1.082 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009259/0.4492, allocations: 489 kB / 1.082 GB, free: 11.85 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009389/0.4502, allocations: 435.7 kB / 1.083 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.4502, allocations: 0 / 1.083 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.005007/0.4552, allocations: 1.725 MB / 1.084 GB, free: 9.684 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001059/0.4553, allocations: 148.2 kB / 1.085 GB, free: 9.508 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.4553, allocations: 4 kB / 1.085 GB, free: 9.504 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003904/0.4592, allocations: 0.9776 MB / 1.085 GB, free: 8.516 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005675/0.4598, allocations: 139.8 kB / 1.086 GB, free: 8.379 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008384/0.4682, allocations: 6.399 MB / 1.092 GB, free: 1.582 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007546/0.469, allocations: 115.8 kB / 1.092 GB, free: 1.469 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.717e-05/0.469, allocations: 19.98 kB / 1.092 GB, free: 1.449 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.13e-05/0.4691, allocations: 12.05 kB / 1.092 GB, free: 1.438 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004489/0.4736, allocations: 1.652 MB / 1.094 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/0.4736, allocations: 20.06 kB / 1.094 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002767/0.4764, allocations: 0.7133 MB / 1.094 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005703/0.4769, allocations: 139.8 kB / 1.094 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005752/0.4827, allocations: 5.438 MB / 1.1 GB, free: 9.004 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006873/0.4834, allocations: 107.9 kB / 1.1 GB, free: 8.898 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.127e-05/0.4835, allocations: 15.98 kB / 1.1 GB, free: 8.883 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0004186/0.4839, allocations: 328.9 kB / 1.1 GB, free: 8.551 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.526e-05/0.484, allocations: 39.53 kB / 1.1 GB, free: 8.512 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004656/0.4886, allocations: 1.615 MB / 1.102 GB, free: 6.879 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.4887, allocations: 8.047 kB / 1.102 GB, free: 6.871 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.4887, allocations: 8 kB / 1.102 GB, free: 6.863 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.369e-06/0.4887, allocations: 7.938 kB / 1.102 GB, free: 6.855 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005478/0.4942, allocations: 2.319 MB / 1.104 GB, free: 4.465 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.4942, allocations: 0 / 1.104 GB, free: 4.465 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003905/0.4946, allocations: 95.94 kB / 1.104 GB, free: 4.371 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003484/0.4981, allocations: 0.9152 MB / 1.105 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.004e-05/0.4981, allocations: 12 kB / 1.105 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007218/0.5054, allocations: 6.219 MB / 1.111 GB, free: 12.81 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.5054, allocations: 3.984 kB / 1.111 GB, free: 12.81 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004504/0.5099, allocations: 1.628 MB / 1.113 GB, free: 11.14 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002804/0.5102, allocations: 180.6 kB / 1.113 GB, free: 10.95 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.046e-05/0.5103, allocations: 19.95 kB / 1.113 GB, free: 10.93 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005309/0.5108, allocations: 91.84 kB / 1.113 GB, free: 10.84 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/0.511, allocations: 23.97 kB / 1.113 GB, free: 10.82 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.436e-05/0.511, allocations: 12.17 kB / 1.113 GB, free: 10.8 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004189/0.5114, allocations: 315.1 kB / 1.113 GB, free: 10.49 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.9e-07/0.5114, allocations: 0 / 1.113 GB, free: 10.49 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001026/0.5125, allocations: 244 kB / 1.114 GB, free: 10.25 MB / 0.8731 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 (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 1 {2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002295/0.5127, allocations: 117.4 kB / 1.114 GB, free: 10.13 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.004358/0.5171, allocations: 2.259 MB / 1.116 GB, free: 7.77 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.5171, allocations: 0 / 1.116 GB, free: 7.77 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.001493/0.5186, allocations: 0.8282 MB / 1.117 GB, free: 6.902 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007526/0.5194, allocations: 126.8 kB / 1.117 GB, free: 6.777 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002071/0.5215, allocations: 1.304 MB / 1.118 GB, free: 5.441 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005837/0.5221, allocations: 0.9336 MB / 1.119 GB, free: 4.477 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0005444/0.5226, allocations: 167.2 kB / 1.119 GB, free: 4.312 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001243/0.5227, allocations: 35.42 kB / 1.119 GB, free: 4.277 MB / 0.8731 GB Notification: Performance of SimCode: time 1.102e-06/0.5227, allocations: 0 / 1.119 GB, free: 4.277 MB / 0.8731 GB Notification: Performance of Templates: time 0.02162/0.5444, allocations: 13.91 MB / 1.133 GB, free: 6.453 MB / 0.8887 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACSimpleGrid.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches