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.001186/0.001186, allocations: 91.86 kB / 15.36 MB, free: 0.7422 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.01161/0.01161, allocations: 179.3 kB / 16.26 MB, free: 6.605 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.529/1.529, allocations: 223.3 MB / 240.3 MB, free: 5.344 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.704/2.704, allocations: 443.3 MB / 0.7175 GB, free: 1.453 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003572/0.0003572, allocations: 8.656 kB / 0.8796 GB, free: 41.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3589/0.3593, allocations: 155.2 MB / 1.031 GB, free: 4.32 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid): time 0.006121/0.3655, allocations: 4.732 MB / 1.036 GB, free: 15.57 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.005274/0.3708, allocations: 3.277 MB / 1.039 GB, free: 12.28 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004645/0.3713, allocations: 7.938 kB / 1.039 GB, free: 12.27 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0009176/0.3722, allocations: 175 kB / 1.039 GB, free: 12.1 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.001353/0.3736, allocations: 350.4 kB / 1.039 GB, free: 11.75 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008365/0.3745, allocations: 250.4 kB / 1.04 GB, free: 11.51 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001376/0.3759, allocations: 0.8608 MB / 1.041 GB, free: 10.65 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001645/0.3775, allocations: 0.8216 MB / 1.041 GB, free: 9.793 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005695/0.3781, allocations: 231.1 kB / 1.042 GB, free: 9.566 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006392/0.3787, allocations: 263 kB / 1.042 GB, free: 9.309 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 7.746e-05/0.3788, allocations: 20 kB / 1.042 GB, free: 9.289 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007234/0.3796, allocations: 315.5 kB / 1.042 GB, free: 8.98 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0002199/0.3798, allocations: 147.5 kB / 1.042 GB, free: 8.836 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0003149/0.3801, allocations: 224.6 kB / 1.042 GB, free: 8.609 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.001093/0.3812, allocations: 0.7983 MB / 1.043 GB, free: 7.809 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.3812, allocations: 3.938 kB / 1.043 GB, free: 7.805 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.983e-06/0.3812, allocations: 0 / 1.043 GB, free: 7.805 MB / 0.795 GB Notification: Performance of Transformations before backend: time 2.069e-05/0.3813, allocations: 0 / 1.043 GB, free: 7.805 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: 83 * Number of variables: 83 Notification: Performance of Generate backend data structure: time 0.001601/0.3829, allocations: 0.7225 MB / 1.044 GB, free: 7.035 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.3829, allocations: 8.031 kB / 1.044 GB, free: 7.027 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002976/0.3859, allocations: 0.675 MB / 1.045 GB, free: 6.352 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008811/0.3868, allocations: 455.8 kB / 1.045 GB, free: 5.867 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.509e-05/0.3869, allocations: 21.03 kB / 1.045 GB, free: 5.848 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001083/0.387, allocations: 36.12 kB / 1.045 GB, free: 5.812 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001776/0.3888, allocations: 0.8356 MB / 1.046 GB, free: 4.945 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.783e-05/0.3888, allocations: 7.938 kB / 1.046 GB, free: 4.938 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.722e-05/0.3889, allocations: 11.98 kB / 1.046 GB, free: 4.926 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001973/0.3891, allocations: 60.58 kB / 1.046 GB, free: 4.867 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002214/0.3913, allocations: 0.9389 MB / 1.047 GB, free: 3.926 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00423/0.3955, allocations: 2.863 MB / 1.05 GB, free: 0.8555 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001743/0.3973, allocations: 0.5643 MB / 1.05 GB, free: 288 kB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007878/0.3981, allocations: 312.6 kB / 1.051 GB, free: 15.97 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001131/0.3982, allocations: 85.05 kB / 1.051 GB, free: 15.87 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.726e-05/0.3983, allocations: 38.56 kB / 1.051 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=22): time 2.505e-06/0.3983, allocations: 0 / 1.051 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of matching and sorting (n=32): time 0.01296/0.4112, allocations: 3.538 MB / 1.054 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.685e-05/0.4113, allocations: 59.41 kB / 1.054 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000554/0.4119, allocations: 396.4 kB / 1.055 GB, free: 11.76 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 6.195e-05/0.412, allocations: 29.7 kB / 1.055 GB, free: 11.73 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001802/0.4122, allocations: 235.9 kB / 1.055 GB, free: 11.49 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001239/0.4123, allocations: 110.4 kB / 1.055 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.174e-05/0.4124, allocations: 37.7 kB / 1.055 GB, free: 11.34 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001535/0.4126, allocations: 346.8 kB / 1.055 GB, free: 10.99 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000972/0.4135, allocations: 391.7 kB / 1.056 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001063/0.4146, allocations: 472.1 kB / 1.056 GB, free: 10.12 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002034/0.4167, allocations: 0.8477 MB / 1.057 GB, free: 9.242 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.4167, allocations: 0 / 1.057 GB, free: 9.242 MB / 0.8106 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.005844/0.4225, allocations: 1.689 MB / 1.059 GB, free: 7.535 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001686/0.4227, allocations: 152.9 kB / 1.059 GB, free: 7.355 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/0.4227, allocations: 3.984 kB / 1.059 GB, free: 7.352 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004497/0.4272, allocations: 0.9192 MB / 1.06 GB, free: 6.422 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000712/0.428, allocations: 135.8 kB / 1.06 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008859/0.4369, allocations: 6.224 MB / 1.066 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008876/0.4378, allocations: 107.8 kB / 1.066 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.003e-05/0.4379, allocations: 20.17 kB / 1.066 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.257e-06/0.4379, allocations: 4 kB / 1.066 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005194/0.4431, allocations: 1.609 MB / 1.068 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.4431, allocations: 4 kB / 1.068 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003221/0.4464, allocations: 0.6939 MB / 1.068 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006949/0.4471, allocations: 131.8 kB / 1.068 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005956/0.453, allocations: 5.336 MB / 1.074 GB, free: 7.305 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008657/0.4539, allocations: 103.9 kB / 1.074 GB, free: 7.203 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.645e-05/0.454, allocations: 19.98 kB / 1.074 GB, free: 7.184 MB / 0.8262 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.0004479/0.4545, allocations: 327.1 kB / 1.074 GB, free: 6.855 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/0.4546, allocations: 39.47 kB / 1.074 GB, free: 6.816 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00537/0.4599, allocations: 1.575 MB / 1.076 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.46, allocations: 0 / 1.076 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.056e-06/0.46, allocations: 8.062 kB / 1.076 GB, free: 5.219 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.46, allocations: 4 kB / 1.076 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006091/0.4661, allocations: 2.256 MB / 1.078 GB, free: 2.883 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.85e-06/0.4661, allocations: 0 / 1.078 GB, free: 2.883 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004232/0.4665, allocations: 79.91 kB / 1.078 GB, free: 2.805 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003923/0.4705, allocations: 0.8647 MB / 1.079 GB, free: 1.93 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.174e-05/0.4706, allocations: 15.92 kB / 1.079 GB, free: 1.914 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007542/0.4781, allocations: 6.059 MB / 1.085 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.4781, allocations: 0 / 1.085 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005096/0.4832, allocations: 1.589 MB / 1.086 GB, free: 9.816 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000329/0.4836, allocations: 172.7 kB / 1.086 GB, free: 9.629 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.358e-05/0.4837, allocations: 15.94 kB / 1.086 GB, free: 9.613 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006338/0.4843, allocations: 87.86 kB / 1.086 GB, free: 9.527 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001897/0.4845, allocations: 27.95 kB / 1.086 GB, free: 9.5 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.645e-05/0.4846, allocations: 12 kB / 1.086 GB, free: 9.488 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004054/0.485, allocations: 307.1 kB / 1.087 GB, free: 9.188 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.71e-07/0.485, allocations: 0 / 1.087 GB, free: 9.188 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.00107/0.4861, allocations: 232 kB / 1.087 GB, free: 8.961 MB / 0.8419 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.0002302/0.4863, allocations: 107.4 kB / 1.087 GB, free: 8.848 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.004503/0.4908, allocations: 2.197 MB / 1.089 GB, free: 6.551 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/0.4908, allocations: 4 kB / 1.089 GB, free: 6.547 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001592/0.4924, allocations: 0.813 MB / 1.09 GB, free: 5.695 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008105/0.4933, allocations: 137.2 kB / 1.09 GB, free: 5.559 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002253/0.4955, allocations: 1.321 MB / 1.091 GB, free: 4.199 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006083/0.4962, allocations: 0.9335 MB / 1.092 GB, free: 3.234 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0005919/0.4968, allocations: 163.1 kB / 1.093 GB, free: 3.074 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/0.4969, allocations: 35.42 kB / 1.093 GB, free: 3.039 MB / 0.8419 GB Notification: Performance of SimCode: time 7.91e-07/0.4969, allocations: 0 / 1.093 GB, free: 3.039 MB / 0.8419 GB Notification: Performance of Templates: time 0.02367/0.5206, allocations: 13.58 MB / 1.106 GB, free: 5.535 MB / 0.8575 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