Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.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_10_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_10_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.001333/0.001333, allocations: 112.1 kB / 16.41 MB, free: 6.492 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.002135/0.002135, allocations: 189.2 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.583/1.583, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.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.832/2.832, allocations: 437.1 MB / 0.7112 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002051/0.002051, allocations: 63.91 kB / 1.019 GB, free: 9.41 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.021/1.023, allocations: 151.6 MB / 1.167 GB, free: 3.863 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.008397/1.031, allocations: 5.563 MB / 1.173 GB, free: 14.28 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.004958/1.036, allocations: 2.642 MB / 1.175 GB, free: 11.62 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003855/1.037, allocations: 23.81 kB / 1.175 GB, free: 11.6 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001899/1.039, allocations: 0.6902 MB / 1.176 GB, free: 10.91 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.001046/1.04, allocations: 425.7 kB / 1.176 GB, free: 10.49 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001062/1.041, allocations: 404.7 kB / 1.177 GB, free: 10.1 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.00114/1.042, allocations: 0.9553 MB / 1.178 GB, free: 9.137 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000694/1.043, allocations: 471 kB / 1.178 GB, free: 8.676 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004926/1.043, allocations: 378.5 kB / 1.179 GB, free: 8.305 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000539/1.044, allocations: 410.4 kB / 1.179 GB, free: 7.902 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 7.926e-05/1.044, allocations: 52 kB / 1.179 GB, free: 7.852 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000691/1.044, allocations: 359.3 kB / 1.179 GB, free: 7.5 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0002811/1.045, allocations: 251.3 kB / 1.18 GB, free: 7.254 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0003886/1.045, allocations: 350.2 kB / 1.18 GB, free: 6.91 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001171/1.046, allocations: 0.9689 MB / 1.181 GB, free: 5.938 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/1.046, allocations: 4 kB / 1.181 GB, free: 5.934 MB / 0.9044 GB Notification: Performance of FrontEnd: time 3.827e-06/1.046, allocations: 4 kB / 1.181 GB, free: 5.93 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.075e-05/1.046, allocations: 0 / 1.181 GB, free: 5.93 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.00174/1.048, allocations: 0.9961 MB / 1.182 GB, free: 4.879 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.448e-05/1.048, allocations: 8.625 kB / 1.182 GB, free: 4.871 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001428/1.05, allocations: 200.2 kB / 1.182 GB, free: 4.676 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009237/1.05, allocations: 0.5417 MB / 1.183 GB, free: 4.094 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.195e-05/1.051, allocations: 37.38 kB / 1.183 GB, free: 4.059 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001672/1.051, allocations: 52.55 kB / 1.183 GB, free: 4.008 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001308/1.052, allocations: 0.8318 MB / 1.183 GB, free: 3.098 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.216e-05/1.052, allocations: 7.938 kB / 1.183 GB, free: 3.09 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.619e-05/1.052, allocations: 20 kB / 1.183 GB, free: 3.07 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002155/1.052, allocations: 68.94 kB / 1.184 GB, free: 3 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009971/1.053, allocations: 0.5697 MB / 1.184 GB, free: 2.434 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005239/1.059, allocations: 4.57 MB / 1.189 GB, free: 13.51 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004925/1.059, allocations: 299.3 kB / 1.189 GB, free: 13.21 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003442/1.059, allocations: 229.3 kB / 1.189 GB, free: 12.98 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.332e-05/1.06, allocations: 8.266 kB / 1.189 GB, free: 12.97 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.652e-05/1.06, allocations: 30.84 kB / 1.189 GB, free: 12.93 MB / 0.92 GB Notification: Performance of pre-optimization done (n=33): time 2.846e-06/1.06, allocations: 0 / 1.189 GB, free: 12.93 MB / 0.92 GB Notification: Performance of matching and sorting (n=40): time 0.005777/1.065, allocations: 2.651 MB / 1.192 GB, free: 10.16 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.429e-05/1.065, allocations: 55.41 kB / 1.192 GB, free: 10.09 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005086/1.066, allocations: 470 kB / 1.192 GB, free: 9.617 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.956e-05/1.066, allocations: 33.7 kB / 1.192 GB, free: 9.578 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002605/1.066, allocations: 356.5 kB / 1.193 GB, free: 9.227 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.000121/1.066, allocations: 146.7 kB / 1.193 GB, free: 9.082 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001764/1.067, allocations: 110.2 kB / 1.193 GB, free: 8.969 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001707/1.067, allocations: 362.8 kB / 1.193 GB, free: 8.605 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000365/1.067, allocations: 237 kB / 1.193 GB, free: 8.375 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005042/1.068, allocations: 414.4 kB / 1.194 GB, free: 7.895 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009154/1.069, allocations: 0.674 MB / 1.194 GB, free: 7.148 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/1.069, allocations: 0 / 1.194 GB, free: 7.148 MB / 0.92 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001747/1.07, allocations: 0.9255 MB / 1.195 GB, free: 6.207 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/1.07, allocations: 10.19 kB / 1.195 GB, free: 6.199 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/1.07, allocations: 8.062 kB / 1.195 GB, free: 6.191 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007983/1.071, allocations: 226.3 kB / 1.196 GB, free: 5.961 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005111/1.072, allocations: 115.8 kB / 1.196 GB, free: 5.848 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005648/1.077, allocations: 5.341 MB / 1.201 GB, free: 92 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004607/1.078, allocations: 31.97 kB / 1.201 GB, free: 60 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.285e-05/1.078, allocations: 24 kB / 1.201 GB, free: 36 kB / 0.92 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.0003558/1.078, allocations: 230.1 kB / 1.201 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.838e-05/1.078, allocations: 63.56 kB / 1.201 GB, free: 15.74 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001576/1.08, allocations: 0.7736 MB / 1.202 GB, free: 14.95 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/1.08, allocations: 4 kB / 1.202 GB, free: 14.94 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/1.08, allocations: 12 kB / 1.202 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/1.08, allocations: 0 / 1.202 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002535/1.082, allocations: 1.495 MB / 1.203 GB, free: 13.35 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/1.083, allocations: 4 kB / 1.203 GB, free: 13.34 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003664/1.083, allocations: 67.88 kB / 1.204 GB, free: 13.28 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006885/1.084, allocations: 210.6 kB / 1.204 GB, free: 13.06 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.128e-05/1.084, allocations: 8 kB / 1.204 GB, free: 13.05 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005441/1.089, allocations: 5.278 MB / 1.209 GB, free: 7.355 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.84e-06/1.089, allocations: 4 kB / 1.209 GB, free: 7.352 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001868/1.091, allocations: 1.131 MB / 1.21 GB, free: 6.172 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002699/1.091, allocations: 168.8 kB / 1.21 GB, free: 5.988 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.963e-05/1.091, allocations: 15.92 kB / 1.21 GB, free: 5.973 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003212/1.092, allocations: 27.97 kB / 1.21 GB, free: 5.945 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.236e-05/1.092, allocations: 39.95 kB / 1.21 GB, free: 5.906 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.012e-05/1.092, allocations: 12 kB / 1.21 GB, free: 5.895 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0003948/1.092, allocations: 314.9 kB / 1.211 GB, free: 5.59 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/1.092, allocations: 0 / 1.211 GB, free: 5.59 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0006866/1.093, allocations: 164 kB / 1.211 GB, free: 5.43 MB / 0.9356 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.0002094/1.093, allocations: 119.5 kB / 1.211 GB, free: 5.301 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.001704/1.095, allocations: 1.016 MB / 1.212 GB, free: 4.246 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/1.095, allocations: 0 / 1.212 GB, free: 4.246 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.001028/1.096, allocations: 0.6915 MB / 1.213 GB, free: 3.516 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008839/1.097, allocations: 176.3 kB / 1.213 GB, free: 3.352 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002214/1.099, allocations: 1.267 MB / 1.214 GB, free: 2.031 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006539/1.1, allocations: 0.9533 MB / 1.215 GB, free: 1.051 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0003439/1.1, allocations: 121 kB / 1.215 GB, free: 0.9336 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001007/1.1, allocations: 35.44 kB / 1.215 GB, free: 0.8984 MB / 0.9356 GB Notification: Performance of SimCode: time 6.31e-07/1.1, allocations: 0 / 1.215 GB, free: 0.8984 MB / 0.9356 GB Notification: Performance of Templates: time 0.01731/1.117, allocations: 9.013 MB / 1.224 GB, free: 8.004 MB / 0.9512 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches