Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001273/0.001273, allocations: 101.1 kB / 16.27 MB, free: 6.414 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.001158/0.001158, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.35/1.35, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.654/2.654, allocations: 482.4 MB / 0.7553 GB, free: 6.984 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001904/0.001904, allocations: 63.27 kB / 0.9245 GB, free: 16 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8867/0.8886, allocations: 162.2 MB / 1.083 GB, free: 1.656 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.007954/0.8966, allocations: 5.533 MB / 1.088 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.005248/0.9019, allocations: 2.646 MB / 1.091 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005278/0.9024, allocations: 21.47 kB / 1.091 GB, free: 12.08 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001982/0.9045, allocations: 0.6869 MB / 1.092 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.001296/0.9058, allocations: 410.1 kB / 1.092 GB, free: 11.42 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001306/0.9071, allocations: 408.5 kB / 1.092 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001353/0.9085, allocations: 0.9541 MB / 1.093 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000796/0.9093, allocations: 471.5 kB / 1.094 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006001/0.9099, allocations: 377.1 kB / 1.094 GB, free: 10.44 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006191/0.9105, allocations: 403.5 kB / 1.095 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001112/0.9107, allocations: 47.81 kB / 1.095 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009226/0.9116, allocations: 362.6 kB / 1.095 GB, free: 10.15 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0003362/0.9119, allocations: 251.4 kB / 1.095 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.000432/0.9124, allocations: 350.3 kB / 1.095 GB, free: 9.844 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001417/0.9138, allocations: 0.952 MB / 1.096 GB, free: 9.52 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.9138, allocations: 4.547 kB / 1.096 GB, free: 9.516 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.643e-06/0.9138, allocations: 1.375 kB / 1.096 GB, free: 9.516 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.084e-05/0.9139, allocations: 4 kB / 1.096 GB, free: 9.512 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001815/0.9157, allocations: 0.978 MB / 1.097 GB, free: 8.801 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.9157, allocations: 9.188 kB / 1.097 GB, free: 8.801 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001449/0.9172, allocations: 194.3 kB / 1.098 GB, free: 8.758 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008304/0.918, allocations: 496.6 kB / 1.098 GB, free: 8.414 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.834e-05/0.9181, allocations: 37.5 kB / 1.098 GB, free: 8.398 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001762/0.9183, allocations: 64.19 kB / 1.098 GB, free: 8.371 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001405/0.9197, allocations: 0.8313 MB / 1.099 GB, free: 7.891 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.61e-05/0.9197, allocations: 2.031 kB / 1.099 GB, free: 7.891 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.635e-05/0.9198, allocations: 20.02 kB / 1.099 GB, free: 7.879 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002034/0.92, allocations: 67.84 kB / 1.099 GB, free: 7.871 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009786/0.921, allocations: 0.5733 MB / 1.1 GB, free: 7.668 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005223/0.9262, allocations: 4.589 MB / 1.104 GB, free: 3.762 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005435/0.9268, allocations: 294.1 kB / 1.104 GB, free: 3.641 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003625/0.9271, allocations: 227.8 kB / 1.105 GB, free: 3.551 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.45e-05/0.9272, allocations: 7.812 kB / 1.105 GB, free: 3.547 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.207e-05/0.9272, allocations: 32.91 kB / 1.105 GB, free: 3.508 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=33): time 2.455e-06/0.9272, allocations: 5.219 kB / 1.105 GB, free: 3.504 MB / 0.8419 GB Notification: Performance of matching and sorting (n=40): time 0.006177/0.9334, allocations: 2.63 MB / 1.107 GB, free: 2.117 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.554e-05/0.9335, allocations: 56.23 kB / 1.107 GB, free: 2.055 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000623/0.9341, allocations: 468.4 kB / 1.108 GB, free: 1.824 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.631e-05/0.9342, allocations: 32.14 kB / 1.108 GB, free: 1.789 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000298/0.9345, allocations: 343.1 kB / 1.108 GB, free: 1.512 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001385/0.9346, allocations: 145.9 kB / 1.108 GB, free: 1.398 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001896/0.9348, allocations: 109.4 kB / 1.108 GB, free: 1.332 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001995/0.935, allocations: 364.2 kB / 1.109 GB, free: 0.9961 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003825/0.9354, allocations: 241.5 kB / 1.109 GB, free: 0.9102 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005299/0.936, allocations: 405.1 kB / 1.109 GB, free: 0.6172 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009671/0.9369, allocations: 0.6773 MB / 1.11 GB, free: 184 kB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.937, allocations: 1 kB / 1.11 GB, free: 184 kB / 0.8419 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00188/0.9388, allocations: 0.9242 MB / 1.111 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/0.9389, allocations: 7.969 kB / 1.111 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.9389, allocations: 5.781 kB / 1.111 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008257/0.9397, allocations: 223 kB / 1.111 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005154/0.9403, allocations: 117 kB / 1.111 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005972/0.9462, allocations: 5.338 MB / 1.116 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000608/0.9469, allocations: 29.61 kB / 1.116 GB, free: 11.03 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.948e-05/0.9469, allocations: 30.45 kB / 1.116 GB, free: 11.02 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * 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): 3 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004209/0.9474, allocations: 227.5 kB / 1.117 GB, free: 10.85 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.9475, allocations: 59.95 kB / 1.117 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001683/0.9492, allocations: 0.7752 MB / 1.117 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.9492, allocations: 4.156 kB / 1.117 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.9492, allocations: 6.641 kB / 1.117 GB, free: 10.47 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.9492, allocations: 2.766 kB / 1.117 GB, free: 10.47 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002805/0.952, allocations: 1.507 MB / 1.119 GB, free: 9.68 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.952, allocations: 2.156 kB / 1.119 GB, free: 9.68 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003733/0.9524, allocations: 63.36 kB / 1.119 GB, free: 9.68 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007052/0.9531, allocations: 211.6 kB / 1.119 GB, free: 9.609 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.472e-05/0.9532, allocations: 12.3 kB / 1.119 GB, free: 9.602 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005642/0.9588, allocations: 5.269 MB / 1.124 GB, free: 4.969 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.9588, allocations: 2.094 kB / 1.124 GB, free: 4.969 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002073/0.9609, allocations: 1.14 MB / 1.125 GB, free: 4.379 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003281/0.9613, allocations: 171.6 kB / 1.126 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.682e-05/0.9614, allocations: 13.73 kB / 1.126 GB, free: 4.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003377/0.9617, allocations: 24.3 kB / 1.126 GB, free: 4.227 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.9618, allocations: 35.22 kB / 1.126 GB, free: 4.219 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.16e-05/0.9618, allocations: 18.28 kB / 1.126 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0004477/0.9623, allocations: 311.6 kB / 1.126 GB, free: 4.066 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9623, allocations: 0 / 1.126 GB, free: 4.066 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0008677/0.9632, allocations: 170.5 kB / 1.126 GB, free: 4.047 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * 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 (30): * Single equations (assignments): 27 * 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): 3 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001856/0.9634, allocations: 115.1 kB / 1.126 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001921/0.9653, allocations: 1.064 MB / 1.127 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.9653, allocations: 0.875 kB / 1.127 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001061/0.9664, allocations: 0.6741 MB / 1.128 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009617/0.9674, allocations: 188 kB / 1.128 GB, free: 2.828 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00266/0.97, allocations: 1.33 MB / 1.129 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007251/0.9708, allocations: 0.9539 MB / 1.13 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001407/0.9709, allocations: 40.42 kB / 1.13 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of SimCode: time 4.51e-07/0.9709, allocations: 4 kB / 1.13 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of Templates: time 0.02267/0.9936, allocations: 14.89 MB / 1.145 GB, free: 9.77 MB / 0.8731 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches