Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.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.ThreePhasesBalanced.Lines.Examples.ACLineMedium,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001431/0.001431, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001428/0.001428, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.386/1.386, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.661/2.661, allocations: 469.4 MB / 0.7427 GB, free: 3.66 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001612/0.001612, allocations: 71.2 kB / 0.9088 GB, free: 14.14 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3566/0.3583, allocations: 159.1 MB / 1.064 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.01907/0.3774, allocations: 14.78 MB / 1.079 GB, free: 192 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.6043/0.9817, allocations: 10.34 MB / 1.089 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001513/0.9833, allocations: 58.09 kB / 1.089 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.004135/0.9875, allocations: 1.688 MB / 1.09 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.00658/0.9941, allocations: 1.819 MB / 1.092 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002647/0.9968, allocations: 0.7516 MB / 1.093 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.004934/1.002, allocations: 2.743 MB / 1.096 GB, free: 8.895 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002702/1.004, allocations: 1.425 MB / 1.097 GB, free: 8.234 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003511/1.008, allocations: 1.501 MB / 1.099 GB, free: 7.68 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002335/1.01, allocations: 1.156 MB / 1.1 GB, free: 7.188 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0003624/1.011, allocations: 160.4 kB / 1.1 GB, free: 7.188 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002104/1.013, allocations: 0.7857 MB / 1.101 GB, free: 6.953 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.000703/1.014, allocations: 0.6075 MB / 1.101 GB, free: 6.668 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.001203/1.015, allocations: 0.9522 MB / 1.102 GB, free: 6.082 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.005053/1.02, allocations: 2.735 MB / 1.105 GB, free: 5.125 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 9.127e-06/1.02, allocations: 2.109 kB / 1.105 GB, free: 5.125 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.783e-06/1.02, allocations: 7.875 kB / 1.105 GB, free: 5.117 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.471e-05/1.02, allocations: 0 / 1.105 GB, free: 5.117 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: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.005341/1.025, allocations: 2.176 MB / 1.107 GB, free: 3.766 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/1.025, allocations: 10.44 kB / 1.107 GB, free: 3.766 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01275/1.038, allocations: 2.098 MB / 1.109 GB, free: 3.637 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003208/1.041, allocations: 1.215 MB / 1.11 GB, free: 2.93 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.384e-05/1.041, allocations: 89.31 kB / 1.11 GB, free: 2.887 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000361/1.042, allocations: 120.6 kB / 1.11 GB, free: 2.844 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006145/1.048, allocations: 2.676 MB / 1.113 GB, free: 1.766 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.044e-05/1.048, allocations: 15.27 kB / 1.113 GB, free: 1.754 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001854/1.048, allocations: 51.52 kB / 1.113 GB, free: 1.719 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007859/1.049, allocations: 194.4 kB / 1.113 GB, free: 1.699 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008112/1.057, allocations: 2.788 MB / 1.116 GB, free: 0.9844 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01708/1.074, allocations: 10.5 MB / 1.126 GB, free: 9.742 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007033/1.081, allocations: 2.332 MB / 1.128 GB, free: 9.094 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003255/1.085, allocations: 1.28 MB / 1.13 GB, free: 8.559 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 7.107e-05/1.085, allocations: 9.469 kB / 1.13 GB, free: 8.559 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.596e-05/1.085, allocations: 43.91 kB / 1.13 GB, free: 8.508 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=89): time 2.705e-06/1.085, allocations: 0 / 1.13 GB, free: 8.508 MB / 0.8575 GB Notification: Performance of matching and sorting (n=153): time 0.06361/1.148, allocations: 16.49 MB / 1.146 GB, free: 436 kB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.787e-05/1.148, allocations: 66.81 kB / 1.146 GB, free: 368 kB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002229/1.151, allocations: 1.181 MB / 1.147 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0003401/1.151, allocations: 47.83 kB / 1.147 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006091/1.152, allocations: 0.7466 MB / 1.148 GB, free: 15 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006059/1.152, allocations: 0.5139 MB / 1.148 GB, free: 14.54 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005982/1.153, allocations: 287.8 kB / 1.149 GB, free: 14.39 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001045/1.153, allocations: 306.2 kB / 1.149 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003694/1.157, allocations: 1.51 MB / 1.15 GB, free: 13.3 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004019/1.161, allocations: 1.782 MB / 1.152 GB, free: 12.2 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008149/1.169, allocations: 3.368 MB / 1.155 GB, free: 10.27 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.541e-05/1.169, allocations: 2.531 kB / 1.155 GB, free: 10.27 MB / 0.8731 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.01488/1.184, allocations: 5.276 MB / 1.161 GB, free: 6.871 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 3.306e-05/1.184, allocations: 8.125 kB / 1.161 GB, free: 6.863 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.985e-05/1.184, allocations: 12 kB / 1.161 GB, free: 6.852 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007293/1.191, allocations: 1.895 MB / 1.162 GB, free: 4.934 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002158/1.193, allocations: 407.3 kB / 1.163 GB, free: 4.535 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03166/1.225, allocations: 24.17 MB / 1.186 GB, free: 11.26 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003261/1.228, allocations: 315.6 kB / 1.187 GB, free: 10.95 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003868/1.229, allocations: 63.97 kB / 1.187 GB, free: 10.89 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (2,8,100.0%), (3,17,100.0%), (3,17,100.0%), (2,16,100.0%), (2,16,100.0%), (2,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001294/1.23, allocations: 466.8 kB / 1.187 GB, free: 10.42 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005933/1.231, allocations: 173.9 kB / 1.187 GB, free: 10.25 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01451/1.245, allocations: 5.32 MB / 1.193 GB, free: 4.887 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-05/1.245, allocations: 12 kB / 1.193 GB, free: 4.875 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.926e-05/1.245, allocations: 24 kB / 1.193 GB, free: 4.852 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.311e-05/1.245, allocations: 7.969 kB / 1.193 GB, free: 4.844 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01848/1.264, allocations: 7.426 MB / 1.2 GB, free: 13.29 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.825e-05/1.264, allocations: 4 kB / 1.2 GB, free: 13.28 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001895/1.266, allocations: 355.7 kB / 1.2 GB, free: 12.93 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006576/1.272, allocations: 1.72 MB / 1.202 GB, free: 11.19 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003332/1.273, allocations: 43.97 kB / 1.202 GB, free: 11.15 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0302/1.303, allocations: 23.32 MB / 1.225 GB, free: 2.719 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.229e-06/1.303, allocations: 4 kB / 1.225 GB, free: 2.715 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0139/1.317, allocations: 4.893 MB / 1.23 GB, free: 13.74 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001397/1.318, allocations: 498.7 kB / 1.23 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006871/1.319, allocations: 24 kB / 1.23 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002731/1.322, allocations: 319.5 kB / 1.23 GB, free: 12.9 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005958/1.322, allocations: 153 kB / 1.23 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001821/1.323, allocations: 51.97 kB / 1.231 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001428/1.324, allocations: 0.7899 MB / 1.231 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.21e-07/1.324, allocations: 0 / 1.231 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.002927/1.327, allocations: 0.6562 MB / 1.232 GB, free: 11.25 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003895/1.327, allocations: 145 kB / 1.232 GB, free: 11.1 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.01283/1.34, allocations: 5.429 MB / 1.237 GB, free: 5.562 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 7.303e-06/1.34, allocations: 0 / 1.237 GB, free: 5.562 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.00751/1.348, allocations: 3.359 MB / 1.241 GB, free: 2.102 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003424/1.351, allocations: 0.5608 MB / 1.241 GB, free: 1.562 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01051/1.362, allocations: 4.449 MB / 1.246 GB, free: 13.06 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001728/1.364, allocations: 1.564 MB / 1.247 GB, free: 11.45 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006617/1.364, allocations: 127.3 kB / 1.247 GB, free: 11.33 MB / 0.9669 GB Notification: Performance of SimCode: time 9.32e-07/1.364, allocations: 4 kB / 1.247 GB, free: 11.32 MB / 0.9669 GB Notification: Performance of Templates: time 0.0919/1.456, allocations: 85.7 MB / 1.331 GB, free: 5.691 MB / 1.045 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches