Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008153/0.0008147, allocations: 92 kB / 16.02 MB, free: 80 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.00106/0.00106, allocations: 179.3 kB / 16.92 MB, free: 6.652 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.379/1.379, allocations: 223.3 MB / 241 MB, free: 5.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.406/2.406, allocations: 390.9 MB / 0.667 GB, free: 2.312 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004145/0.0004146, allocations: 12 kB / 0.8166 GB, free: 13.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6909/0.6913, allocations: 142.4 MB / 0.9557 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.03558/0.7269, allocations: 33.98 MB / 0.9889 GB, free: 13.24 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.0183/0.7453, allocations: 9.836 MB / 0.9985 GB, free: 3.379 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004881/0.7502, allocations: 123.3 kB / 0.9986 GB, free: 3.258 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.003241/0.7535, allocations: 0.7016 MB / 0.9993 GB, free: 2.551 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.006983/0.7605, allocations: 1.913 MB / 1.001 GB, free: 0.6289 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.006512/0.767, allocations: 1.608 MB / 1.003 GB, free: 15.02 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.014/0.781, allocations: 11.2 MB / 1.014 GB, free: 3.801 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.022/0.8031, allocations: 12.16 MB / 1.026 GB, free: 7.535 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005711/0.8088, allocations: 2.408 MB / 1.028 GB, free: 5.117 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006505/0.8154, allocations: 3.219 MB / 1.031 GB, free: 1.887 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.001808/0.8172, allocations: 280 kB / 1.031 GB, free: 1.613 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004035/0.8213, allocations: 1.263 MB / 1.033 GB, free: 356 kB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.003865/0.8252, allocations: 2.108 MB / 1.035 GB, free: 14.23 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.006051/0.8313, allocations: 2.524 MB / 1.037 GB, free: 11.69 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.01097/0.8422, allocations: 8.591 MB / 1.045 GB, free: 3.078 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.8423, allocations: 0 / 1.045 GB, free: 3.078 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.424e-06/0.8423, allocations: 8 kB / 1.045 GB, free: 3.07 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.0004053/0.8427, allocations: 0 / 1.045 GB, free: 3.07 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1286 * Number of variables: 1286 Notification: Performance of Generate backend data structure: time 0.01272/0.8554, allocations: 4.365 MB / 1.05 GB, free: 14.64 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.8555, allocations: 12.03 kB / 1.05 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00603/0.8616, allocations: 0.9549 MB / 1.051 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007192/0.8688, allocations: 2.995 MB / 1.054 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004242/0.8692, allocations: 353.9 kB / 1.054 GB, free: 10.27 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00186/0.8711, allocations: 472.2 kB / 1.054 GB, free: 9.805 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02168/0.8928, allocations: 7.906 MB / 1.062 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001475/0.893, allocations: 27.8 kB / 1.062 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008238/0.8938, allocations: 208 kB / 1.062 GB, free: 1.305 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005586/0.8944, allocations: 361.1 kB / 1.063 GB, free: 0.9492 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01325/0.9077, allocations: 5.937 MB / 1.068 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04436/0.9521, allocations: 36.27 MB / 1.104 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003936/0.9561, allocations: 2.142 MB / 1.106 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002015/0.9581, allocations: 1.486 MB / 1.107 GB, free: 15.85 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 8.339e-05/0.9582, allocations: 17.31 kB / 1.107 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.521e-05/0.9583, allocations: 55.81 kB / 1.108 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=157): time 2.995e-06/0.9583, allocations: 0 / 1.108 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of matching and sorting (n=160): time 0.01428/0.9726, allocations: 7.568 MB / 1.115 GB, free: 7.938 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.493e-05/0.9727, allocations: 68.72 kB / 1.115 GB, free: 7.855 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00261/0.9753, allocations: 1.864 MB / 1.117 GB, free: 5.965 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0002362/0.9756, allocations: 53.7 kB / 1.117 GB, free: 5.906 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.001451/0.977, allocations: 2.127 MB / 1.119 GB, free: 3.754 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006115/0.9777, allocations: 0.5624 MB / 1.119 GB, free: 3.184 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000243/0.9779, allocations: 170.1 kB / 1.12 GB, free: 3.012 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001152/0.978, allocations: 305.1 kB / 1.12 GB, free: 2.711 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001585/0.9796, allocations: 1.062 MB / 1.121 GB, free: 1.645 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002095/0.9817, allocations: 1.76 MB / 1.123 GB, free: 15.57 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003834/0.9856, allocations: 3.052 MB / 1.126 GB, free: 12.2 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.354e-05/0.9856, allocations: 8 kB / 1.126 GB, free: 12.2 MB / 0.8887 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.006632/0.9922, allocations: 3.92 MB / 1.129 GB, free: 8.227 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 5.185e-05/0.9923, allocations: 16 kB / 1.13 GB, free: 8.211 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.952e-05/0.9924, allocations: 20.88 kB / 1.13 GB, free: 8.191 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002513/0.9949, allocations: 0.935 MB / 1.13 GB, free: 7.219 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001593/0.9965, allocations: 431.2 kB / 1.131 GB, free: 6.797 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01974/1.016, allocations: 21.08 MB / 1.151 GB, free: 120 kB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002155/1.018, allocations: 123.9 kB / 1.152 GB, free: 15.99 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001967/1.019, allocations: 95.94 kB / 1.152 GB, free: 15.9 MB / 0.92 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 (227): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,6,100.0%), (2,6,100.0%), (2,6,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,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.003059/1.022, allocations: 1.641 MB / 1.153 GB, free: 14.25 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005391/1.022, allocations: 253.1 kB / 1.153 GB, free: 14 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005653/1.028, allocations: 3.271 MB / 1.157 GB, free: 10.68 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-05/1.028, allocations: 19.98 kB / 1.157 GB, free: 10.66 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.764e-05/1.028, allocations: 8 kB / 1.157 GB, free: 10.65 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.589e-05/1.028, allocations: 15.84 kB / 1.157 GB, free: 10.63 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0123/1.04, allocations: 7.541 MB / 1.164 GB, free: 2.934 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.206e-05/1.04, allocations: 4.562 kB / 1.164 GB, free: 2.93 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009378/1.041, allocations: 219.6 kB / 1.164 GB, free: 2.715 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002423/1.044, allocations: 0.8964 MB / 1.165 GB, free: 1.781 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001706/1.044, allocations: 32 kB / 1.165 GB, free: 1.75 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01979/1.064, allocations: 21.04 MB / 1.186 GB, free: 11.11 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/1.064, allocations: 4 kB / 1.186 GB, free: 11.1 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006233/1.07, allocations: 3.387 MB / 1.189 GB, free: 7.602 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0013/1.071, allocations: 0.5369 MB / 1.19 GB, free: 7.043 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003932/1.072, allocations: 35.98 kB / 1.19 GB, free: 7.008 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00117/1.073, allocations: 91.89 kB / 1.19 GB, free: 6.918 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004018/1.073, allocations: 145 kB / 1.19 GB, free: 6.777 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001064/1.073, allocations: 44 kB / 1.19 GB, free: 6.734 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001769/1.075, allocations: 1.221 MB / 1.191 GB, free: 5.5 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.31e-07/1.075, allocations: 0 / 1.191 GB, free: 5.5 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.003041/1.078, allocations: 0.9023 MB / 1.192 GB, free: 4.598 MB / 0.9512 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 (109): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%), (2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003265/1.079, allocations: 163 kB / 1.192 GB, free: 4.426 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.006857/1.086, allocations: 4.424 MB / 1.196 GB, free: 15.85 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.306e-05/1.086, allocations: 4.312 kB / 1.196 GB, free: 15.85 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.004573/1.09, allocations: 3.003 MB / 1.199 GB, free: 12.69 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00548/1.096, allocations: 0.7672 MB / 1.2 GB, free: 11.93 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01592/1.112, allocations: 10.34 MB / 1.21 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004022/1.116, allocations: 3.279 MB / 1.213 GB, free: 14.18 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007563/1.116, allocations: 159.4 kB / 1.214 GB, free: 14.02 MB / 0.9825 GB Notification: Performance of SimCode: time 1.042e-06/1.117, allocations: 0 / 1.214 GB, free: 14.02 MB / 0.9825 GB Notification: Performance of Templates: time 0.781/1.898, allocations: 339.1 MB / 1.545 GB, free: 6.324 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches