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.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.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.001837/0.001837, allocations: 106.7 kB / 16.41 MB, free: 6.484 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.001968/0.001968, allocations: 189.5 kB / 17.34 MB, free: 5.762 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.369/1.369, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.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.237/2.237, allocations: 390.2 MB / 0.6655 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001605/0.001605, allocations: 59.89 kB / 0.9515 GB, free: 7.664 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.824/0.8256, allocations: 140.4 MB / 1.089 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL): time 0.03302/0.8587, allocations: 26.65 MB / 1.115 GB, free: 3.512 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01697/0.8757, allocations: 8.086 MB / 1.123 GB, free: 13.93 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004208/0.8799, allocations: 119.1 kB / 1.123 GB, free: 13.89 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.008106/0.8881, allocations: 2.754 MB / 1.125 GB, free: 12.22 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0066/0.8948, allocations: 1.674 MB / 1.127 GB, free: 11.18 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.005622/0.9004, allocations: 1.671 MB / 1.129 GB, free: 10.25 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.01041/0.9108, allocations: 6.151 MB / 1.135 GB, free: 7.445 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.011/0.9219, allocations: 7.333 MB / 1.142 GB, free: 4.516 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006098/0.928, allocations: 2.615 MB / 1.144 GB, free: 3.312 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006664/0.9347, allocations: 2.83 MB / 1.147 GB, free: 2.074 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.002167/0.9369, allocations: 0.5085 MB / 1.148 GB, free: 2.074 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005217/0.9422, allocations: 1.282 MB / 1.149 GB, free: 1.77 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.004961/0.9471, allocations: 2.046 MB / 1.151 GB, free: 0.9297 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0091/0.9563, allocations: 2.384 MB / 1.153 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.01711/0.9734, allocations: 8.064 MB / 1.161 GB, free: 11.1 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.9735, allocations: 0 / 1.161 GB, free: 11.1 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.673e-06/0.9735, allocations: 0 / 1.161 GB, free: 11.1 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0003362/0.9738, allocations: 0 / 1.161 GB, free: 11.1 MB / 0.9044 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.01502/0.9889, allocations: 4.235 MB / 1.165 GB, free: 8.234 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.9889, allocations: 9.031 kB / 1.165 GB, free: 8.234 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005414/0.9943, allocations: 0.7995 MB / 1.166 GB, free: 7.852 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006466/1.001, allocations: 2.578 MB / 1.169 GB, free: 6.145 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002929/1.001, allocations: 273.2 kB / 1.169 GB, free: 6.02 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001773/1.003, allocations: 381.6 kB / 1.169 GB, free: 5.883 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01499/1.018, allocations: 5.983 MB / 1.175 GB, free: 2.148 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000147/1.018, allocations: 23.09 kB / 1.175 GB, free: 2.133 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008555/1.019, allocations: 159.2 kB / 1.175 GB, free: 2.016 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007184/1.02, allocations: 288 kB / 1.175 GB, free: 1.938 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01066/1.03, allocations: 4.52 MB / 1.18 GB, free: 15.61 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03567/1.066, allocations: 27.45 MB / 1.207 GB, free: 2.406 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001802/1.068, allocations: 1.115 MB / 1.208 GB, free: 1.281 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001333/1.069, allocations: 1.015 MB / 1.209 GB, free: 268 kB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 7.628e-05/1.069, allocations: 12.98 kB / 1.209 GB, free: 256 kB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.392e-05/1.069, allocations: 51.55 kB / 1.209 GB, free: 196 kB / 0.9356 GB Notification: Performance of pre-optimization done (n=110): time 5.039e-06/1.069, allocations: 7.922 kB / 1.209 GB, free: 188 kB / 0.9356 GB Notification: Performance of matching and sorting (n=131): time 0.02151/1.091, allocations: 9.656 MB / 1.218 GB, free: 6.316 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.053e-05/1.091, allocations: 68.72 kB / 1.218 GB, free: 6.238 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002159/1.093, allocations: 1.498 MB / 1.22 GB, free: 4.742 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0001872/1.093, allocations: 49.7 kB / 1.22 GB, free: 4.688 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.001114/1.095, allocations: 1.667 MB / 1.221 GB, free: 2.996 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004377/1.095, allocations: 461.4 kB / 1.222 GB, free: 2.539 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005092/1.096, allocations: 335.2 kB / 1.222 GB, free: 2.207 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001097/1.096, allocations: 309.1 kB / 1.222 GB, free: 1.902 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001293/1.097, allocations: 0.9096 MB / 1.223 GB, free: 0.9922 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00166/1.099, allocations: 1.463 MB / 1.225 GB, free: 15.29 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00302/1.102, allocations: 2.55 MB / 1.227 GB, free: 12.5 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.247e-05/1.102, allocations: 4 kB / 1.227 GB, free: 12.49 MB / 0.9669 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.00571/1.107, allocations: 3.29 MB / 1.231 GB, free: 9.164 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.066e-05/1.107, allocations: 12 kB / 1.231 GB, free: 9.152 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.381e-05/1.107, allocations: 20 kB / 1.231 GB, free: 9.133 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002209/1.11, allocations: 0.7336 MB / 1.231 GB, free: 8.371 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001545/1.111, allocations: 383.4 kB / 1.232 GB, free: 7.996 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01533/1.127, allocations: 17.04 MB / 1.248 GB, free: 5.688 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001956/1.129, allocations: 99.84 kB / 1.248 GB, free: 5.59 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001843/1.129, allocations: 76 kB / 1.248 GB, free: 5.516 MB / 0.9825 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.002375/1.131, allocations: 1.321 MB / 1.25 GB, free: 4.184 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004087/1.132, allocations: 201.6 kB / 1.25 GB, free: 3.984 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004956/1.137, allocations: 2.784 MB / 1.253 GB, free: 1.16 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.256e-05/1.137, allocations: 12 kB / 1.253 GB, free: 1.148 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-05/1.137, allocations: 8 kB / 1.253 GB, free: 1.141 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.411e-05/1.137, allocations: 11.91 kB / 1.253 GB, free: 1.129 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01126/1.148, allocations: 6.216 MB / 1.259 GB, free: 10.75 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.588e-06/1.148, allocations: 4.656 kB / 1.259 GB, free: 10.74 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001161/1.149, allocations: 227.7 kB / 1.259 GB, free: 10.52 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001933/1.151, allocations: 0.6789 MB / 1.26 GB, free: 9.812 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001061/1.151, allocations: 31.94 kB / 1.26 GB, free: 9.781 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01487/1.166, allocations: 16.79 MB / 1.276 GB, free: 7.727 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/1.166, allocations: 4 kB / 1.276 GB, free: 7.723 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00634/1.172, allocations: 4.004 MB / 1.28 GB, free: 3.609 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001162/1.174, allocations: 446.7 kB / 1.28 GB, free: 3.152 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003001/1.174, allocations: 39.92 kB / 1.28 GB, free: 3.113 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009445/1.175, allocations: 83.83 kB / 1.28 GB, free: 3.031 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003294/1.175, allocations: 116.7 kB / 1.281 GB, free: 2.918 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.012e-05/1.175, allocations: 40 kB / 1.281 GB, free: 2.879 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001416/1.177, allocations: 0.9903 MB / 1.282 GB, free: 1.898 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.91e-07/1.177, allocations: 4 kB / 1.282 GB, free: 1.895 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.002508/1.179, allocations: 0.6875 MB / 1.282 GB, free: 1.207 MB / 1.014 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.0002589/1.18, allocations: 157.3 kB / 1.282 GB, free: 1.043 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.005265/1.185, allocations: 3.522 MB / 1.286 GB, free: 13.41 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 8.897e-06/1.185, allocations: 4.875 kB / 1.286 GB, free: 13.4 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.00314/1.188, allocations: 2.295 MB / 1.288 GB, free: 10.99 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003354/1.191, allocations: 0.6735 MB / 1.289 GB, free: 10.34 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01238/1.204, allocations: 6.948 MB / 1.296 GB, free: 3.297 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002907/1.207, allocations: 2.719 MB / 1.298 GB, free: 0.5469 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006423/1.207, allocations: 127.4 kB / 1.298 GB, free: 432 kB / 1.029 GB Notification: Performance of SimCode: time 9.02e-07/1.207, allocations: 0 / 1.298 GB, free: 432 kB / 1.029 GB Notification: Performance of Templates: time 0.1883/1.396, allocations: 209.9 MB / 1.503 GB, free: 14.45 MB / 1.248 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