Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.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.ACSimpleGridMedium,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.ACSimpleGridMedium") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium,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.ACSimpleGridMedium") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008689/0.000869, allocations: 91.12 kB / 15.06 MB, free: 1.078 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.001045/0.001045, allocations: 172.7 kB / 15.95 MB, free: 192 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.478/1.478, allocations: 223.3 MB / 240 MB, free: 5.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.897/2.897, allocations: 462.6 MB / 0.736 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003251/0.0003252, allocations: 10.25 kB / 0.9021 GB, free: 36.6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3665/0.3668, allocations: 159.6 MB / 1.058 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium): time 0.007299/0.3742, allocations: 4.597 MB / 1.063 GB, free: 0.7227 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.006225/0.3805, allocations: 3.492 MB / 1.066 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004567/0.3809, allocations: 7.938 kB / 1.066 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001128/0.3821, allocations: 214.8 kB / 1.066 GB, free: 13 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.001586/0.3837, allocations: 367.5 kB / 1.066 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007026/0.3844, allocations: 183.6 kB / 1.067 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001408/0.3858, allocations: 0.7593 MB / 1.067 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001542/0.3874, allocations: 0.7359 MB / 1.068 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004899/0.3879, allocations: 195.2 kB / 1.068 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000642/0.3885, allocations: 263 kB / 1.069 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001182/0.3887, allocations: 20 kB / 1.069 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001026/0.3897, allocations: 323.6 kB / 1.069 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002758/0.39, allocations: 139.5 kB / 1.069 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002026/0.3902, allocations: 109.5 kB / 1.069 GB, free: 9.902 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.001109/0.3913, allocations: 0.7636 MB / 1.07 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.3914, allocations: 0 / 1.07 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3914, allocations: 4 kB / 1.07 GB, free: 9.133 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 2.131e-05/0.3914, allocations: 0 / 1.07 GB, free: 9.133 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.001704/0.3931, allocations: 0.7635 MB / 1.071 GB, free: 8.32 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.3932, allocations: 8.031 kB / 1.071 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002989/0.3962, allocations: 0.717 MB / 1.071 GB, free: 7.594 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001202/0.3974, allocations: 0.5381 MB / 1.072 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.236e-05/0.3974, allocations: 24.64 kB / 1.072 GB, free: 6.992 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.3975, allocations: 35.92 kB / 1.072 GB, free: 6.957 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001672/0.3992, allocations: 0.8434 MB / 1.073 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.3992, allocations: 0 / 1.073 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.054e-05/0.3993, allocations: 12 kB / 1.073 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002094/0.3995, allocations: 76.52 kB / 1.073 GB, free: 5.996 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00203/0.4016, allocations: 0.939 MB / 1.074 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004297/0.4059, allocations: 2.953 MB / 1.077 GB, free: 1.887 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001538/0.4074, allocations: 0.5659 MB / 1.077 GB, free: 1.312 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006977/0.4081, allocations: 321 kB / 1.077 GB, free: 0.9961 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001206/0.4083, allocations: 85.28 kB / 1.078 GB, free: 0.8945 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.237e-05/0.4083, allocations: 38.75 kB / 1.078 GB, free: 0.8477 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=22): time 2.184e-06/0.4083, allocations: 0 / 1.078 GB, free: 0.8477 MB / 0.8262 GB Notification: Performance of matching and sorting (n=36): time 0.01357/0.4219, allocations: 4.077 MB / 1.082 GB, free: 12.74 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.426e-05/0.422, allocations: 89.09 kB / 1.082 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006427/0.4226, allocations: 449.5 kB / 1.082 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 6.756e-05/0.4227, allocations: 37.64 kB / 1.082 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001923/0.4229, allocations: 244.1 kB / 1.082 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001277/0.4231, allocations: 126.2 kB / 1.082 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.821e-05/0.4231, allocations: 4 kB / 1.082 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001382/0.4233, allocations: 350.8 kB / 1.083 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009436/0.4242, allocations: 444.5 kB / 1.083 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001002/0.4252, allocations: 0.5251 MB / 1.084 GB, free: 10.42 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001012/0.4262, allocations: 485.2 kB / 1.084 GB, free: 9.945 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.4263, allocations: 0 / 1.084 GB, free: 9.945 MB / 0.8419 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.005756/0.432, allocations: 1.924 MB / 1.086 GB, free: 8.008 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001497/0.4322, allocations: 152 kB / 1.086 GB, free: 7.828 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/0.4322, allocations: 0 / 1.086 GB, free: 7.828 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00459/0.4368, allocations: 1.098 MB / 1.087 GB, free: 6.723 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006337/0.4375, allocations: 131.7 kB / 1.087 GB, free: 6.594 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01087/0.4483, allocations: 6.386 MB / 1.094 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008863/0.4493, allocations: 119.9 kB / 1.094 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.677e-05/0.4494, allocations: 16 kB / 1.094 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.151e-05/0.4494, allocations: 4 kB / 1.094 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004872/0.4543, allocations: 1.636 MB / 1.095 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.208e-06/0.4543, allocations: 4 kB / 1.095 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003244/0.4575, allocations: 0.7976 MB / 1.096 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000607/0.4582, allocations: 135.8 kB / 1.096 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008168/0.4664, allocations: 5.569 MB / 1.102 GB, free: 7.391 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008599/0.4672, allocations: 111.9 kB / 1.102 GB, free: 7.281 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.573e-05/0.4673, allocations: 24.3 kB / 1.102 GB, free: 7.258 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 (29): * Single equations (assignments): 27 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 1 {2 8} Notification: Performance of prepare postOptimizeDAE: time 0.00065/0.468, allocations: 329 kB / 1.102 GB, free: 6.926 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002186/0.4682, allocations: 55.47 kB / 1.102 GB, free: 6.871 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00546/0.4737, allocations: 1.817 MB / 1.104 GB, free: 5.031 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.265e-06/0.4737, allocations: 7.938 kB / 1.104 GB, free: 5.023 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.363e-06/0.4737, allocations: 4 kB / 1.104 GB, free: 5.02 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.12e-05/0.4738, allocations: 7.938 kB / 1.104 GB, free: 5.012 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006403/0.4802, allocations: 2.563 MB / 1.107 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.4802, allocations: 0 / 1.107 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003776/0.4806, allocations: 91.94 kB / 1.107 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00406/0.4846, allocations: 1.016 MB / 1.108 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.802e-05/0.4847, allocations: 11.98 kB / 1.108 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009465/0.4942, allocations: 6.063 MB / 1.114 GB, free: 10.92 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.4942, allocations: 0 / 1.114 GB, free: 10.92 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005165/0.4994, allocations: 1.795 MB / 1.115 GB, free: 9.094 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003428/0.4997, allocations: 200.5 kB / 1.116 GB, free: 8.879 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001154/0.4999, allocations: 11.94 kB / 1.116 GB, free: 8.867 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006473/0.5005, allocations: 91.86 kB / 1.116 GB, free: 8.777 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001827/0.5007, allocations: 39.94 kB / 1.116 GB, free: 8.738 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.172e-05/0.5008, allocations: 12 kB / 1.116 GB, free: 8.727 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004657/0.5012, allocations: 339 kB / 1.116 GB, free: 8.398 MB / 0.8731 GB Notification: Performance of sort global known variables: time 3e-07/0.5013, allocations: 0 / 1.116 GB, free: 8.398 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001227/0.5025, allocations: 288 kB / 1.116 GB, free: 8.117 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 (19): * Single equations (assignments): 17 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 1 {2 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.000323/0.5028, allocations: 163.1 kB / 1.116 GB, free: 7.945 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.00653/0.5094, allocations: 2.533 MB / 1.119 GB, free: 5.359 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/0.5094, allocations: 0 / 1.119 GB, free: 5.359 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.002523/0.5119, allocations: 0.981 MB / 1.12 GB, free: 4.352 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008262/0.5128, allocations: 135.4 kB / 1.12 GB, free: 4.223 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00309/0.5159, allocations: 1.436 MB / 1.121 GB, free: 2.75 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008933/0.5168, allocations: 0.9569 MB / 1.122 GB, free: 1.766 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0006464/0.5174, allocations: 155.3 kB / 1.122 GB, free: 1.613 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001589/0.5176, allocations: 39.42 kB / 1.122 GB, free: 1.574 MB / 0.8731 GB Notification: Performance of SimCode: time 6.11e-07/0.5176, allocations: 0 / 1.122 GB, free: 1.574 MB / 0.8731 GB Notification: Performance of Templates: time 0.02899/0.5466, allocations: 16.42 MB / 1.139 GB, free: 1.273 MB / 0.8887 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACSimpleGridMedium.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches