Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_L,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.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L,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.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.008642/0.008642, allocations: 168.9 kB / 16.26 MB, free: 6.656 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.541/1.541, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.993/2.993, allocations: 470.6 MB / 0.7442 GB, free: 8.855 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003831/0.0003829, allocations: 9.094 kB / 0.9123 GB, free: 34.13 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3674/0.3678, allocations: 161.4 MB / 1.07 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L): time 0.008321/0.3762, allocations: 5.738 MB / 1.076 GB, free: 5.645 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.006372/0.3826, allocations: 3.161 MB / 1.079 GB, free: 2.473 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008623/0.3835, allocations: 23.81 kB / 1.079 GB, free: 2.449 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0005087/0.384, allocations: 119 kB / 1.079 GB, free: 2.332 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.001654/0.3857, allocations: 442 kB / 1.079 GB, free: 1.898 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001561/0.3873, allocations: 460.7 kB / 1.08 GB, free: 1.449 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.002056/0.3893, allocations: 1.47 MB / 1.081 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002061/0.3914, allocations: 0.986 MB / 1.082 GB, free: 14.97 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007363/0.3922, allocations: 358.3 kB / 1.082 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006502/0.3928, allocations: 454.1 kB / 1.083 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 6.44e-05/0.3929, allocations: 28 kB / 1.083 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001192/0.3941, allocations: 0.5692 MB / 1.083 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0003049/0.3944, allocations: 267.1 kB / 1.084 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0004514/0.3949, allocations: 387.7 kB / 1.084 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001606/0.3965, allocations: 1.164 MB / 1.085 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.3965, allocations: 0 / 1.085 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.943e-06/0.3965, allocations: 0 / 1.085 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.549e-05/0.3965, allocations: 0 / 1.085 GB, free: 11.76 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001889/0.3984, allocations: 0.9155 MB / 1.086 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.3985, allocations: 15.97 kB / 1.086 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001541/0.4, allocations: 219.6 kB / 1.086 GB, free: 10.56 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008675/0.4009, allocations: 0.5415 MB / 1.087 GB, free: 9.977 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.311e-05/0.401, allocations: 45.67 kB / 1.087 GB, free: 9.934 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001268/0.4011, allocations: 64.36 kB / 1.087 GB, free: 9.871 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001757/0.4029, allocations: 1.038 MB / 1.088 GB, free: 8.723 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.304e-05/0.4029, allocations: 7.906 kB / 1.088 GB, free: 8.715 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.435e-05/0.403, allocations: 31.98 kB / 1.088 GB, free: 8.684 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000103/0.4031, allocations: 69.27 kB / 1.088 GB, free: 8.617 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001191/0.4043, allocations: 0.6956 MB / 1.089 GB, free: 7.922 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006222/0.4105, allocations: 5.749 MB / 1.094 GB, free: 1.742 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009645/0.4115, allocations: 0.6073 MB / 1.095 GB, free: 1.09 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008367/0.4124, allocations: 420.5 kB / 1.095 GB, free: 0.6758 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.849e-05/0.4124, allocations: 4 kB / 1.095 GB, free: 0.6719 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.671e-05/0.4125, allocations: 46.55 kB / 1.095 GB, free: 0.6172 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=41): time 2.224e-06/0.4125, allocations: 0 / 1.095 GB, free: 0.6172 MB / 0.8419 GB Notification: Performance of matching and sorting (n=42): time 0.004924/0.4174, allocations: 2.073 MB / 1.097 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.239e-05/0.4175, allocations: 55.41 kB / 1.097 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005869/0.4181, allocations: 462.8 kB / 1.098 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.054e-05/0.4181, allocations: 33.7 kB / 1.098 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003321/0.4185, allocations: 391 kB / 1.098 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001401/0.4186, allocations: 145.9 kB / 1.098 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.415e-05/0.4187, allocations: 53.69 kB / 1.098 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0002017/0.4189, allocations: 358.8 kB / 1.099 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003946/0.4193, allocations: 249.2 kB / 1.099 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005929/0.4199, allocations: 461 kB / 1.099 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001044/0.421, allocations: 0.7517 MB / 1.1 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.421, allocations: 0 / 1.1 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.002123/0.4231, allocations: 1.061 MB / 1.101 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.496e-05/0.4232, allocations: 14.22 kB / 1.101 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.377e-05/0.4232, allocations: 8 kB / 1.101 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001101/0.4243, allocations: 335.1 kB / 1.102 GB, free: 9.855 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003281/0.4246, allocations: 99.83 kB / 1.102 GB, free: 9.758 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007897/0.4325, allocations: 6.958 MB / 1.108 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004949/0.4331, allocations: 28.03 kB / 1.108 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.881e-05/0.4331, allocations: 28 kB / 1.108 GB, free: 2.207 MB / 0.8575 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 (53): * Single equations (assignments): 49 * 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 {(3,7,88.9%), (1,5,100.0%), (1,3,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004303/0.4336, allocations: 249.5 kB / 1.109 GB, free: 1.953 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.4337, allocations: 63.25 kB / 1.109 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00193/0.4356, allocations: 0.916 MB / 1.11 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.4356, allocations: 4.141 kB / 1.11 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.448e-06/0.4357, allocations: 7.984 kB / 1.11 GB, free: 0.9375 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.4357, allocations: 3.984 kB / 1.11 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003027/0.4387, allocations: 1.712 MB / 1.111 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.4387, allocations: 4 kB / 1.111 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001714/0.4389, allocations: 39.91 kB / 1.111 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000999/0.4399, allocations: 327.5 kB / 1.112 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.313e-05/0.4399, allocations: 8 kB / 1.112 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007831/0.4478, allocations: 6.931 MB / 1.119 GB, free: 7.285 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.436e-06/0.4478, allocations: 7.938 kB / 1.119 GB, free: 7.277 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001941/0.4498, allocations: 1.007 MB / 1.119 GB, free: 6.223 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002778/0.4501, allocations: 172.5 kB / 1.12 GB, free: 6.035 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.288e-05/0.4502, allocations: 12 kB / 1.12 GB, free: 6.023 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002861/0.4504, allocations: 27.97 kB / 1.12 GB, free: 5.996 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001401/0.4506, allocations: 43.92 kB / 1.12 GB, free: 5.953 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.808e-05/0.4506, allocations: 11.94 kB / 1.12 GB, free: 5.941 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000389/0.451, allocations: 310.9 kB / 1.12 GB, free: 5.641 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.7e-07/0.451, allocations: 4 kB / 1.12 GB, free: 5.637 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0008408/0.4519, allocations: 196 kB / 1.12 GB, free: 5.445 MB / 0.8731 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 (23): * 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: 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 {(3,7,88.9%), (2,2,100.0%), (1,3,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001887/0.4521, allocations: 111.2 kB / 1.12 GB, free: 5.324 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.002092/0.4542, allocations: 1.208 MB / 1.122 GB, free: 4.066 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.4542, allocations: 4.219 kB / 1.122 GB, free: 4.062 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.001325/0.4555, allocations: 0.866 MB / 1.122 GB, free: 3.145 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/0.4567, allocations: 183.6 kB / 1.123 GB, free: 2.969 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002507/0.4592, allocations: 1.547 MB / 1.124 GB, free: 1.379 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007771/0.46, allocations: 0.996 MB / 1.125 GB, free: 364 kB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0003295/0.4604, allocations: 93.2 kB / 1.125 GB, free: 272 kB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.954e-05/0.4605, allocations: 35.44 kB / 1.125 GB, free: 236 kB / 0.8731 GB Notification: Performance of SimCode: time 1.723e-06/0.4605, allocations: 0 / 1.125 GB, free: 236 kB / 0.8731 GB Notification: Performance of Templates: time 0.01982/0.4803, allocations: 9.465 MB / 1.134 GB, free: 6.859 MB / 0.8887 GB make -j1 -f Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.makefile (rm -f Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.sim & ./Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches