Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_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_9_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_9_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.001781/0.001781, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00245/0.00245, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.424/1.424, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.423/2.423, allocations: 390.2 MB / 0.6647 GB, free: 272 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001439, allocations: 71.89 kB / 0.8125 GB, free: 14.26 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7827/0.7841, allocations: 140.3 MB / 0.9496 GB, free: 9.367 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N): time 0.03719/0.8214, allocations: 33.34 MB / 0.9821 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.02677/0.8482, allocations: 14.83 MB / 0.9966 GB, free: 1.715 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005504/0.8538, allocations: 151.2 kB / 0.9968 GB, free: 1.566 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.01026/0.8641, allocations: 3.655 MB / 1 GB, free: 13.9 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.009628/0.8737, allocations: 2.882 MB / 1.003 GB, free: 11 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.006978/0.8807, allocations: 2.331 MB / 1.005 GB, free: 8.676 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.01274/0.8935, allocations: 8.814 MB / 1.014 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01436/0.9079, allocations: 9.636 MB / 1.023 GB, free: 6.078 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00859/0.9165, allocations: 3.946 MB / 1.027 GB, free: 2.121 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007646/0.9242, allocations: 4.034 MB / 1.031 GB, free: 14.07 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.002787/0.9271, allocations: 0.7188 MB / 1.032 GB, free: 13.36 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005793/0.9329, allocations: 1.716 MB / 1.034 GB, free: 11.64 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.005022/0.9379, allocations: 2.834 MB / 1.036 GB, free: 8.797 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.008322/0.9463, allocations: 3.392 MB / 1.04 GB, free: 5.391 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.017/0.9633, allocations: 11.11 MB / 1.051 GB, free: 10.25 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 8.456e-06/0.9634, allocations: 0 / 1.051 GB, free: 10.25 MB / 0.8106 GB Notification: Performance of FrontEnd: time 6.192e-06/0.9634, allocations: 4 kB / 1.051 GB, free: 10.24 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 0.0004937/0.9639, allocations: 3.938 kB / 1.051 GB, free: 10.24 MB / 0.8106 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.0171/0.981, allocations: 5.971 MB / 1.056 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.981, allocations: 16.03 kB / 1.056 GB, free: 4.172 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007336/0.9884, allocations: 1.142 MB / 1.058 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00729/0.9957, allocations: 3.321 MB / 1.061 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003686/0.9961, allocations: 378.4 kB / 1.061 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001831/0.998, allocations: 499.9 kB / 1.062 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01841/1.016, allocations: 8.005 MB / 1.069 GB, free: 6.48 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001558/1.017, allocations: 19.78 kB / 1.069 GB, free: 6.461 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006776/1.017, allocations: 216 kB / 1.07 GB, free: 6.25 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001079/1.018, allocations: 441.5 kB / 1.07 GB, free: 5.816 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01148/1.03, allocations: 6.085 MB / 1.076 GB, free: 15.72 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04617/1.076, allocations: 35.15 MB / 1.11 GB, free: 9.383 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002879/1.079, allocations: 2.022 MB / 1.112 GB, free: 7.352 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002424/1.081, allocations: 1.865 MB / 1.114 GB, free: 5.488 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 9.629e-05/1.082, allocations: 18 kB / 1.114 GB, free: 5.473 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.468e-05/1.082, allocations: 64.5 kB / 1.114 GB, free: 5.398 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=171): time 3.697e-06/1.082, allocations: 0 / 1.114 GB, free: 5.398 MB / 0.8731 GB Notification: Performance of matching and sorting (n=276): time 0.1598/1.241, allocations: 38.86 MB / 1.152 GB, free: 14.43 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.545e-05/1.242, allocations: 77.58 kB / 1.152 GB, free: 14.34 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003607/1.245, allocations: 2.286 MB / 1.154 GB, free: 12.04 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0005052/1.246, allocations: 69.7 kB / 1.155 GB, free: 11.96 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.001712/1.247, allocations: 2.284 MB / 1.157 GB, free: 9.652 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.001062/1.248, allocations: 0.9318 MB / 1.158 GB, free: 8.707 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009842/1.249, allocations: 0.51 MB / 1.158 GB, free: 8.188 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001059/1.25, allocations: 305.1 kB / 1.158 GB, free: 7.887 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002766/1.252, allocations: 1.973 MB / 1.16 GB, free: 5.91 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003177/1.256, allocations: 2.602 MB / 1.163 GB, free: 3.066 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006337/1.262, allocations: 4.929 MB / 1.168 GB, free: 13.86 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.427e-05/1.262, allocations: 8 kB / 1.168 GB, free: 13.85 MB / 0.9356 GB Notification: Performance of matching and sorting (n=376) (initialization): time 0.01464/1.277, allocations: 7.761 MB / 1.175 GB, free: 6.02 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.924e-05/1.277, allocations: 12 kB / 1.175 GB, free: 6.008 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.667e-05/1.277, allocations: 16 kB / 1.175 GB, free: 5.992 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009183/1.286, allocations: 3.237 MB / 1.179 GB, free: 2.738 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001758/1.288, allocations: 403.3 kB / 1.179 GB, free: 2.348 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04452/1.332, allocations: 33.91 MB / 1.212 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003234/1.336, allocations: 168 kB / 1.212 GB, free: 15.43 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003177/1.336, allocations: 108 kB / 1.212 GB, free: 15.32 MB / 0.9825 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.003247/1.339, allocations: 1.793 MB / 1.214 GB, free: 13.52 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008333/1.34, allocations: 328.2 kB / 1.214 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01351/1.353, allocations: 7.372 MB / 1.222 GB, free: 5.738 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.887e-05/1.354, allocations: 28 kB / 1.222 GB, free: 5.711 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.225e-05/1.354, allocations: 28 kB / 1.222 GB, free: 5.684 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-05/1.354, allocations: 11.95 kB / 1.222 GB, free: 5.672 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02315/1.377, allocations: 12.92 MB / 1.234 GB, free: 8.582 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.099e-05/1.377, allocations: 15.94 kB / 1.234 GB, free: 8.566 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00128/1.378, allocations: 227.6 kB / 1.234 GB, free: 8.344 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008216/1.386, allocations: 2.876 MB / 1.237 GB, free: 5.449 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004264/1.387, allocations: 56 kB / 1.237 GB, free: 5.395 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6466/2.033, allocations: 32.68 MB / 1.269 GB, free: 271.8 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.099e-05/2.034, allocations: 16.27 kB / 1.269 GB, free: 271.8 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0125/2.046, allocations: 6.881 MB / 1.276 GB, free: 269 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002164/2.048, allocations: 0.775 MB / 1.277 GB, free: 268.7 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006801/2.049, allocations: 56.06 kB / 1.277 GB, free: 268.7 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001916/2.051, allocations: 173.9 kB / 1.277 GB, free: 268.6 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008653/2.052, allocations: 256.2 kB / 1.277 GB, free: 268.6 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001863/2.052, allocations: 79.38 kB / 1.277 GB, free: 268.6 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.002309/2.054, allocations: 1.529 MB / 1.279 GB, free: 268 MB / 1.014 GB Notification: Performance of sort global known variables: time 4.71e-07/2.054, allocations: 0 / 1.279 GB, free: 268 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.005418/2.06, allocations: 1.369 MB / 1.28 GB, free: 267.9 MB / 1.014 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.0004552/2.06, allocations: 180.5 kB / 1.28 GB, free: 267.7 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.01441/2.075, allocations: 8.367 MB / 1.288 GB, free: 264.6 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.652e-05/2.075, allocations: 3.469 kB / 1.288 GB, free: 264.6 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.007169/2.082, allocations: 4.419 MB / 1.293 GB, free: 262.5 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004718/2.087, allocations: 1.117 MB / 1.294 GB, free: 262.1 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01606/2.103, allocations: 10.21 MB / 1.304 GB, free: 257.7 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003686/2.106, allocations: 3.643 MB / 1.307 GB, free: 256.3 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.002338/2.109, allocations: 0.5565 MB / 1.308 GB, free: 256.1 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004445/2.109, allocations: 154.3 kB / 1.308 GB, free: 256.1 MB / 1.014 GB Notification: Performance of SimCode: time 1.353e-06/2.109, allocations: 4 kB / 1.308 GB, free: 256.1 MB / 1.014 GB Notification: Performance of Templates: time 0.1009/2.21, allocations: 77.55 MB / 1.384 GB, free: 180 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches