Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_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_9_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_9_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.009397/0.009397, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001715/0.001715, allocations: 196.9 kB / 16.67 MB, free: 5.977 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.507/1.507, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.645/2.645, allocations: 390.2 MB / 0.6648 GB, free: 180 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 66.14 kB / 0.9508 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3368/0.3381, allocations: 140.4 MB / 1.088 GB, free: 1.488 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.008183/0.3463, allocations: 5.538 MB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.004925/0.3513, allocations: 2.642 MB / 1.096 GB, free: 9.27 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004187/0.3518, allocations: 19.88 kB / 1.096 GB, free: 9.25 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001899/0.3537, allocations: 0.6806 MB / 1.097 GB, free: 8.566 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.001124/0.3549, allocations: 405.7 kB / 1.097 GB, free: 8.168 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001079/0.3559, allocations: 424.1 kB / 1.097 GB, free: 7.754 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001187/0.3571, allocations: 0.9591 MB / 1.098 GB, free: 6.789 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006649/0.3578, allocations: 462.4 kB / 1.099 GB, free: 6.336 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005368/0.3584, allocations: 382.6 kB / 1.099 GB, free: 5.961 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005123/0.3589, allocations: 402.4 kB / 1.1 GB, free: 5.566 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 8.936e-05/0.359, allocations: 48 kB / 1.1 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007006/0.3597, allocations: 363.2 kB / 1.1 GB, free: 5.164 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002526/0.36, allocations: 239.3 kB / 1.1 GB, free: 4.93 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0003622/0.3603, allocations: 350.3 kB / 1.1 GB, free: 4.586 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001127/0.3615, allocations: 0.9811 MB / 1.101 GB, free: 3.602 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.3615, allocations: 7.984 kB / 1.101 GB, free: 3.594 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.272e-06/0.3615, allocations: 0 / 1.101 GB, free: 3.594 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.194e-05/0.3615, allocations: 0 / 1.101 GB, free: 3.594 MB / 0.8575 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.001642/0.3632, allocations: 0.9659 MB / 1.102 GB, free: 2.578 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.3632, allocations: 12.03 kB / 1.102 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001388/0.3646, allocations: 203.8 kB / 1.103 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008237/0.3654, allocations: 0.5218 MB / 1.103 GB, free: 1.805 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.171e-05/0.3655, allocations: 37.36 kB / 1.103 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001619/0.3657, allocations: 56.47 kB / 1.103 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.3668, allocations: 0.8356 MB / 1.104 GB, free: 0.793 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.408e-05/0.3669, allocations: 4 kB / 1.104 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.153e-05/0.367, allocations: 27.98 kB / 1.104 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001965/0.3672, allocations: 64.94 kB / 1.104 GB, free: 0.6992 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008719/0.368, allocations: 0.5735 MB / 1.105 GB, free: 128 kB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004545/0.3726, allocations: 4.569 MB / 1.109 GB, free: 11.21 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004921/0.3731, allocations: 291.3 kB / 1.109 GB, free: 10.91 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003305/0.3735, allocations: 225.3 kB / 1.11 GB, free: 10.69 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 3.275e-05/0.3735, allocations: 8.219 kB / 1.11 GB, free: 10.68 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.097e-05/0.3735, allocations: 42.78 kB / 1.11 GB, free: 10.63 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=33): time 2.064e-06/0.3735, allocations: 4 kB / 1.11 GB, free: 10.63 MB / 0.8731 GB Notification: Performance of matching and sorting (n=40): time 0.005756/0.3793, allocations: 2.626 MB / 1.112 GB, free: 7.875 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.152e-05/0.3794, allocations: 63.34 kB / 1.112 GB, free: 7.801 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005671/0.38, allocations: 465.9 kB / 1.113 GB, free: 7.332 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.519e-05/0.38, allocations: 33.7 kB / 1.113 GB, free: 7.293 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002574/0.3803, allocations: 339.7 kB / 1.113 GB, free: 6.953 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.000115/0.3804, allocations: 145.9 kB / 1.113 GB, free: 6.809 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001759/0.3806, allocations: 106.1 kB / 1.113 GB, free: 6.699 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001504/0.3807, allocations: 370.8 kB / 1.114 GB, free: 6.328 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00035/0.3811, allocations: 229 kB / 1.114 GB, free: 6.105 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004778/0.3816, allocations: 406.5 kB / 1.114 GB, free: 5.629 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008788/0.3825, allocations: 0.6817 MB / 1.115 GB, free: 4.875 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.3825, allocations: 4 kB / 1.115 GB, free: 4.871 MB / 0.8731 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001767/0.3843, allocations: 0.9169 MB / 1.116 GB, free: 3.938 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.648e-05/0.3843, allocations: 8 kB / 1.116 GB, free: 3.93 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.367e-05/0.3843, allocations: 8 kB / 1.116 GB, free: 3.922 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008544/0.3852, allocations: 226.9 kB / 1.116 GB, free: 3.691 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005329/0.3857, allocations: 115.8 kB / 1.116 GB, free: 3.578 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005423/0.3912, allocations: 5.336 MB / 1.121 GB, free: 13.82 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005174/0.3917, allocations: 31.97 kB / 1.121 GB, free: 13.79 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.457e-05/0.3918, allocations: 20 kB / 1.121 GB, free: 13.77 MB / 0.8887 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.0003688/0.3921, allocations: 229.7 kB / 1.122 GB, free: 13.54 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001023/0.3922, allocations: 59.28 kB / 1.122 GB, free: 13.48 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001501/0.3938, allocations: 0.781 MB / 1.122 GB, free: 12.68 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.3938, allocations: 8 kB / 1.123 GB, free: 12.67 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.3938, allocations: 192 / 1.123 GB, free: 12.67 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.3938, allocations: 0 / 1.123 GB, free: 12.67 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002421/0.3962, allocations: 1.505 MB / 1.124 GB, free: 11.08 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.3962, allocations: 0 / 1.124 GB, free: 11.08 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003825/0.3966, allocations: 75.88 kB / 1.124 GB, free: 11 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006855/0.3973, allocations: 198.6 kB / 1.124 GB, free: 10.8 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.272e-05/0.3974, allocations: 8 kB / 1.124 GB, free: 10.79 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005141/0.4025, allocations: 5.273 MB / 1.129 GB, free: 5.102 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.755e-06/0.4026, allocations: 8.016 kB / 1.129 GB, free: 5.094 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002035/0.4046, allocations: 1.135 MB / 1.131 GB, free: 3.91 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002849/0.4049, allocations: 164.4 kB / 1.131 GB, free: 3.73 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.162e-05/0.405, allocations: 23.83 kB / 1.131 GB, free: 3.707 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003277/0.4053, allocations: 23.97 kB / 1.131 GB, free: 3.684 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.4054, allocations: 31.95 kB / 1.131 GB, free: 3.652 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.109e-05/0.4055, allocations: 12 kB / 1.131 GB, free: 3.641 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0003904/0.4059, allocations: 318.9 kB / 1.131 GB, free: 3.332 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.51e-07/0.4059, allocations: 0 / 1.131 GB, free: 3.332 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0007537/0.4066, allocations: 168 kB / 1.131 GB, free: 3.168 MB / 0.8887 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.0001803/0.4068, allocations: 116.3 kB / 1.131 GB, free: 3.043 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.001703/0.4085, allocations: 1.016 MB / 1.132 GB, free: 1.988 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.4086, allocations: 0 / 1.132 GB, free: 1.988 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0009677/0.4095, allocations: 0.6812 MB / 1.133 GB, free: 1.27 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009066/0.4104, allocations: 185 kB / 1.133 GB, free: 1.094 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002092/0.4125, allocations: 1.258 MB / 1.134 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005617/0.4131, allocations: 0.953 MB / 1.135 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0003435/0.4135, allocations: 109 kB / 1.135 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.4136, allocations: 43.42 kB / 1.135 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of SimCode: time 4.81e-07/0.4136, allocations: 0 / 1.135 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of Templates: time 0.01802/0.4316, allocations: 9.159 MB / 1.144 GB, free: 5.605 MB / 0.9044 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches