Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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_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_9_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_9_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.001264/0.001264, allocations: 109.2 kB / 16.37 MB, free: 6.477 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.001275/0.001275, allocations: 193.1 kB / 17.31 MB, free: 5.824 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.39/1.39, allocations: 222.9 MB / 241 MB, free: 15.21 MB / 206.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.341/2.341, allocations: 390.3 MB / 0.6655 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 65.33 kB / 0.814 GB, free: 32.71 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3041/0.3054, allocations: 140.4 MB / 0.9511 GB, free: 8.051 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N): time 0.04004/0.3455, allocations: 34.84 MB / 0.9852 GB, free: 5.102 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.02058/0.3661, allocations: 11.5 MB / 0.9964 GB, free: 9.566 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00456/0.3707, allocations: 159.2 kB / 0.9965 GB, free: 9.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0122/0.383, allocations: 4.251 MB / 1.001 GB, free: 5.148 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.007443/0.3905, allocations: 1.994 MB / 1.003 GB, free: 3.145 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.007246/0.3978, allocations: 2.404 MB / 1.005 GB, free: 0.7422 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.01229/0.4101, allocations: 8.456 MB / 1.013 GB, free: 8.266 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01675/0.4269, allocations: 11.13 MB / 1.024 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007309/0.4343, allocations: 3.743 MB / 1.028 GB, free: 9.254 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007566/0.4419, allocations: 4.187 MB / 1.032 GB, free: 5.055 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.002534/0.4444, allocations: 0.7773 MB / 1.033 GB, free: 4.277 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005215/0.4497, allocations: 2.024 MB / 1.035 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.004948/0.4547, allocations: 3.064 MB / 1.038 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.008513/0.4632, allocations: 3.4 MB / 1.041 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.01759/0.4808, allocations: 11.98 MB / 1.053 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/0.4809, allocations: 4 kB / 1.053 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.876e-06/0.4809, allocations: 0 / 1.053 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0004179/0.4813, allocations: 0 / 1.053 GB, free: 15.75 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.01598/0.4973, allocations: 5.795 MB / 1.058 GB, free: 9.879 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 6.808e-05/0.4974, allocations: 12.03 kB / 1.058 GB, free: 9.867 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007115/0.5045, allocations: 1.063 MB / 1.059 GB, free: 8.797 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009041/0.5136, allocations: 3.438 MB / 1.063 GB, free: 5.301 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004911/0.5141, allocations: 419.5 kB / 1.063 GB, free: 4.891 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002211/0.5163, allocations: 0.5431 MB / 1.064 GB, free: 4.348 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02221/0.5386, allocations: 9.075 MB / 1.072 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002864/0.5389, allocations: 31.78 kB / 1.073 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001558/0.5405, allocations: 236 kB / 1.073 GB, free: 10.69 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004028/0.5409, allocations: 354.7 kB / 1.073 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01436/0.5552, allocations: 6.826 MB / 1.08 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6156/1.171, allocations: 39.79 MB / 1.119 GB, free: 87.91 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004393/1.175, allocations: 3.103 MB / 1.122 GB, free: 86.18 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00285/1.178, allocations: 1.973 MB / 1.124 GB, free: 85.43 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001249/1.178, allocations: 22.16 kB / 1.124 GB, free: 85.43 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.776e-05/1.178, allocations: 56.16 kB / 1.124 GB, free: 85.37 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=179): time 3.757e-06/1.178, allocations: 0 / 1.124 GB, free: 85.37 MB / 0.8575 GB Notification: Performance of matching and sorting (n=182): time 0.03368/1.212, allocations: 9.975 MB / 1.133 GB, free: 81.59 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.577e-05/1.212, allocations: 75 kB / 1.133 GB, free: 81.53 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003388/1.216, allocations: 1.522 MB / 1.135 GB, free: 80.91 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0003751/1.216, allocations: 56.14 kB / 1.135 GB, free: 80.86 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.00143/1.217, allocations: 2.261 MB / 1.137 GB, free: 79.16 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008112/1.218, allocations: 0.6236 MB / 1.138 GB, free: 78.67 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009163/1.219, allocations: 409.6 kB / 1.138 GB, free: 78.48 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.117e-05/1.219, allocations: 302 kB / 1.138 GB, free: 78.18 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002287/1.222, allocations: 1.178 MB / 1.14 GB, free: 77.75 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002432/1.224, allocations: 1.88 MB / 1.141 GB, free: 76.34 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00485/1.229, allocations: 3.367 MB / 1.145 GB, free: 73.98 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.452e-05/1.229, allocations: 10.66 kB / 1.145 GB, free: 73.97 MB / 0.8575 GB Notification: Performance of matching and sorting (n=285) (initialization): time 0.01/1.239, allocations: 4.586 MB / 1.149 GB, free: 71.51 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.525e-05/1.239, allocations: 17.94 kB / 1.149 GB, free: 71.51 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-05/1.239, allocations: 22.22 kB / 1.149 GB, free: 71.51 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004699/1.244, allocations: 1.58 MB / 1.151 GB, free: 70.86 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001783/1.246, allocations: 352.4 kB / 1.151 GB, free: 70.77 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02105/1.267, allocations: 18.58 MB / 1.169 GB, free: 57.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002041/1.269, allocations: 121.7 kB / 1.169 GB, free: 57.2 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002396/1.269, allocations: 96.16 kB / 1.17 GB, free: 57.18 MB / 0.8575 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.003117/1.272, allocations: 1.894 MB / 1.171 GB, free: 56.02 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004782/1.273, allocations: 226.3 kB / 1.172 GB, free: 55.91 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005852/1.279, allocations: 4.093 MB / 1.176 GB, free: 53.54 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.35e-05/1.279, allocations: 14.97 kB / 1.176 GB, free: 53.54 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.357e-05/1.279, allocations: 17.94 kB / 1.176 GB, free: 53.54 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.882e-05/1.279, allocations: 7.969 kB / 1.176 GB, free: 53.53 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0152/1.294, allocations: 9.471 MB / 1.185 GB, free: 45.14 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.179e-05/1.294, allocations: 4 kB / 1.185 GB, free: 45.14 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008941/1.295, allocations: 179.7 kB / 1.185 GB, free: 44.96 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00318/1.298, allocations: 1.359 MB / 1.186 GB, free: 43.6 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002227/1.298, allocations: 39.94 kB / 1.186 GB, free: 43.56 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01684/1.315, allocations: 17.34 MB / 1.203 GB, free: 25.66 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.72e-06/1.315, allocations: 7.984 kB / 1.203 GB, free: 25.65 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006077/1.321, allocations: 4.078 MB / 1.207 GB, free: 21.48 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001656/1.323, allocations: 0.5218 MB / 1.208 GB, free: 20.94 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004113/1.323, allocations: 47.83 kB / 1.208 GB, free: 20.89 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009447/1.324, allocations: 83.91 kB / 1.208 GB, free: 20.81 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000711/1.325, allocations: 161.7 kB / 1.208 GB, free: 20.65 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001189/1.325, allocations: 44 kB / 1.208 GB, free: 20.61 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001444/1.327, allocations: 1.005 MB / 1.209 GB, free: 19.58 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.6e-07/1.327, allocations: 0 / 1.209 GB, free: 19.58 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.00426/1.331, allocations: 0.9922 MB / 1.21 GB, free: 18.59 MB / 0.8575 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.000312/1.331, allocations: 143.1 kB / 1.21 GB, free: 18.44 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.006081/1.337, allocations: 4.308 MB / 1.214 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 9.488e-06/1.337, allocations: 0 / 1.214 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.003641/1.341, allocations: 2.657 MB / 1.217 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003473/1.345, allocations: 0.7928 MB / 1.218 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01608/1.361, allocations: 8.592 MB / 1.226 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00486/1.366, allocations: 3.569 MB / 1.23 GB, free: 14.38 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.001634/1.367, allocations: 463.9 kB / 1.23 GB, free: 13.92 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003239/1.368, allocations: 119.4 kB / 1.23 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of SimCode: time 1.452e-06/1.368, allocations: 0 / 1.23 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of Templates: time 0.08864/1.456, allocations: 43.9 MB / 1.273 GB, free: 2.41 MB / 0.9044 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches