Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.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_L_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001655/0.001655, allocations: 108.3 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.00194/0.00194, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.396/1.396, allocations: 222.9 MB / 241.1 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.481/2.481, allocations: 437.1 MB / 0.7112 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 56.14 kB / 1.019 GB, free: 9.395 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8398/0.8413, allocations: 151.6 MB / 1.167 GB, free: 3.836 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N): time 0.03819/0.8795, allocations: 34.83 MB / 1.201 GB, free: 0.8828 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0188/0.8984, allocations: 11.51 MB / 1.213 GB, free: 5.344 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003819/0.9023, allocations: 163.2 kB / 1.213 GB, free: 5.184 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.01074/0.9131, allocations: 4.245 MB / 1.217 GB, free: 0.9297 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.006977/0.9201, allocations: 2.096 MB / 1.219 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.00713/0.9272, allocations: 2.407 MB / 1.221 GB, free: 12.42 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.01099/0.9383, allocations: 8.475 MB / 1.23 GB, free: 3.918 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01619/0.9545, allocations: 11.13 MB / 1.24 GB, free: 8.672 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007536/0.9621, allocations: 3.802 MB / 1.244 GB, free: 4.859 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007992/0.9701, allocations: 4.183 MB / 1.248 GB, free: 0.6641 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.003017/0.9732, allocations: 0.7851 MB / 1.249 GB, free: 15.88 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006541/0.9798, allocations: 2.028 MB / 1.251 GB, free: 13.85 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.005878/0.9857, allocations: 3.06 MB / 1.254 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.00849/0.9942, allocations: 3.396 MB / 1.257 GB, free: 7.371 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.01666/1.011, allocations: 11.98 MB / 1.269 GB, free: 11.36 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 9.608e-06/1.011, allocations: 0 / 1.269 GB, free: 11.36 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.114e-06/1.011, allocations: 4 kB / 1.269 GB, free: 11.36 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0003986/1.011, allocations: 0 / 1.269 GB, free: 11.36 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.01677/1.028, allocations: 5.799 MB / 1.275 GB, free: 5.484 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/1.028, allocations: 8.922 kB / 1.275 GB, free: 5.477 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006949/1.035, allocations: 1.06 MB / 1.276 GB, free: 4.41 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009687/1.045, allocations: 3.457 MB / 1.279 GB, free: 0.8945 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005851/1.046, allocations: 415.4 kB / 1.279 GB, free: 500 kB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002838/1.048, allocations: 0.5434 MB / 1.28 GB, free: 15.94 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02375/1.072, allocations: 9.079 MB / 1.289 GB, free: 6.543 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003427/1.073, allocations: 27.67 kB / 1.289 GB, free: 6.516 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002293/1.075, allocations: 240 kB / 1.289 GB, free: 6.281 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005022/1.075, allocations: 350.8 kB / 1.289 GB, free: 5.938 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01606/1.091, allocations: 6.822 MB / 1.296 GB, free: 15.1 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05602/1.148, allocations: 39.79 MB / 1.335 GB, free: 3.598 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004619/1.152, allocations: 3.106 MB / 1.338 GB, free: 364 kB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00301/1.155, allocations: 1.985 MB / 1.34 GB, free: 14.36 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001381/1.155, allocations: 22 kB / 1.34 GB, free: 14.34 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.189e-05/1.155, allocations: 52.5 kB / 1.34 GB, free: 14.28 MB / 1.076 GB Notification: Performance of pre-optimization done (n=179): time 4.117e-06/1.155, allocations: 0 / 1.34 GB, free: 14.28 MB / 1.076 GB Notification: Performance of matching and sorting (n=182): time 0.0254/1.181, allocations: 9.977 MB / 1.35 GB, free: 4.207 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001582/1.181, allocations: 73.41 kB / 1.35 GB, free: 4.121 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002774/1.184, allocations: 1.522 MB / 1.351 GB, free: 2.555 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 0.0002406/1.184, allocations: 57.7 kB / 1.351 GB, free: 2.492 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.001682/1.186, allocations: 2.265 MB / 1.354 GB, free: 200 kB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006772/1.186, allocations: 0.6277 MB / 1.354 GB, free: 15.56 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006979/1.187, allocations: 403.9 kB / 1.355 GB, free: 15.16 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0001998/1.187, allocations: 305.1 kB / 1.355 GB, free: 14.86 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001774/1.189, allocations: 1.179 MB / 1.356 GB, free: 13.67 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002313/1.192, allocations: 1.881 MB / 1.358 GB, free: 11.47 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004409/1.196, allocations: 3.375 MB / 1.361 GB, free: 7.789 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.47e-05/1.196, allocations: 8 kB / 1.361 GB, free: 7.781 MB / 1.092 GB Notification: Performance of matching and sorting (n=285) (initialization): time 0.008446/1.204, allocations: 4.577 MB / 1.366 GB, free: 3.18 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 4.39e-05/1.205, allocations: 16 kB / 1.366 GB, free: 3.164 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.676e-05/1.205, allocations: 20 kB / 1.366 GB, free: 3.145 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003846/1.208, allocations: 1.593 MB / 1.367 GB, free: 1.543 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001262/1.21, allocations: 347.4 kB / 1.368 GB, free: 1.203 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0241/1.234, allocations: 18.58 MB / 1.386 GB, free: 14.07 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001707/1.236, allocations: 119.9 kB / 1.386 GB, free: 13.95 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00033/1.236, allocations: 92 kB / 1.386 GB, free: 13.86 MB / 1.123 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (177): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(12,26,30.6%), (6,24,66.7%), (6,16,66.7%), (6,16,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003237/1.239, allocations: 1.89 MB / 1.388 GB, free: 11.96 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006213/1.24, allocations: 225.4 kB / 1.388 GB, free: 11.74 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007631/1.247, allocations: 4.105 MB / 1.392 GB, free: 7.602 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.267e-05/1.248, allocations: 20 kB / 1.392 GB, free: 7.582 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-05/1.248, allocations: 16 kB / 1.392 GB, free: 7.566 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.235e-05/1.248, allocations: 11.95 kB / 1.392 GB, free: 7.555 MB / 1.123 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01756/1.265, allocations: 9.461 MB / 1.401 GB, free: 13.84 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.194e-05/1.265, allocations: 4 kB / 1.401 GB, free: 13.84 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008296/1.266, allocations: 179.7 kB / 1.401 GB, free: 13.66 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003485/1.27, allocations: 1.358 MB / 1.403 GB, free: 12.3 MB / 1.139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002114/1.27, allocations: 40.25 kB / 1.403 GB, free: 12.26 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0222/1.292, allocations: 17.35 MB / 1.42 GB, free: 10.34 MB / 1.154 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.225e-06/1.292, allocations: 8.062 kB / 1.42 GB, free: 10.33 MB / 1.154 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007597/1.3, allocations: 4.074 MB / 1.424 GB, free: 6.164 MB / 1.154 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001603/1.301, allocations: 0.5255 MB / 1.424 GB, free: 5.617 MB / 1.154 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004909/1.302, allocations: 36 kB / 1.424 GB, free: 5.582 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001111/1.303, allocations: 91.89 kB / 1.424 GB, free: 5.492 MB / 1.154 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005205/1.303, allocations: 157.7 kB / 1.424 GB, free: 5.336 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001202/1.304, allocations: 48 kB / 1.425 GB, free: 5.289 MB / 1.154 GB Notification: Performance of sorting global known variables: time 0.001797/1.305, allocations: 1.005 MB / 1.426 GB, free: 4.258 MB / 1.154 GB Notification: Performance of sort global known variables: time 1.5e-07/1.305, allocations: 0 / 1.426 GB, free: 4.258 MB / 1.154 GB Notification: Performance of remove unused functions: time 0.003401/1.309, allocations: 0.9883 MB / 1.426 GB, free: 3.27 MB / 1.154 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 simulation (85): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(6,16,66.7%), (6,16,66.7%), (6,24,66.7%), (6,24,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002966/1.309, allocations: 143.1 kB / 1.427 GB, free: 3.121 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.007314/1.316, allocations: 4.315 MB / 1.431 GB, free: 14.76 MB / 1.17 GB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/1.316, allocations: 0 / 1.431 GB, free: 14.76 MB / 1.17 GB Notification: Performance of simCode: created simulation system equations: time 0.004371/1.321, allocations: 2.655 MB / 1.433 GB, free: 12.06 MB / 1.17 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003637/1.324, allocations: 0.7899 MB / 1.434 GB, free: 11.3 MB / 1.17 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0157/1.34, allocations: 9.365 MB / 1.443 GB, free: 1.852 MB / 1.17 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004148/1.344, allocations: 3.662 MB / 1.447 GB, free: 14.16 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004954/1.345, allocations: 127.4 kB / 1.447 GB, free: 14.03 MB / 1.186 GB Notification: Performance of SimCode: time 9.82e-07/1.345, allocations: 4 kB / 1.447 GB, free: 14.03 MB / 1.186 GB Notification: Performance of Templates: time 0.7453/2.09, allocations: 159.7 MB / 1.603 GB, free: 331.7 MB / 1.279 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches