Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_3.load1.v.1.|load_sc_3.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.|load_sc_3.load1.i.1.|load_sc_3.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_3.load1.v.1.|load_sc_3.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.|load_sc_3.load1.i.1.|load_sc_3.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.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.008039/0.008039, allocations: 101.1 kB / 15.88 MB, free: 5.867 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.002055/0.002055, allocations: 193.5 kB / 16.79 MB, free: 5.809 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.404/1.404, allocations: 222.9 MB / 240.5 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.375/2.375, allocations: 390.2 MB / 0.6649 GB, free: 0.6172 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001609/0.001609, allocations: 55.91 kB / 0.8125 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6464/0.6481, allocations: 140.4 MB / 0.9496 GB, free: 9.164 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL): time 0.02726/0.6754, allocations: 26.44 MB / 0.9754 GB, free: 4.914 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01376/0.6892, allocations: 8.072 MB / 0.9833 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003236/0.6924, allocations: 107.4 kB / 0.9834 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.006944/0.6995, allocations: 2.569 MB / 0.9859 GB, free: 12.49 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.005052/0.7045, allocations: 1.49 MB / 0.9874 GB, free: 11.28 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.004509/0.7091, allocations: 1.536 MB / 0.9889 GB, free: 9.789 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.009309/0.7184, allocations: 8.697 MB / 0.9974 GB, free: 1.07 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01365/0.7321, allocations: 8.191 MB / 1.005 GB, free: 8.777 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004655/0.7367, allocations: 2.187 MB / 1.007 GB, free: 6.582 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005236/0.742, allocations: 2.893 MB / 1.01 GB, free: 3.68 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.001603/0.7436, allocations: 344 kB / 1.011 GB, free: 3.344 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003983/0.7476, allocations: 1.334 MB / 1.012 GB, free: 2.008 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.003409/0.7511, allocations: 1.882 MB / 1.014 GB, free: 124 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.006355/0.7574, allocations: 2.182 MB / 1.016 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.008927/0.7664, allocations: 6.809 MB / 1.023 GB, free: 7.105 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.7664, allocations: 0 / 1.023 GB, free: 7.105 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.442e-06/0.7664, allocations: 4 kB / 1.023 GB, free: 7.102 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0003133/0.7667, allocations: 0 / 1.023 GB, free: 7.102 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 0.01359/0.7803, allocations: 4.22 MB / 1.027 GB, free: 2.812 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.31e-05/0.7804, allocations: 12.03 kB / 1.027 GB, free: 2.801 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005213/0.7856, allocations: 0.8039 MB / 1.027 GB, free: 1.992 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005577/0.7912, allocations: 2.428 MB / 1.03 GB, free: 15.51 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000284/0.7915, allocations: 267.7 kB / 1.03 GB, free: 15.25 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001396/0.793, allocations: 380.5 kB / 1.03 GB, free: 14.88 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01396/0.8069, allocations: 5.996 MB / 1.036 GB, free: 8.625 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002051/0.8072, allocations: 23.86 kB / 1.036 GB, free: 8.602 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009761/0.8081, allocations: 148 kB / 1.036 GB, free: 8.457 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006773/0.8088, allocations: 282.9 kB / 1.037 GB, free: 8.18 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00955/0.8184, allocations: 4.52 MB / 1.041 GB, free: 3.652 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03411/0.8525, allocations: 27.66 MB / 1.068 GB, free: 5.488 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001833/0.8544, allocations: 1.124 MB / 1.069 GB, free: 4.355 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001505/0.8559, allocations: 1.015 MB / 1.07 GB, free: 3.34 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001067/0.8561, allocations: 24.92 kB / 1.07 GB, free: 3.316 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.742e-05/0.8561, allocations: 47.56 kB / 1.07 GB, free: 3.262 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=110): time 3.647e-06/0.8561, allocations: 0 / 1.07 GB, free: 3.262 MB / 0.8262 GB Notification: Performance of matching and sorting (n=131): time 0.02319/0.8793, allocations: 9.658 MB / 1.08 GB, free: 9.391 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.879e-05/0.8794, allocations: 64.72 kB / 1.08 GB, free: 9.316 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002412/0.8818, allocations: 1.502 MB / 1.081 GB, free: 7.816 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0001355/0.882, allocations: 49.7 kB / 1.081 GB, free: 7.762 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.001178/0.8832, allocations: 1.659 MB / 1.083 GB, free: 6.078 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004556/0.8836, allocations: 477.2 kB / 1.083 GB, free: 5.605 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005691/0.8842, allocations: 323.2 kB / 1.084 GB, free: 5.285 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 9.1e-05/0.8843, allocations: 305.1 kB / 1.084 GB, free: 4.984 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001391/0.8857, allocations: 0.9174 MB / 1.085 GB, free: 4.066 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001751/0.8875, allocations: 1.463 MB / 1.086 GB, free: 2.355 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003273/0.8908, allocations: 2.546 MB / 1.089 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.78e-05/0.8908, allocations: 8 kB / 1.089 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.006409/0.8972, allocations: 3.285 MB / 1.092 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.35e-05/0.8973, allocations: 12 kB / 1.092 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.08e-05/0.8973, allocations: 20.88 kB / 1.092 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002448/0.8998, allocations: 0.7412 MB / 1.093 GB, free: 11.44 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001744/0.9015, allocations: 391.3 kB / 1.093 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01588/0.9174, allocations: 15.75 MB / 1.109 GB, free: 10.09 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001872/0.9193, allocations: 107.8 kB / 1.109 GB, free: 9.988 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003512/0.9197, allocations: 75.98 kB / 1.109 GB, free: 9.914 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (193): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (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.002506/0.9222, allocations: 1.314 MB / 1.11 GB, free: 8.59 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006501/0.9229, allocations: 201.7 kB / 1.11 GB, free: 8.391 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005679/0.9286, allocations: 2.788 MB / 1.113 GB, free: 5.562 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.735e-05/0.9286, allocations: 16 kB / 1.113 GB, free: 5.547 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.573e-05/0.9287, allocations: 4 kB / 1.113 GB, free: 5.543 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/0.9287, allocations: 3.984 kB / 1.113 GB, free: 5.539 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01209/0.9408, allocations: 6.213 MB / 1.119 GB, free: 15.16 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.516e-05/0.9408, allocations: 7.938 kB / 1.119 GB, free: 15.15 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001373/0.9422, allocations: 236.3 kB / 1.119 GB, free: 14.92 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002176/0.9444, allocations: 0.679 MB / 1.12 GB, free: 14.21 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001584/0.9446, allocations: 32 kB / 1.12 GB, free: 14.18 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01398/0.9586, allocations: 15.51 MB / 1.135 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.875e-06/0.9586, allocations: 4 kB / 1.135 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006331/0.9649, allocations: 4.004 MB / 1.139 GB, free: 9.348 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009818/0.966, allocations: 450.6 kB / 1.139 GB, free: 8.887 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002604/0.9662, allocations: 43.89 kB / 1.139 GB, free: 8.844 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000918/0.9672, allocations: 83.89 kB / 1.14 GB, free: 8.762 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000334/0.9675, allocations: 112.7 kB / 1.14 GB, free: 8.652 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.539e-05/0.9676, allocations: 47.94 kB / 1.14 GB, free: 8.605 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001315/0.9689, allocations: 0.9903 MB / 1.141 GB, free: 7.625 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.51e-07/0.9689, allocations: 0 / 1.141 GB, free: 7.625 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.002274/0.9712, allocations: 0.6875 MB / 1.141 GB, free: 6.938 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (RL_3.phase1.i_p[1],RL_3.phase1.i_p[2],RL_3.phase2.i_p[1],RL_3.phase2.i_p[2],RL_3.phase3.i_p[1],RL_3.phase3.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 (101): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,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.0002548/0.9715, allocations: 155 kB / 1.142 GB, free: 6.777 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.005355/0.9768, allocations: 3.499 MB / 1.145 GB, free: 3.16 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.184e-05/0.9769, allocations: 8.125 kB / 1.145 GB, free: 3.152 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.003581/0.9805, allocations: 2.287 MB / 1.147 GB, free: 0.7539 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003315/0.9838, allocations: 0.6206 MB / 1.148 GB, free: 140 kB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0118/0.9956, allocations: 8.615 MB / 1.156 GB, free: 7.43 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002738/0.9984, allocations: 2.722 MB / 1.159 GB, free: 4.672 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006329/0.9991, allocations: 127.4 kB / 1.159 GB, free: 4.547 MB / 0.92 GB Notification: Performance of SimCode: time 2.655e-06/0.9991, allocations: 0 / 1.159 GB, free: 4.547 MB / 0.92 GB Notification: Performance of Templates: time 0.6654/1.664, allocations: 209.6 MB / 1.364 GB, free: 199.3 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches