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.0008357/0.0008358, allocations: 99.03 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009338/0.0009337, allocations: 181.4 kB / 16.92 MB, free: 6.918 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.425/1.425, allocations: 223.3 MB / 241 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.898/2.898, allocations: 462.7 MB / 0.7371 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003517/0.0003517, allocations: 11.38 kB / 0.9034 GB, free: 36.42 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2953/0.2957, allocations: 159.6 MB / 1.059 GB, free: 5 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid): time 0.005851/0.3016, allocations: 4.739 MB / 1.064 GB, free: 244 kB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.005084/0.3067, allocations: 3.299 MB / 1.067 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003596/0.3071, allocations: 11.94 kB / 1.067 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0006838/0.3078, allocations: 183 kB / 1.067 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.001082/0.3089, allocations: 350.5 kB / 1.068 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007062/0.3096, allocations: 248.3 kB / 1.068 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001119/0.3107, allocations: 0.853 MB / 1.069 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001376/0.3121, allocations: 0.836 MB / 1.07 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003927/0.3125, allocations: 219.1 kB / 1.07 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004775/0.313, allocations: 267 kB / 1.07 GB, free: 9.957 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.845e-05/0.3131, allocations: 16 kB / 1.07 GB, free: 9.941 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006004/0.3137, allocations: 335.4 kB / 1.07 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001754/0.3139, allocations: 143.5 kB / 1.071 GB, free: 9.473 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002539/0.3141, allocations: 228.6 kB / 1.071 GB, free: 9.242 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007593/0.3149, allocations: 0.6588 MB / 1.071 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3149, allocations: 4 kB / 1.071 GB, free: 8.578 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.784e-06/0.3149, allocations: 0 / 1.071 GB, free: 8.578 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.467e-05/0.3149, allocations: 0 / 1.071 GB, free: 8.578 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.001457/0.3164, allocations: 0.7209 MB / 1.072 GB, free: 7.809 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.3165, allocations: 15.97 kB / 1.072 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003222/0.3197, allocations: 0.6945 MB / 1.073 GB, free: 7.098 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008173/0.3205, allocations: 463.8 kB / 1.073 GB, free: 6.605 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.822e-05/0.3206, allocations: 21.03 kB / 1.073 GB, free: 6.582 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.3207, allocations: 36.12 kB / 1.073 GB, free: 6.547 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001869/0.3226, allocations: 0.8434 MB / 1.074 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.203e-05/0.3226, allocations: 0 / 1.074 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.753e-05/0.3227, allocations: 19.98 kB / 1.074 GB, free: 5.656 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001954/0.3229, allocations: 52.59 kB / 1.074 GB, free: 5.605 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002552/0.3254, allocations: 0.9506 MB / 1.075 GB, free: 4.652 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00458/0.33, allocations: 2.886 MB / 1.078 GB, free: 1.551 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001861/0.3319, allocations: 0.5605 MB / 1.078 GB, free: 0.9805 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008636/0.3328, allocations: 316.6 kB / 1.079 GB, free: 0.668 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001238/0.3329, allocations: 89.09 kB / 1.079 GB, free: 0.5625 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.974e-05/0.333, allocations: 34.5 kB / 1.079 GB, free: 0.5195 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=22): time 2.665e-06/0.333, allocations: 0 / 1.079 GB, free: 0.5195 MB / 0.8262 GB Notification: Performance of matching and sorting (n=32): time 0.01474/0.3477, allocations: 3.645 MB / 1.082 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.216e-05/0.3478, allocations: 63.34 kB / 1.082 GB, free: 12.74 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005259/0.3484, allocations: 404.3 kB / 1.083 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 7.723e-05/0.3484, allocations: 29.7 kB / 1.083 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001673/0.3486, allocations: 239.7 kB / 1.083 GB, free: 12.07 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001298/0.3488, allocations: 106.4 kB / 1.083 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.47e-05/0.3488, allocations: 33.7 kB / 1.083 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001302/0.349, allocations: 350.8 kB / 1.084 GB, free: 11.58 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001105/0.3501, allocations: 399.6 kB / 1.084 GB, free: 11.19 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001138/0.3512, allocations: 488.1 kB / 1.084 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00218/0.3534, allocations: 0.8629 MB / 1.085 GB, free: 9.789 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.3535, allocations: 4 kB / 1.085 GB, free: 9.785 MB / 0.8419 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.006125/0.3596, allocations: 1.705 MB / 1.087 GB, free: 8.062 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001123/0.3597, allocations: 152 kB / 1.087 GB, free: 7.883 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.3598, allocations: 4 kB / 1.087 GB, free: 7.879 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00464/0.3644, allocations: 0.923 MB / 1.088 GB, free: 6.945 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007687/0.3652, allocations: 143.8 kB / 1.088 GB, free: 6.805 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008577/0.3738, allocations: 6.216 MB / 1.094 GB, free: 192 kB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009778/0.3748, allocations: 119.9 kB / 1.094 GB, free: 72 kB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.036e-05/0.3749, allocations: 19.98 kB / 1.094 GB, free: 52 kB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.053e-05/0.3749, allocations: 4 kB / 1.094 GB, free: 48 kB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005475/0.3804, allocations: 1.64 MB / 1.096 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/0.3804, allocations: 0 / 1.096 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00322/0.3837, allocations: 0.6743 MB / 1.097 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007584/0.3845, allocations: 147.8 kB / 1.097 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00589/0.3904, allocations: 5.328 MB / 1.102 GB, free: 7.793 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009097/0.3913, allocations: 115.9 kB / 1.102 GB, free: 7.68 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.966e-05/0.3914, allocations: 23.92 kB / 1.102 GB, free: 7.656 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,4,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0004283/0.3918, allocations: 321 kB / 1.102 GB, free: 7.332 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001227/0.392, allocations: 43.47 kB / 1.102 GB, free: 7.289 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005558/0.3975, allocations: 1.588 MB / 1.104 GB, free: 5.684 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.3976, allocations: 8 kB / 1.104 GB, free: 5.676 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.3976, allocations: 0 / 1.104 GB, free: 5.676 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.3976, allocations: 0 / 1.104 GB, free: 5.676 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006274/0.4039, allocations: 2.248 MB / 1.106 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.4039, allocations: 0 / 1.106 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004414/0.4044, allocations: 95.92 kB / 1.106 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004004/0.4084, allocations: 0.8568 MB / 1.107 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.284e-05/0.4084, allocations: 8 kB / 1.107 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00744/0.4159, allocations: 6.079 MB / 1.113 GB, free: 11.9 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.4159, allocations: 0 / 1.113 GB, free: 11.9 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005127/0.4211, allocations: 1.581 MB / 1.115 GB, free: 10.29 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002787/0.4214, allocations: 180.5 kB / 1.115 GB, free: 10.09 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.831e-05/0.4215, allocations: 11.94 kB / 1.115 GB, free: 10.08 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006904/0.4222, allocations: 87.86 kB / 1.115 GB, free: 9.992 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001772/0.4224, allocations: 35.89 kB / 1.115 GB, free: 9.957 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.837e-05/0.4224, allocations: 16 kB / 1.115 GB, free: 9.941 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004121/0.4228, allocations: 307.1 kB / 1.115 GB, free: 9.637 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.9e-07/0.4228, allocations: 0 / 1.115 GB, free: 9.637 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0009695/0.4238, allocations: 232 kB / 1.115 GB, free: 9.41 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,4,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001975/0.424, allocations: 115.2 kB / 1.116 GB, free: 9.285 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.00475/0.4288, allocations: 2.229 MB / 1.118 GB, free: 6.957 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.4288, allocations: 128 / 1.118 GB, free: 6.957 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.001579/0.4304, allocations: 0.8163 MB / 1.119 GB, free: 6.102 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008182/0.4312, allocations: 127 kB / 1.119 GB, free: 5.984 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002224/0.4335, allocations: 1.358 MB / 1.12 GB, free: 4.59 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005393/0.434, allocations: 0.9219 MB / 1.121 GB, free: 3.633 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002036/0.4343, allocations: 39.34 kB / 1.121 GB, free: 3.598 MB / 0.8731 GB Notification: Performance of SimCode: time 2.074e-06/0.4343, allocations: 4 kB / 1.121 GB, free: 3.594 MB / 0.8731 GB Notification: Performance of Templates: time 0.01949/0.4538, allocations: 15.3 MB / 1.136 GB, free: 4.324 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/jenkins1/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