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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.008409/0.008409, allocations: 103.4 kB / 15.73 MB, free: 6.051 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.001737/0.001737, allocations: 197.6 kB / 16.68 MB, free: 5.98 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.417/1.417, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.718/2.718, allocations: 461.9 MB / 0.7347 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002319/0.002319, allocations: 76.11 kB / 1.054 GB, free: 7.188 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.333/0.3354, allocations: 157.4 MB / 1.208 GB, free: 9.684 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.007401/0.3428, allocations: 5.537 MB / 1.213 GB, free: 4.117 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.004346/0.3472, allocations: 2.654 MB / 1.216 GB, free: 1.453 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004734/0.3477, allocations: 23.81 kB / 1.216 GB, free: 1.43 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.00184/0.3496, allocations: 0.6729 MB / 1.216 GB, free: 0.7539 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.001029/0.3506, allocations: 413.7 kB / 1.217 GB, free: 356 kB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001012/0.3517, allocations: 421.7 kB / 1.217 GB, free: 15.93 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001186/0.3528, allocations: 0.9513 MB / 1.218 GB, free: 14.98 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006871/0.3535, allocations: 474.3 kB / 1.219 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000619/0.3542, allocations: 378.7 kB / 1.219 GB, free: 14.15 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006183/0.3548, allocations: 406.4 kB / 1.219 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001163/0.3549, allocations: 48 kB / 1.219 GB, free: 13.7 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006777/0.3556, allocations: 355.3 kB / 1.22 GB, free: 13.36 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0002769/0.3559, allocations: 251.3 kB / 1.22 GB, free: 13.11 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0004665/0.3564, allocations: 354.2 kB / 1.22 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001129/0.3575, allocations: 0.9773 MB / 1.221 GB, free: 11.78 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.3575, allocations: 0 / 1.221 GB, free: 11.78 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.483e-06/0.3575, allocations: 0 / 1.221 GB, free: 11.78 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 2.436e-05/0.3576, allocations: 0 / 1.221 GB, free: 11.78 MB / 0.9825 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.001658/0.3592, allocations: 0.9775 MB / 1.222 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.3593, allocations: 16.61 kB / 1.222 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001386/0.3607, allocations: 187.9 kB / 1.222 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007929/0.3615, allocations: 0.5334 MB / 1.223 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.007e-05/0.3615, allocations: 33.38 kB / 1.223 GB, free: 9.949 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001497/0.3617, allocations: 60.53 kB / 1.223 GB, free: 9.891 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001138/0.3628, allocations: 0.8202 MB / 1.224 GB, free: 8.984 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.697e-05/0.3629, allocations: 7.938 kB / 1.224 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.82e-05/0.3629, allocations: 27.98 kB / 1.224 GB, free: 8.949 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001813/0.3631, allocations: 60.95 kB / 1.224 GB, free: 8.891 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008811/0.364, allocations: 0.5736 MB / 1.224 GB, free: 8.316 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004326/0.3683, allocations: 4.569 MB / 1.229 GB, free: 3.395 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004455/0.3688, allocations: 299.2 kB / 1.229 GB, free: 3.094 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002956/0.3691, allocations: 225.3 kB / 1.229 GB, free: 2.871 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.376e-05/0.3691, allocations: 8.281 kB / 1.229 GB, free: 2.863 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.871e-05/0.3692, allocations: 38.84 kB / 1.229 GB, free: 2.816 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=33): time 1.833e-06/0.3692, allocations: 0 / 1.229 GB, free: 2.816 MB / 0.9825 GB Notification: Performance of matching and sorting (n=40): time 0.005412/0.3746, allocations: 2.635 MB / 1.232 GB, free: 56 kB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.009e-05/0.3747, allocations: 59.41 kB / 1.232 GB, free: 15.98 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004942/0.3752, allocations: 462 kB / 1.233 GB, free: 15.52 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.609e-05/0.3752, allocations: 33.7 kB / 1.233 GB, free: 15.48 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002798/0.3755, allocations: 347.6 kB / 1.233 GB, free: 15.13 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001131/0.3756, allocations: 149.9 kB / 1.233 GB, free: 14.98 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001759/0.3758, allocations: 98.16 kB / 1.233 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0002162/0.376, allocations: 366.8 kB / 1.233 GB, free: 14.51 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003746/0.3764, allocations: 229 kB / 1.234 GB, free: 14.29 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004941/0.3769, allocations: 410.4 kB / 1.234 GB, free: 13.81 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009621/0.3779, allocations: 0.6818 MB / 1.235 GB, free: 13.06 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.3779, allocations: 4 kB / 1.235 GB, free: 13.05 MB / 0.9981 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001713/0.3796, allocations: 0.9132 MB / 1.236 GB, free: 12.12 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.347e-05/0.3797, allocations: 8 kB / 1.236 GB, free: 12.12 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.526e-05/0.3797, allocations: 8.656 kB / 1.236 GB, free: 12.11 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008137/0.3805, allocations: 226.3 kB / 1.236 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005069/0.381, allocations: 111.9 kB / 1.236 GB, free: 11.77 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005488/0.3865, allocations: 5.348 MB / 1.241 GB, free: 6.004 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004195/0.387, allocations: 31.97 kB / 1.241 GB, free: 5.973 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.68e-05/0.387, allocations: 20 kB / 1.241 GB, free: 5.953 MB / 0.9981 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.0003228/0.3873, allocations: 225.6 kB / 1.241 GB, free: 5.723 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001073/0.3875, allocations: 59.28 kB / 1.242 GB, free: 5.664 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001516/0.389, allocations: 0.7737 MB / 1.242 GB, free: 4.871 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.389, allocations: 4 kB / 1.242 GB, free: 4.867 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.389, allocations: 0 / 1.242 GB, free: 4.867 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.389, allocations: 0 / 1.242 GB, free: 4.867 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00238/0.3914, allocations: 1.509 MB / 1.244 GB, free: 3.27 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.3914, allocations: 0 / 1.244 GB, free: 3.27 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003645/0.3918, allocations: 72.08 kB / 1.244 GB, free: 3.199 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006864/0.3925, allocations: 202.6 kB / 1.244 GB, free: 2.992 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.842e-05/0.3925, allocations: 15.98 kB / 1.244 GB, free: 2.977 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5971/0.9896, allocations: 5.261 MB / 1.249 GB, free: 35.55 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/0.9896, allocations: 6.312 kB / 1.249 GB, free: 35.55 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00231/0.992, allocations: 1.132 MB / 1.25 GB, free: 35.34 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003759/0.9924, allocations: 170.8 kB / 1.25 GB, free: 35.25 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.421e-05/0.9924, allocations: 15.89 kB / 1.25 GB, free: 35.25 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003455/0.9928, allocations: 25.12 kB / 1.251 GB, free: 35.25 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001384/0.9929, allocations: 34.36 kB / 1.251 GB, free: 35.25 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-05/0.993, allocations: 17.34 kB / 1.251 GB, free: 35.25 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0004196/0.9934, allocations: 315.5 kB / 1.251 GB, free: 35.16 MB / 0.9981 GB Notification: Performance of sort global known variables: time 3.51e-07/0.9934, allocations: 0 / 1.251 GB, free: 35.16 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0008647/0.9943, allocations: 165.6 kB / 1.251 GB, free: 35.16 MB / 0.9981 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.0002147/0.9945, allocations: 116 kB / 1.251 GB, free: 35.07 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001666/0.9962, allocations: 1.012 MB / 1.252 GB, free: 34.73 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.9962, allocations: 0 / 1.252 GB, free: 34.73 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007869/0.997, allocations: 0.6838 MB / 1.253 GB, free: 34.39 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008449/0.9979, allocations: 185.8 kB / 1.253 GB, free: 34.38 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002434/1, allocations: 1.259 MB / 1.254 GB, free: 33.88 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004808/1.001, allocations: 0.9484 MB / 1.255 GB, free: 33.17 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0003363/1.001, allocations: 117.3 kB / 1.255 GB, free: 33.16 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.315e-05/1.001, allocations: 40.22 kB / 1.255 GB, free: 33.15 MB / 0.9981 GB Notification: Performance of SimCode: time 9.12e-07/1.001, allocations: 0 / 1.255 GB, free: 33.15 MB / 0.9981 GB Notification: Performance of Templates: time 0.02002/1.021, allocations: 8.967 MB / 1.264 GB, free: 32.7 MB / 0.9981 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=480 -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/jenkins/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