Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.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_9_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_9_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.001309/0.001309, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.001506/0.001506, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.558/1.558, allocations: 223.3 MB / 240 MB, free: 5.344 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.52/2.52, allocations: 390.9 MB / 0.666 GB, free: 2.43 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003835/0.000384, allocations: 8 kB / 0.8154 GB, free: 13.59 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8034/0.8038, allocations: 142.4 MB / 0.9544 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.014/0.8178, allocations: 13.33 MB / 0.9675 GB, free: 13.49 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01548/0.8334, allocations: 9.621 MB / 0.9769 GB, free: 5.918 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002/0.8354, allocations: 51.69 kB / 0.9769 GB, free: 5.895 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001038/0.8365, allocations: 281.7 kB / 0.9772 GB, free: 5.656 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.006798/0.8433, allocations: 1.462 MB / 0.9786 GB, free: 4.543 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002313/0.8456, allocations: 0.5103 MB / 0.9791 GB, free: 4.152 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.005944/0.8516, allocations: 2.906 MB / 0.9819 GB, free: 2.449 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004423/0.856, allocations: 1.805 MB / 0.9837 GB, free: 1.301 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003002/0.859, allocations: 1.296 MB / 0.985 GB, free: 136 kB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002869/0.8619, allocations: 1.031 MB / 0.986 GB, free: 15.1 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0002578/0.8622, allocations: 68 kB / 0.986 GB, free: 15.03 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001776/0.864, allocations: 439.4 kB / 0.9865 GB, free: 14.6 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0006502/0.8646, allocations: 498.3 kB / 0.9869 GB, free: 14.11 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0006711/0.8653, allocations: 356.7 kB / 0.9873 GB, free: 13.76 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.002919/0.8683, allocations: 2.131 MB / 0.9894 GB, free: 11.62 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 7.163e-06/0.8683, allocations: 0 / 0.9894 GB, free: 11.62 MB / 0.7481 GB Notification: Performance of FrontEnd: time 2.625e-06/0.8683, allocations: 0 / 0.9894 GB, free: 11.62 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 4.442e-05/0.8683, allocations: 0 / 0.9894 GB, free: 11.62 MB / 0.7481 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.004074/0.8724, allocations: 1.856 MB / 0.9912 GB, free: 9.711 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 5.077e-05/0.8725, allocations: 12.03 kB / 0.9912 GB, free: 9.699 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01018/0.8827, allocations: 2.166 MB / 0.9933 GB, free: 7.527 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002649/0.8854, allocations: 1.166 MB / 0.9944 GB, free: 6.305 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.156e-05/0.8855, allocations: 94.27 kB / 0.9945 GB, free: 6.211 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000245/0.8857, allocations: 111.9 kB / 0.9946 GB, free: 6.102 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005416/0.8911, allocations: 2.69 MB / 0.9973 GB, free: 3.262 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.378e-05/0.8912, allocations: 11.94 kB / 0.9973 GB, free: 3.25 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001711/0.8914, allocations: 51.98 kB / 0.9973 GB, free: 3.199 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005602/0.8919, allocations: 194.1 kB / 0.9975 GB, free: 3.008 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006679/0.8986, allocations: 2.834 MB / 1 GB, free: 168 kB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01438/0.913, allocations: 10.55 MB / 1.011 GB, free: 5.031 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005809/0.9189, allocations: 2.391 MB / 1.013 GB, free: 2.617 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003092/0.922, allocations: 1.303 MB / 1.014 GB, free: 1.312 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 8.371e-05/0.9222, allocations: 9 kB / 1.014 GB, free: 1.301 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.13e-05/0.9222, allocations: 43.56 kB / 1.014 GB, free: 1.25 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=89): time 9.377e-06/0.9223, allocations: 0 / 1.014 GB, free: 1.25 MB / 0.7637 GB Notification: Performance of matching and sorting (n=153): time 0.05579/0.9781, allocations: 16.5 MB / 1.03 GB, free: 0.5898 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001593/0.9783, allocations: 68.72 kB / 1.03 GB, free: 0.5117 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002063/0.9804, allocations: 1.168 MB / 1.032 GB, free: 15.33 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0002917/0.9807, allocations: 49.7 kB / 1.032 GB, free: 15.27 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006535/0.9813, allocations: 0.7475 MB / 1.032 GB, free: 14.52 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006301/0.982, allocations: 0.5158 MB / 1.033 GB, free: 14 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000126/0.9821, allocations: 32 kB / 1.033 GB, free: 13.97 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001889/0.9823, allocations: 361.9 kB / 1.033 GB, free: 13.61 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003529/0.9858, allocations: 1.526 MB / 1.035 GB, free: 12.08 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003549/0.9894, allocations: 1.792 MB / 1.036 GB, free: 10.19 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003609/0.993, allocations: 1.654 MB / 1.038 GB, free: 8.543 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.264e-06/0.993, allocations: 3.938 kB / 1.038 GB, free: 8.539 MB / 0.795 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.01298/1.006, allocations: 5.289 MB / 1.043 GB, free: 3.211 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.39e-05/1.006, allocations: 12.11 kB / 1.043 GB, free: 3.199 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.713e-05/1.006, allocations: 12 kB / 1.043 GB, free: 3.188 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006388/1.013, allocations: 1.885 MB / 1.045 GB, free: 1.281 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001874/1.014, allocations: 435.2 kB / 1.046 GB, free: 0.8555 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02829/1.043, allocations: 22.13 MB / 1.067 GB, free: 9.656 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003741/1.047, allocations: 315.5 kB / 1.067 GB, free: 9.348 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003961/1.047, allocations: 67.92 kB / 1.067 GB, free: 9.281 MB / 0.8262 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 (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(2,100.0%) 8,(2,100.0%) 8,(3,100.0%) 17,(3,100.0%) 17,(3,100.0%) 15,(3,100.0%) 15,(2,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001458/1.048, allocations: 469.5 kB / 1.068 GB, free: 8.812 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004802/1.049, allocations: 177.8 kB / 1.068 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01274/1.062, allocations: 5.344 MB / 1.073 GB, free: 3.242 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.815e-05/1.062, allocations: 16 kB / 1.073 GB, free: 3.227 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.408e-05/1.062, allocations: 20 kB / 1.073 GB, free: 3.207 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.642e-05/1.062, allocations: 7.969 kB / 1.073 GB, free: 3.199 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0162/1.078, allocations: 7.461 MB / 1.081 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.39e-05/1.078, allocations: 4 kB / 1.081 GB, free: 11.6 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00158/1.08, allocations: 363.7 kB / 1.081 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005606/1.085, allocations: 1.709 MB / 1.083 GB, free: 9.516 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001825/1.085, allocations: 43.95 kB / 1.083 GB, free: 9.473 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02687/1.112, allocations: 21.33 MB / 1.104 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/1.112, allocations: 4 kB / 1.104 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01168/1.124, allocations: 4.913 MB / 1.108 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001132/1.125, allocations: 498.7 kB / 1.109 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002799/1.126, allocations: 32 kB / 1.109 GB, free: 13.55 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001816/1.127, allocations: 331.5 kB / 1.109 GB, free: 13.23 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005386/1.128, allocations: 149 kB / 1.109 GB, free: 13.08 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001342/1.128, allocations: 51.97 kB / 1.109 GB, free: 13.03 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.001158/1.129, allocations: 0.7782 MB / 1.11 GB, free: 12.25 MB / 0.8731 GB Notification: Performance of sort global known variables: time 3.81e-07/1.129, allocations: 0 / 1.11 GB, free: 12.25 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.002324/1.132, allocations: 0.6523 MB / 1.111 GB, free: 11.6 MB / 0.8731 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 (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(2,100.0%) 8,(3,100.0%) 15,(2,100.0%) 8,(3,100.0%) 17,(2,100.0%) 8,(3,100.0%) 15,(2,100.0%) 8,(3,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003096/1.132, allocations: 152.3 kB / 1.111 GB, free: 11.45 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.01127/1.143, allocations: 5.183 MB / 1.116 GB, free: 6.156 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.091e-05/1.143, allocations: 0 / 1.116 GB, free: 6.156 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.006821/1.15, allocations: 3.363 MB / 1.119 GB, free: 2.691 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00267/1.153, allocations: 0.5178 MB / 1.12 GB, free: 2.176 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008691/1.161, allocations: 4.868 MB / 1.125 GB, free: 13.25 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00146/1.163, allocations: 1.564 MB / 1.126 GB, free: 11.66 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.00164/1.165, allocations: 390.4 kB / 1.126 GB, free: 11.27 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003578/1.165, allocations: 111.3 kB / 1.127 GB, free: 11.16 MB / 0.8887 GB Notification: Performance of SimCode: time 1.082e-06/1.165, allocations: 0 / 1.127 GB, free: 11.16 MB / 0.8887 GB Notification: Performance of Templates: time 0.07116/1.236, allocations: 41.42 MB / 1.167 GB, free: 2.188 MB / 0.92 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches