Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Generic.Test.FixedLoadTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|line.i.1.|line.i.2.|line.p.1.|line.p.2.|line.v.1.|line.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest") translateModel(PowerSystems.Examples.Generic.Test.FixedLoadTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|line.i.1.|line.i.2.|line.p.1.|line.p.2.|line.v.1.|line.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001251/0.00125, allocations: 179.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.443/1.443, allocations: 205.4 MB / 222.5 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009827/0.0009827, allocations: 96.14 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1624/0.1624, allocations: 38.06 MB / 357.2 MB, free: 1.887 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003062/0.0003062, allocations: 8 kB / 424 MB, free: 37.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3638/0.3641, allocations: 56.31 MB / 480.3 MB, free: 9.543 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1473/0.5114, allocations: 94.82 MB / 0.5616 GB, free: 7.594 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002922/0.5118, allocations: 87.95 kB / 0.5617 GB, free: 7.508 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03514/0.5469, allocations: 14.18 MB / 0.5756 GB, free: 9.156 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.707e-06/0.547, allocations: 0 / 0.5756 GB, free: 9.156 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.883e-05/0.5471, allocations: 4 kB / 0.5756 GB, free: 9.152 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001067/0.5481, allocations: 0.5105 MB / 0.5761 GB, free: 8.594 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/0.5482, allocations: 8.031 kB / 0.5761 GB, free: 8.586 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001043/0.5492, allocations: 119.5 kB / 0.5762 GB, free: 8.469 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003832/0.5496, allocations: 270.5 kB / 0.5765 GB, free: 8.164 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.027e-05/0.5497, allocations: 11.98 kB / 0.5765 GB, free: 8.152 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.541e-05/0.5497, allocations: 23.98 kB / 0.5765 GB, free: 8.129 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000493/0.5502, allocations: 319.1 kB / 0.5768 GB, free: 7.797 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.186e-05/0.5503, allocations: 3.938 kB / 0.5768 GB, free: 7.793 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.521e-05/0.5503, allocations: 8 kB / 0.5768 GB, free: 7.785 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-05/0.5504, allocations: 23.97 kB / 0.5768 GB, free: 7.762 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004437/0.5509, allocations: 295.7 kB / 0.5771 GB, free: 7.473 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001693/0.5526, allocations: 1.256 MB / 0.5783 GB, free: 6.129 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002632/0.5528, allocations: 161 kB / 0.5785 GB, free: 5.953 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.623e-05/0.5529, allocations: 8.016 kB / 0.5785 GB, free: 5.945 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.925e-05/0.5529, allocations: 34.56 kB / 0.5785 GB, free: 5.902 MB / 410.7 MB Notification: Performance of pre-optimization done (n=17): time 1.984e-06/0.5529, allocations: 0 / 0.5785 GB, free: 5.902 MB / 410.7 MB Notification: Performance of matching and sorting (n=18): time 0.001606/0.5545, allocations: 0.6653 MB / 0.5792 GB, free: 5.211 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.304e-05/0.5546, allocations: 81.11 kB / 0.5793 GB, free: 5.113 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001908/0.5548, allocations: 169.5 kB / 0.5794 GB, free: 4.938 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.564e-05/0.5548, allocations: 29.7 kB / 0.5795 GB, free: 4.902 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.555, allocations: 163.9 kB / 0.5796 GB, free: 4.738 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.836e-05/0.555, allocations: 59.11 kB / 0.5797 GB, free: 4.68 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.508e-06/0.555, allocations: 0 / 0.5797 GB, free: 4.68 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.5552, allocations: 326.8 kB / 0.58 GB, free: 4.352 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000129/0.5553, allocations: 83.98 kB / 0.5801 GB, free: 4.27 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001861/0.5555, allocations: 152.4 kB / 0.5802 GB, free: 4.09 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001673/0.5557, allocations: 103.9 kB / 0.5803 GB, free: 3.988 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.5557, allocations: 4 kB / 0.5803 GB, free: 3.984 MB / 410.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006006/0.5563, allocations: 346 kB / 0.5806 GB, free: 3.637 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/0.5564, allocations: 8 kB / 0.5806 GB, free: 3.629 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.5564, allocations: 0 / 0.5806 GB, free: 3.629 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004213/0.5568, allocations: 96.77 kB / 0.5807 GB, free: 3.531 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001874/0.557, allocations: 39.92 kB / 0.5808 GB, free: 3.492 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002474/0.5595, allocations: 1.974 MB / 0.5827 GB, free: 1.387 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001612/0.5597, allocations: 16.05 kB / 0.5827 GB, free: 1.371 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.986e-05/0.5597, allocations: 12 kB / 0.5827 GB, free: 1.359 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 20 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002079/0.5599, allocations: 157.8 kB / 0.5829 GB, free: 1.195 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.861e-05/0.56, allocations: 19.72 kB / 0.5829 GB, free: 1.176 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006433/0.5606, allocations: 324 kB / 0.5832 GB, free: 0.8477 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.5606, allocations: 0 / 0.5832 GB, free: 0.8477 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.402e-06/0.5606, allocations: 7.938 kB / 0.5832 GB, free: 0.8398 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/0.5606, allocations: 7.984 kB / 0.5832 GB, free: 0.832 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001195/0.5618, allocations: 0.7427 MB / 0.5839 GB, free: 24 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.5619, allocations: 0 / 0.5839 GB, free: 24 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001358/0.562, allocations: 36.11 kB / 0.584 GB, free: 15.98 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003043/0.5623, allocations: 72.91 kB / 0.5841 GB, free: 15.91 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.934e-05/0.5624, allocations: 8 kB / 0.5841 GB, free: 15.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001874/0.5642, allocations: 1.853 MB / 0.5859 GB, free: 13.92 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.5643, allocations: 3.938 kB / 0.5859 GB, free: 13.91 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006147/0.5649, allocations: 443.7 kB / 0.5863 GB, free: 13.43 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.963e-05/0.565, allocations: 88.92 kB / 0.5864 GB, free: 13.33 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.858e-05/0.565, allocations: 19.88 kB / 0.5864 GB, free: 13.31 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001251/0.5651, allocations: 4 kB / 0.5864 GB, free: 13.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.305e-05/0.5652, allocations: 19.97 kB / 0.5864 GB, free: 13.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.447e-05/0.5652, allocations: 4 kB / 0.5864 GB, free: 13.28 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001167/0.5653, allocations: 144.1 kB / 0.5866 GB, free: 13.14 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5653, allocations: 0 / 0.5866 GB, free: 13.14 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000481/0.5658, allocations: 76 kB / 0.5866 GB, free: 13.07 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001723/0.566, allocations: 114.5 kB / 0.5867 GB, free: 12.95 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0007451/0.5668, allocations: 373.8 kB / 0.5871 GB, free: 12.57 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.5668, allocations: 4.125 kB / 0.5871 GB, free: 12.57 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003889/0.5672, allocations: 250.4 kB / 0.5873 GB, free: 12.31 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000285/0.5675, allocations: 40.23 kB / 0.5874 GB, free: 12.27 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000864/0.5683, allocations: 0.5681 MB / 0.5879 GB, free: 11.67 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003466/0.5687, allocations: 0.7755 MB / 0.5887 GB, free: 10.87 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001257/0.5688, allocations: 37.69 kB / 0.5887 GB, free: 10.83 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.507e-05/0.5689, allocations: 19.44 kB / 0.5888 GB, free: 10.81 MB / 426.7 MB Notification: Performance of SimCode: time 3.81e-07/0.5689, allocations: 4 kB / 0.5888 GB, free: 10.81 MB / 426.7 MB Notification: Performance of Templates: time 0.005452/0.5743, allocations: 2.632 MB / 0.5913 GB, free: 8.176 MB / 426.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.FixedLoadTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,line.i[1],line.i[2],line.p[1],line.p[2],line.v[1],line.v[2] Variables in the result:line.L,line.R,line.i[1],line.i[2],line.i_start[1],line.i_start[2],line.p[1],line.p[2],line.terminal_p.v[1],line.v[1],line.v[2],line.v_start[1],line.v_start[2],load.P,load.p[1],load.phi,load.v_start[1],load.v_start[2],source.V,source.definiteReference,source.potentialReference,source.terminal.v[1],system.alpha0,system.dynType,system.f,system.fType,system.f_lim[1],system.f_lim[2],system.f_nom,system.omega_nom,system.refType,system.synRef,system.w_nom,time