Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.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.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001192/0.001192, allocations: 112.4 kB / 16.42 MB, free: 6.512 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.001455/0.001455, allocations: 190.7 kB / 17.35 MB, free: 5.738 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.438/1.438, allocations: 222.9 MB / 241.1 MB, free: 15.14 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.53/2.53, allocations: 437 MB / 0.7112 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001522/0.001522, allocations: 60.12 kB / 1.019 GB, free: 9.418 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.024/1.026, allocations: 151.6 MB / 1.167 GB, free: 3.859 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid): time 0.008564/1.035, allocations: 5.082 MB / 1.172 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.005745/1.04, allocations: 3.366 MB / 1.176 GB, free: 11.38 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004998/1.041, allocations: 15.88 kB / 1.176 GB, free: 11.36 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001854/1.043, allocations: 0.5104 MB / 1.176 GB, free: 10.85 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.001381/1.044, allocations: 396.4 kB / 1.176 GB, free: 10.46 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008667/1.045, allocations: 263.4 kB / 1.177 GB, free: 10.2 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.001206/1.046, allocations: 0.6502 MB / 1.177 GB, free: 9.551 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008103/1.047, allocations: 0.5363 MB / 1.178 GB, free: 9.016 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00055/1.048, allocations: 291.1 kB / 1.178 GB, free: 8.73 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005672/1.048, allocations: 295 kB / 1.178 GB, free: 8.441 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001242/1.048, allocations: 44 kB / 1.178 GB, free: 8.398 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006817/1.049, allocations: 307.5 kB / 1.179 GB, free: 8.098 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0002129/1.049, allocations: 171.5 kB / 1.179 GB, free: 7.93 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0003531/1.05, allocations: 238.9 kB / 1.179 GB, free: 7.695 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001226/1.051, allocations: 0.8353 MB / 1.18 GB, free: 6.859 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/1.051, allocations: 0 / 1.18 GB, free: 6.859 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.282e-06/1.051, allocations: 0 / 1.18 GB, free: 6.859 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.816e-05/1.051, allocations: 0 / 1.18 GB, free: 6.859 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: 83 * Number of variables: 83 Notification: Performance of Generate backend data structure: time 0.001905/1.053, allocations: 0.7988 MB / 1.181 GB, free: 6.012 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/1.053, allocations: 11.97 kB / 1.181 GB, free: 6 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003076/1.056, allocations: 0.6867 MB / 1.181 GB, free: 5.312 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009243/1.057, allocations: 471.7 kB / 1.182 GB, free: 4.812 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.384e-05/1.057, allocations: 25.03 kB / 1.182 GB, free: 4.789 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.154e-05/1.057, allocations: 36.12 kB / 1.182 GB, free: 4.754 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001739/1.059, allocations: 0.8317 MB / 1.183 GB, free: 3.895 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.078e-05/1.059, allocations: 4 kB / 1.183 GB, free: 3.891 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.912e-05/1.059, allocations: 12 kB / 1.183 GB, free: 3.879 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000182/1.059, allocations: 56.59 kB / 1.183 GB, free: 3.824 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002169/1.061, allocations: 0.9311 MB / 1.184 GB, free: 2.891 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0043/1.066, allocations: 2.863 MB / 1.187 GB, free: 15.81 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00177/1.067, allocations: 0.5542 MB / 1.187 GB, free: 15.25 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000786/1.068, allocations: 312.6 kB / 1.187 GB, free: 14.94 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000115/1.068, allocations: 81.11 kB / 1.187 GB, free: 14.84 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.374e-05/1.068, allocations: 38.5 kB / 1.187 GB, free: 14.8 MB / 0.92 GB Notification: Performance of pre-optimization done (n=22): time 2.494e-06/1.068, allocations: 0 / 1.187 GB, free: 14.8 MB / 0.92 GB Notification: Performance of matching and sorting (n=32): time 0.01338/1.082, allocations: 3.501 MB / 1.191 GB, free: 11.24 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.783e-05/1.082, allocations: 63.33 kB / 1.191 GB, free: 11.17 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005512/1.082, allocations: 396.4 kB / 1.191 GB, free: 10.77 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 6.112e-05/1.083, allocations: 33.7 kB / 1.191 GB, free: 10.73 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001761/1.083, allocations: 223.9 kB / 1.192 GB, free: 10.51 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001262/1.083, allocations: 118.4 kB / 1.192 GB, free: 10.39 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001984/1.083, allocations: 77.69 kB / 1.192 GB, free: 10.31 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001375/1.083, allocations: 350.8 kB / 1.192 GB, free: 9.957 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001028/1.084, allocations: 396.4 kB / 1.192 GB, free: 9.566 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001063/1.085, allocations: 464.2 kB / 1.193 GB, free: 9.082 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002058/1.087, allocations: 0.8405 MB / 1.194 GB, free: 8.215 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/1.087, allocations: 0 / 1.194 GB, free: 8.215 MB / 0.92 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.005772/1.093, allocations: 1.65 MB / 1.195 GB, free: 6.547 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.72e-05/1.093, allocations: 12.03 kB / 1.195 GB, free: 6.535 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.707e-05/1.093, allocations: 7.875 kB / 1.195 GB, free: 6.527 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00416/1.097, allocations: 0.8685 MB / 1.196 GB, free: 5.648 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007923/1.098, allocations: 135.8 kB / 1.196 GB, free: 5.516 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01011/1.108, allocations: 6.671 MB / 1.203 GB, free: 14.42 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001157/1.11, allocations: 111.9 kB / 1.203 GB, free: 14.31 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001297/1.11, allocations: 19.98 kB / 1.203 GB, free: 14.29 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001752/1.112, allocations: 0.5766 MB / 1.204 GB, free: 13.71 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001253/1.113, allocations: 460.8 kB / 1.204 GB, free: 13.23 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002283/1.115, allocations: 0.8117 MB / 1.205 GB, free: 12.39 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.528e-06/1.115, allocations: 0 / 1.205 GB, free: 12.39 MB / 0.9356 GB Notification: Performance of matching and sorting (n=43) (initialization_lambda0): time 0.005161/1.12, allocations: 1.633 MB / 1.206 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/1.12, allocations: 8.188 kB / 1.206 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/1.12, allocations: 8 kB / 1.206 GB, free: 10.69 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00277/1.123, allocations: 0.6468 MB / 1.207 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007048/1.124, allocations: 135.8 kB / 1.207 GB, free: 9.895 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007757/1.132, allocations: 7.28 MB / 1.214 GB, free: 2.055 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009442/1.133, allocations: 115.9 kB / 1.214 GB, free: 1.941 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.433e-05/1.133, allocations: 12.19 kB / 1.214 GB, free: 1.93 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (32): * Single equations (assignments): 29 * 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): 2 systems {(2,4,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002673/1.133, allocations: 208.2 kB / 1.215 GB, free: 1.719 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001444/1.133, allocations: 39.47 kB / 1.215 GB, free: 1.68 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005114/1.138, allocations: 1.537 MB / 1.216 GB, free: 132 kB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.986e-06/1.138, allocations: 0 / 1.216 GB, free: 132 kB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/1.138, allocations: 0 / 1.216 GB, free: 132 kB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003548/1.139, allocations: 172.8 kB / 1.216 GB, free: 15.94 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001127/1.139, allocations: 15.94 kB / 1.216 GB, free: 15.92 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006684/1.14, allocations: 79.86 kB / 1.216 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000165/1.14, allocations: 35.94 kB / 1.216 GB, free: 15.81 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003874/1.144, allocations: 1.315 MB / 1.218 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002487/1.146, allocations: 1.233 MB / 1.219 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000779/1.147, allocations: 348.2 kB / 1.219 GB, free: 12.89 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0004445/1.147, allocations: 307.1 kB / 1.22 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of Backend: time 5.91e-07/1.147, allocations: 0 / 1.22 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.005149/1.152, allocations: 2.122 MB / 1.222 GB, free: 10.37 MB / 0.9512 GB Notification: Performance of SimCode: time 0.002518/1.155, allocations: 1.516 MB / 1.223 GB, free: 8.809 MB / 0.9512 GB Notification: Performance of Templates: time 0.02775/1.183, allocations: 17.35 MB / 1.24 GB, free: 7.543 MB / 0.9669 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACSimpleGrid.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches