Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001507/0.001507, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001326/0.001326, allocations: 196 kB / 16.53 MB, free: 6.664 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.498/1.498, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.855/2.855, allocations: 437 MB / 0.7104 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001976/0.001976, allocations: 67.89 kB / 0.8692 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7193/0.7213, allocations: 151.6 MB / 1.017 GB, free: 2.492 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL): time 0.03446/0.7558, allocations: 26.65 MB / 1.043 GB, free: 7.75 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.01928/0.7751, allocations: 8.071 MB / 1.051 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003965/0.7791, allocations: 119.4 kB / 1.051 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.008337/0.7876, allocations: 2.77 MB / 1.054 GB, free: 12.76 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.006119/0.7937, allocations: 1.582 MB / 1.056 GB, free: 11.17 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.005833/0.7996, allocations: 1.674 MB / 1.057 GB, free: 9.5 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.009425/0.809, allocations: 6.138 MB / 1.063 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01258/0.8216, allocations: 7.435 MB / 1.07 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007237/0.8289, allocations: 2.555 MB / 1.073 GB, free: 9.242 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006375/0.8353, allocations: 2.835 MB / 1.076 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.002289/0.8377, allocations: 0.5078 MB / 1.076 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004856/0.8425, allocations: 1.279 MB / 1.077 GB, free: 4.609 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.005145/0.8477, allocations: 2.043 MB / 1.079 GB, free: 2.562 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.00961/0.8574, allocations: 2.385 MB / 1.082 GB, free: 172 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.01606/0.8735, allocations: 7.997 MB / 1.09 GB, free: 8.148 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 9.829e-06/0.8735, allocations: 8 kB / 1.09 GB, free: 8.141 MB / 0.8419 GB Notification: Performance of FrontEnd: time 5.49e-06/0.8735, allocations: 4 kB / 1.09 GB, free: 8.137 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0003556/0.8739, allocations: 0 / 1.09 GB, free: 8.137 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: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 0.01498/0.8889, allocations: 4.228 MB / 1.094 GB, free: 3.844 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.174e-05/0.8889, allocations: 12.03 kB / 1.094 GB, free: 3.832 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005389/0.8943, allocations: 0.7961 MB / 1.095 GB, free: 3.031 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006176/0.9006, allocations: 2.421 MB / 1.097 GB, free: 0.5547 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002815/0.9009, allocations: 279.6 kB / 1.097 GB, free: 288 kB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001502/0.9024, allocations: 372.6 kB / 1.098 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01486/0.9173, allocations: 6 MB / 1.103 GB, free: 9.664 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001294/0.9174, allocations: 15.88 kB / 1.103 GB, free: 9.648 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005491/0.918, allocations: 156 kB / 1.104 GB, free: 9.496 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006984/0.9187, allocations: 282.9 kB / 1.104 GB, free: 9.219 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01132/0.93, allocations: 4.528 MB / 1.108 GB, free: 4.684 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04336/0.9734, allocations: 27.65 MB / 1.135 GB, free: 6.52 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002046/0.9755, allocations: 1.12 MB / 1.136 GB, free: 5.391 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001646/0.9772, allocations: 1.029 MB / 1.137 GB, free: 4.363 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 7.171e-05/0.9773, allocations: 16.98 kB / 1.137 GB, free: 4.348 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.767e-05/0.9773, allocations: 43.56 kB / 1.137 GB, free: 4.293 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=110): time 3.186e-06/0.9774, allocations: 0 / 1.137 GB, free: 4.293 MB / 0.8887 GB Notification: Performance of matching and sorting (n=131): time 0.02405/1.001, allocations: 9.668 MB / 1.147 GB, free: 10.41 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.672e-05/1.002, allocations: 68.7 kB / 1.147 GB, free: 10.33 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002313/1.004, allocations: 1.494 MB / 1.148 GB, free: 8.84 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0001797/1.004, allocations: 49.7 kB / 1.148 GB, free: 8.785 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.001478/1.006, allocations: 1.663 MB / 1.15 GB, free: 7.098 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005339/1.006, allocations: 473.2 kB / 1.15 GB, free: 6.629 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005479/1.007, allocations: 327.2 kB / 1.151 GB, free: 6.305 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001389/1.007, allocations: 312.9 kB / 1.151 GB, free: 5.996 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001462/1.008, allocations: 0.9174 MB / 1.152 GB, free: 5.078 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001956/1.01, allocations: 1.467 MB / 1.153 GB, free: 3.371 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003712/1.014, allocations: 2.546 MB / 1.156 GB, free: 0.5859 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.06e-05/1.014, allocations: 4 kB / 1.156 GB, free: 0.582 MB / 0.9044 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.00639/1.02, allocations: 3.29 MB / 1.159 GB, free: 13.25 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.786e-05/1.02, allocations: 15.98 kB / 1.159 GB, free: 13.23 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.581e-05/1.02, allocations: 16 kB / 1.159 GB, free: 13.22 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002503/1.023, allocations: 0.7414 MB / 1.16 GB, free: 12.45 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001656/1.025, allocations: 387.4 kB / 1.16 GB, free: 12.07 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01888/1.044, allocations: 17.06 MB / 1.177 GB, free: 9.75 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001812/1.045, allocations: 99.91 kB / 1.177 GB, free: 9.652 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000169/1.046, allocations: 75.98 kB / 1.177 GB, free: 9.578 MB / 0.9356 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.002555/1.048, allocations: 1.305 MB / 1.178 GB, free: 8.262 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004822/1.049, allocations: 197.7 kB / 1.179 GB, free: 8.066 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005421/1.054, allocations: 2.8 MB / 1.181 GB, free: 5.223 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.537e-05/1.054, allocations: 12 kB / 1.181 GB, free: 5.211 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.334e-05/1.054, allocations: 8 kB / 1.181 GB, free: 5.203 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.315e-05/1.054, allocations: 3.984 kB / 1.181 GB, free: 5.199 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01118/1.065, allocations: 6.216 MB / 1.187 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.184e-05/1.065, allocations: 4 kB / 1.187 GB, free: 14.81 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001199/1.067, allocations: 231.6 kB / 1.188 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00213/1.069, allocations: 0.6755 MB / 1.188 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00011/1.069, allocations: 35.98 kB / 1.188 GB, free: 13.85 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01842/1.087, allocations: 16.79 MB / 1.205 GB, free: 11.8 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.739e-06/1.087, allocations: 7.984 kB / 1.205 GB, free: 11.79 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007195/1.094, allocations: 4.004 MB / 1.209 GB, free: 7.68 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001605/1.096, allocations: 454.6 kB / 1.209 GB, free: 7.215 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004394/1.097, allocations: 35.94 kB / 1.209 GB, free: 7.18 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/1.098, allocations: 83.89 kB / 1.209 GB, free: 7.098 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004405/1.098, allocations: 112.7 kB / 1.209 GB, free: 6.988 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.612e-05/1.098, allocations: 40 kB / 1.209 GB, free: 6.949 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.001837/1.1, allocations: 0.9981 MB / 1.21 GB, free: 5.961 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/1.1, allocations: 0 / 1.21 GB, free: 5.961 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.00269/1.103, allocations: 0.6875 MB / 1.211 GB, free: 5.273 MB / 0.9669 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.00032/1.103, allocations: 152.7 kB / 1.211 GB, free: 5.117 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.007216/1.11, allocations: 4.112 MB / 1.215 GB, free: 0.8867 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 6.683e-06/1.11, allocations: 0 / 1.215 GB, free: 0.8867 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.003658/1.114, allocations: 2.284 MB / 1.217 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003247/1.117, allocations: 0.6711 MB / 1.218 GB, free: 13.83 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01305/1.13, allocations: 6.535 MB / 1.224 GB, free: 7.207 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003303/1.134, allocations: 2.672 MB / 1.227 GB, free: 4.504 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.001833/1.136, allocations: 489.4 kB / 1.227 GB, free: 4.023 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003484/1.136, allocations: 119.4 kB / 1.228 GB, free: 3.906 MB / 0.9825 GB Notification: Performance of SimCode: time 1.062e-06/1.136, allocations: 0 / 1.228 GB, free: 3.906 MB / 0.9825 GB Notification: Performance of Templates: time 0.6057/1.742, allocations: 33.64 MB / 1.26 GB, free: 203.9 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches