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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.00132/0.00132, allocations: 112.6 kB / 16.37 MB, free: 6 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.001342/0.001342, allocations: 196 kB / 17.31 MB, free: 5.613 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.4/1.4, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.437/2.437, allocations: 437.1 MB / 0.7112 GB, free: 4.422 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001378, allocations: 59.56 kB / 0.8707 GB, free: 1.488 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3049/0.3063, allocations: 151.7 MB / 1.019 GB, free: 9.883 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N): time 0.0378/0.3442, allocations: 34.83 MB / 1.053 GB, free: 6.93 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01955/0.3638, allocations: 11.5 MB / 1.064 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00382/0.3676, allocations: 163.2 kB / 1.064 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.01102/0.3788, allocations: 4.254 MB / 1.068 GB, free: 6.973 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.006748/0.3855, allocations: 1.99 MB / 1.07 GB, free: 4.973 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.007328/0.3929, allocations: 2.397 MB / 1.073 GB, free: 2.574 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.6427/1.036, allocations: 8.453 MB / 1.081 GB, free: 21.04 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0227/1.058, allocations: 11.13 MB / 1.092 GB, free: 19.04 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01006/1.069, allocations: 3.746 MB / 1.095 GB, free: 18.81 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01052/1.079, allocations: 4.187 MB / 1.1 GB, free: 18.35 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.004391/1.084, allocations: 0.7805 MB / 1.1 GB, free: 18.35 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008043/1.092, allocations: 2.029 MB / 1.102 GB, free: 18.34 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.007271/1.099, allocations: 3.055 MB / 1.105 GB, free: 18.14 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.01322/1.112, allocations: 3.399 MB / 1.109 GB, free: 16.6 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0228/1.135, allocations: 11.98 MB / 1.12 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 8.385e-06/1.135, allocations: 4.844 kB / 1.12 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.013e-06/1.135, allocations: 0 / 1.12 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0004415/1.136, allocations: 0 / 1.12 GB, free: 13.15 MB / 0.8419 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.02114/1.157, allocations: 5.807 MB / 1.126 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/1.157, allocations: 10.64 kB / 1.126 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009027/1.166, allocations: 1.063 MB / 1.127 GB, free: 9.707 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01151/1.177, allocations: 3.45 MB / 1.13 GB, free: 8.133 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006897/1.178, allocations: 422.3 kB / 1.131 GB, free: 7.953 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003372/1.181, allocations: 0.5323 MB / 1.131 GB, free: 7.781 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02642/1.208, allocations: 9.078 MB / 1.14 GB, free: 2.273 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004584/1.208, allocations: 35.56 kB / 1.14 GB, free: 2.262 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002573/1.211, allocations: 235.1 kB / 1.14 GB, free: 2.094 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000408/1.211, allocations: 349.9 kB / 1.141 GB, free: 2.02 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01851/1.23, allocations: 6.832 MB / 1.147 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07356/1.303, allocations: 39.78 MB / 1.186 GB, free: 4.156 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004301/1.308, allocations: 3.111 MB / 1.189 GB, free: 0.9023 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002901/1.311, allocations: 1.965 MB / 1.191 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001773/1.311, allocations: 18 kB / 1.191 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.118e-05/1.311, allocations: 48.56 kB / 1.191 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=179): time 5.189e-06/1.311, allocations: 4 kB / 1.191 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of matching and sorting (n=182): time 0.02716/1.338, allocations: 9.977 MB / 1.201 GB, free: 4.863 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.687e-05/1.338, allocations: 73.41 kB / 1.201 GB, free: 4.781 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002887/1.341, allocations: 1.522 MB / 1.203 GB, free: 3.215 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0002292/1.341, allocations: 58.73 kB / 1.203 GB, free: 3.152 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.001978/1.343, allocations: 2.253 MB / 1.205 GB, free: 0.8711 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.001154/1.345, allocations: 0.6362 MB / 1.205 GB, free: 248 kB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001183/1.346, allocations: 403.9 kB / 1.206 GB, free: 15.84 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001548/1.346, allocations: 309 kB / 1.206 GB, free: 15.54 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002116/1.348, allocations: 1.183 MB / 1.207 GB, free: 14.35 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002393/1.351, allocations: 1.878 MB / 1.209 GB, free: 12.16 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004054/1.355, allocations: 3.37 MB / 1.212 GB, free: 8.57 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.445e-05/1.355, allocations: 8 kB / 1.212 GB, free: 8.562 MB / 0.92 GB Notification: Performance of matching and sorting (n=285) (initialization): time 0.01016/1.365, allocations: 4.586 MB / 1.217 GB, free: 4.141 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 4.797e-05/1.365, allocations: 16 kB / 1.217 GB, free: 4.125 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.995e-05/1.365, allocations: 20 kB / 1.217 GB, free: 4.105 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005622/1.371, allocations: 1.59 MB / 1.218 GB, free: 2.512 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002116/1.373, allocations: 346.5 kB / 1.219 GB, free: 2.195 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03405/1.407, allocations: 18.59 MB / 1.237 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003688/1.411, allocations: 119.9 kB / 1.237 GB, free: 14.99 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000497/1.411, allocations: 92 kB / 1.237 GB, free: 14.9 MB / 0.9512 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.006998/1.418, allocations: 1.898 MB / 1.239 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009433/1.419, allocations: 229.3 kB / 1.239 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01025/1.429, allocations: 4.085 MB / 1.243 GB, free: 8.734 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.848e-05/1.429, allocations: 20 kB / 1.243 GB, free: 8.715 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.178e-05/1.429, allocations: 20 kB / 1.243 GB, free: 8.695 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-05/1.43, allocations: 7.969 kB / 1.243 GB, free: 8.688 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02479/1.454, allocations: 9.466 MB / 1.253 GB, free: 15.1 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.85e-05/1.454, allocations: 4 kB / 1.253 GB, free: 15.09 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001241/1.456, allocations: 181.8 kB / 1.253 GB, free: 14.93 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005079/1.461, allocations: 1.353 MB / 1.254 GB, free: 13.56 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003195/1.461, allocations: 32 kB / 1.254 GB, free: 13.53 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0318/1.493, allocations: 17.36 MB / 1.271 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.117e-06/1.493, allocations: 7.281 kB / 1.271 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01054/1.504, allocations: 4.071 MB / 1.275 GB, free: 7.543 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00236/1.506, allocations: 0.5218 MB / 1.276 GB, free: 7 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005438/1.507, allocations: 40.11 kB / 1.276 GB, free: 6.961 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001533/1.508, allocations: 87.91 kB / 1.276 GB, free: 6.875 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007352/1.509, allocations: 164.2 kB / 1.276 GB, free: 6.723 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001794/1.509, allocations: 48 kB / 1.276 GB, free: 6.676 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.002224/1.511, allocations: 1.008 MB / 1.277 GB, free: 5.648 MB / 0.9825 GB Notification: Performance of sort global known variables: time 4.1e-07/1.511, allocations: 0 / 1.277 GB, free: 5.648 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.006293/1.518, allocations: 0.9883 MB / 1.278 GB, free: 4.66 MB / 0.9825 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.0005182/1.518, allocations: 142.4 kB / 1.278 GB, free: 4.516 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.007136/1.525, allocations: 4.316 MB / 1.282 GB, free: 232 kB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 8.345e-06/1.525, allocations: 0 / 1.282 GB, free: 232 kB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.004462/1.53, allocations: 2.657 MB / 1.285 GB, free: 13.55 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003643/1.533, allocations: 0.7812 MB / 1.285 GB, free: 12.8 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01734/1.551, allocations: 8.586 MB / 1.294 GB, free: 4.16 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006289/1.557, allocations: 3.577 MB / 1.297 GB, free: 0.5508 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001816/1.559, allocations: 459.9 kB / 1.298 GB, free: 100 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003147/1.559, allocations: 119.5 kB / 1.298 GB, free: 15.98 MB / 1.014 GB Notification: Performance of SimCode: time 2.946e-06/1.559, allocations: 4 kB / 1.298 GB, free: 15.97 MB / 1.014 GB Notification: Performance of Templates: time 0.08061/1.64, allocations: 43.9 MB / 1.341 GB, free: 4.68 MB / 1.045 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 -s cvode -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