Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_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 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.ThreePhasesUnbalanced.Lines.Examples.ACLine_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.load1.i.1.|R1.load1.i.2.|R2.load1.i.1.|R2.load1.i.2.|R3.load1.i.1.|R3.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.load1.i.1.|R1.load1.i.2.|R2.load1.i.1.|R2.load1.i.2.|R3.load1.i.1.|R3.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007652/0.007652, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.001829/0.001829, allocations: 190.6 kB / 16.67 MB, free: 5.93 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.372/1.372, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.621/2.621, allocations: 461.9 MB / 0.7348 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 64.12 kB / 1.054 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.949/0.9503, allocations: 157.4 MB / 1.208 GB, free: 13.6 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N): time 0.03634/0.9867, allocations: 33.35 MB / 1.24 GB, free: 12.14 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.02683/1.014, allocations: 14.82 MB / 1.255 GB, free: 13.28 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005034/1.019, allocations: 151.2 kB / 1.255 GB, free: 13.13 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.01074/1.03, allocations: 3.665 MB / 1.258 GB, free: 9.457 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.01238/1.042, allocations: 2.986 MB / 1.261 GB, free: 6.457 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0101/1.052, allocations: 2.323 MB / 1.264 GB, free: 4.133 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.01495/1.067, allocations: 8.836 MB / 1.272 GB, free: 11.27 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01616/1.083, allocations: 9.566 MB / 1.282 GB, free: 1.586 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009202/1.093, allocations: 4.024 MB / 1.286 GB, free: 13.55 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008243/1.101, allocations: 4.03 MB / 1.29 GB, free: 9.508 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.002605/1.103, allocations: 0.7187 MB / 1.29 GB, free: 8.789 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005199/1.109, allocations: 1.724 MB / 1.292 GB, free: 7.062 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.005263/1.114, allocations: 2.826 MB / 1.295 GB, free: 4.23 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.008467/1.122, allocations: 3.396 MB / 1.298 GB, free: 0.8203 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0166/1.139, allocations: 11.19 MB / 1.309 GB, free: 5.602 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 8.446e-06/1.139, allocations: 4 kB / 1.309 GB, free: 5.598 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.385e-06/1.139, allocations: 0 / 1.309 GB, free: 5.598 MB / 1.029 GB Notification: Performance of Transformations before backend: time 0.0004307/1.14, allocations: 0 / 1.309 GB, free: 5.598 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1338 * Number of variables: 1338 Notification: Performance of Generate backend data structure: time 0.01853/1.158, allocations: 5.979 MB / 1.315 GB, free: 15.54 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/1.158, allocations: 8.031 kB / 1.315 GB, free: 15.53 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007767/1.166, allocations: 1.138 MB / 1.316 GB, free: 14.39 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007475/1.173, allocations: 3.524 MB / 1.319 GB, free: 10.79 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002669/1.174, allocations: 370.4 kB / 1.32 GB, free: 10.42 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001227/1.175, allocations: 0.4922 MB / 1.32 GB, free: 9.93 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01337/1.188, allocations: 7.997 MB / 1.328 GB, free: 1.652 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001487/1.189, allocations: 23.77 kB / 1.328 GB, free: 1.629 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005282/1.189, allocations: 216 kB / 1.328 GB, free: 1.418 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009159/1.19, allocations: 437.6 kB / 1.329 GB, free: 0.9883 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01189/1.202, allocations: 6.089 MB / 1.335 GB, free: 10.88 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04559/1.247, allocations: 34.89 MB / 1.369 GB, free: 4.82 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002845/1.25, allocations: 2.032 MB / 1.371 GB, free: 2.785 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002476/1.253, allocations: 1.869 MB / 1.372 GB, free: 0.9141 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001414/1.253, allocations: 22 kB / 1.372 GB, free: 0.8945 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.104e-05/1.253, allocations: 60.5 kB / 1.372 GB, free: 0.8242 MB / 1.092 GB Notification: Performance of pre-optimization done (n=171): time 3.386e-06/1.253, allocations: 0 / 1.372 GB, free: 0.8242 MB / 1.092 GB Notification: Performance of matching and sorting (n=276): time 0.1457/1.399, allocations: 38.89 MB / 1.41 GB, free: 9.832 MB / 1.139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.08e-05/1.399, allocations: 81.58 kB / 1.411 GB, free: 9.738 MB / 1.139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003773/1.403, allocations: 2.282 MB / 1.413 GB, free: 7.441 MB / 1.139 GB Notification: Performance of collectPreVariables (initialization): time 0.0003601/1.403, allocations: 69.7 kB / 1.413 GB, free: 7.367 MB / 1.139 GB Notification: Performance of collectInitialEqns (initialization): time 0.001516/1.405, allocations: 2.28 MB / 1.415 GB, free: 5.059 MB / 1.139 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009307/1.406, allocations: 0.9279 MB / 1.416 GB, free: 4.117 MB / 1.139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001109/1.407, allocations: 0.51 MB / 1.416 GB, free: 3.598 MB / 1.139 GB Notification: Performance of setup shared object (initialization): time 8.814e-05/1.407, allocations: 309 kB / 1.417 GB, free: 3.293 MB / 1.139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002811/1.41, allocations: 1.973 MB / 1.419 GB, free: 1.316 MB / 1.139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00329/1.413, allocations: 2.602 MB / 1.421 GB, free: 14.47 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006408/1.419, allocations: 4.933 MB / 1.426 GB, free: 9.266 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.678e-05/1.419, allocations: 4 kB / 1.426 GB, free: 9.262 MB / 1.154 GB Notification: Performance of matching and sorting (n=376) (initialization): time 0.01425/1.434, allocations: 7.757 MB / 1.434 GB, free: 1.434 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 4.556e-05/1.434, allocations: 12.97 kB / 1.434 GB, free: 1.422 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.156e-05/1.434, allocations: 20 kB / 1.434 GB, free: 1.402 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009493/1.443, allocations: 3.214 MB / 1.437 GB, free: 14.17 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001697/1.445, allocations: 403.2 kB / 1.437 GB, free: 13.78 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04607/1.491, allocations: 33.87 MB / 1.47 GB, free: 11.05 MB / 1.201 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003223/1.494, allocations: 167.8 kB / 1.47 GB, free: 10.89 MB / 1.201 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002815/1.495, allocations: 108 kB / 1.471 GB, free: 10.78 MB / 1.201 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 (202): * Single equations (assignments): 196 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(10,28,71.0%), (10,28,65.0%), (6,24,77.8%), (6,24,77.8%), (5,17,84.0%), (5,17,84.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003524/1.498, allocations: 1.801 MB / 1.472 GB, free: 8.973 MB / 1.201 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007217/1.499, allocations: 328.1 kB / 1.473 GB, free: 8.648 MB / 1.201 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01362/1.512, allocations: 7.364 MB / 1.48 GB, free: 1.203 MB / 1.201 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.306e-05/1.513, allocations: 24 kB / 1.48 GB, free: 1.18 MB / 1.201 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.067e-05/1.513, allocations: 32 kB / 1.48 GB, free: 1.148 MB / 1.201 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.29e-05/1.513, allocations: 11.95 kB / 1.48 GB, free: 1.137 MB / 1.201 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02284/1.535, allocations: 12.92 MB / 1.492 GB, free: 4.035 MB / 1.217 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.722e-05/1.536, allocations: 8.188 kB / 1.492 GB, free: 4.027 MB / 1.217 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008777/1.536, allocations: 235.6 kB / 1.493 GB, free: 3.797 MB / 1.217 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007979/1.544, allocations: 2.849 MB / 1.495 GB, free: 0.9297 MB / 1.217 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003344/1.545, allocations: 52 kB / 1.496 GB, free: 0.8789 MB / 1.217 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04349/1.588, allocations: 32.67 MB / 1.527 GB, free: 15.36 MB / 1.264 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.464e-06/1.588, allocations: 8 kB / 1.527 GB, free: 15.35 MB / 1.264 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01239/1.601, allocations: 6.89 MB / 1.534 GB, free: 8.242 MB / 1.264 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001909/1.603, allocations: 0.7744 MB / 1.535 GB, free: 7.445 MB / 1.264 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004919/1.603, allocations: 63.88 kB / 1.535 GB, free: 7.383 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001551/1.605, allocations: 163.8 kB / 1.535 GB, free: 7.223 MB / 1.264 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008259/1.606, allocations: 261.4 kB / 1.535 GB, free: 6.969 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001834/1.606, allocations: 72 kB / 1.535 GB, free: 6.898 MB / 1.264 GB Notification: Performance of sorting global known variables: time 0.002173/1.608, allocations: 1.525 MB / 1.537 GB, free: 5.371 MB / 1.264 GB Notification: Performance of sort global known variables: time 1.5e-07/1.608, allocations: 0 / 1.537 GB, free: 5.371 MB / 1.264 GB Notification: Performance of remove unused functions: time 0.004426/1.612, allocations: 1.367 MB / 1.538 GB, free: 4.004 MB / 1.264 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (105): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(5,17,84.0%), (6,24,77.8%), (10,28,65.0%), (5,17,92.0%), (6,24,77.8%), (10,28,65.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003848/1.613, allocations: 183 kB / 1.538 GB, free: 3.816 MB / 1.264 GB Notification: Performance of simCode: created initialization part: time 0.01163/1.624, allocations: 6.924 MB / 1.545 GB, free: 12.79 MB / 1.279 GB Notification: Performance of simCode: created event and clocks part: time 1.35e-05/1.624, allocations: 7.938 kB / 1.545 GB, free: 12.79 MB / 1.279 GB Notification: Performance of simCode: created simulation system equations: time 0.007496/1.632, allocations: 4.398 MB / 1.55 GB, free: 8.312 MB / 1.279 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004464/1.636, allocations: 1.113 MB / 1.551 GB, free: 7.234 MB / 1.279 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6546/2.291, allocations: 10.08 MB / 1.56 GB, free: 318.8 MB / 1.279 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007394/2.298, allocations: 3.643 MB / 1.564 GB, free: 318 MB / 1.279 GB Notification: Performance of simCode: alias equations: time 0.002551/2.301, allocations: 0.5538 MB / 1.565 GB, free: 318 MB / 1.279 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004266/2.302, allocations: 158 kB / 1.565 GB, free: 318 MB / 1.279 GB Notification: Performance of SimCode: time 9.22e-07/2.302, allocations: 0 / 1.565 GB, free: 318 MB / 1.279 GB Notification: Performance of Templates: time 0.1019/2.403, allocations: 76.12 MB / 1.639 GB, free: 267.7 MB / 1.279 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches