Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.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.FixedCurrentTest,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.FixedCurrentTest") translateModel(PowerSystems.Examples.Generic.Test.FixedCurrentTest,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.FixedCurrentTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001154/0.001154, allocations: 184.9 kB / 16.39 MB, free: 5.758 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.506/1.506, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.0008074/0.0008075, allocations: 103.9 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1708/0.1708, allocations: 38.07 MB / 357.2 MB, free: 1.898 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000312/0.0003121, allocations: 8 kB / 424 MB, free: 37.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3/0.3003, allocations: 56.31 MB / 480.3 MB, free: 9.547 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1275/0.4278, allocations: 94.7 MB / 0.5615 GB, free: 7.727 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002239/0.4281, allocations: 83.95 kB / 0.5616 GB, free: 7.645 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03325/0.4613, allocations: 14.29 MB / 0.5756 GB, free: 9.188 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4614, allocations: 0 / 0.5756 GB, free: 9.188 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.758e-05/0.4614, allocations: 4 kB / 0.5756 GB, free: 9.184 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.0007667/0.4622, allocations: 0.5066 MB / 0.5761 GB, free: 8.629 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.4622, allocations: 12.03 kB / 0.5761 GB, free: 8.617 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008757/0.4631, allocations: 103.5 kB / 0.5762 GB, free: 8.516 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003814/0.4635, allocations: 266.5 kB / 0.5764 GB, free: 8.215 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.946e-05/0.4635, allocations: 15.98 kB / 0.5764 GB, free: 8.199 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.043e-05/0.4636, allocations: 15.94 kB / 0.5765 GB, free: 8.184 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004665/0.464, allocations: 319 kB / 0.5768 GB, free: 7.852 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.4641, allocations: 0 / 0.5768 GB, free: 7.852 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.47e-05/0.4641, allocations: 8 kB / 0.5768 GB, free: 7.844 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.323e-05/0.4642, allocations: 27.97 kB / 0.5768 GB, free: 7.816 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004022/0.4646, allocations: 279.7 kB / 0.5771 GB, free: 7.543 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00169/0.4663, allocations: 1.268 MB / 0.5783 GB, free: 6.188 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004477/0.4668, allocations: 241 kB / 0.5785 GB, free: 5.934 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.377e-05/0.4668, allocations: 0 / 0.5785 GB, free: 5.934 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.49e-05/0.4668, allocations: 38.62 kB / 0.5786 GB, free: 5.887 MB / 410.7 MB Notification: Performance of pre-optimization done (n=16): time 1.112e-06/0.4668, allocations: 0 / 0.5786 GB, free: 5.887 MB / 410.7 MB Notification: Performance of matching and sorting (n=17): time 0.0008057/0.4676, allocations: 433.5 kB / 0.579 GB, free: 5.457 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.072e-05/0.4677, allocations: 81.05 kB / 0.5791 GB, free: 5.359 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001625/0.4679, allocations: 177.6 kB / 0.5792 GB, free: 5.176 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.402e-05/0.4679, allocations: 37.83 kB / 0.5793 GB, free: 5.133 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.858e-05/0.468, allocations: 151.8 kB / 0.5794 GB, free: 4.98 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.241e-05/0.468, allocations: 63.09 kB / 0.5795 GB, free: 4.918 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.432e-05/0.4681, allocations: 8 kB / 0.5795 GB, free: 4.91 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.4682, allocations: 326.8 kB / 0.5798 GB, free: 4.582 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000131/0.4683, allocations: 88.34 kB / 0.5799 GB, free: 4.492 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001661/0.4685, allocations: 161.5 kB / 0.58 GB, free: 4.305 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001545/0.4687, allocations: 102.5 kB / 0.5801 GB, free: 4.207 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.4687, allocations: 4 kB / 0.5801 GB, free: 4.203 MB / 410.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004261/0.4691, allocations: 293 kB / 0.5804 GB, free: 3.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.4692, allocations: 8 kB / 0.5804 GB, free: 3.902 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.527e-06/0.4692, allocations: 3.984 kB / 0.5804 GB, free: 3.898 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.4692, allocations: 4 kB / 0.5804 GB, free: 3.895 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002439/0.4694, allocations: 55.89 kB / 0.5805 GB, free: 3.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.4695, allocations: 12.28 kB / 0.5805 GB, free: 3.828 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001495/0.4696, allocations: 15.98 kB / 0.5805 GB, free: 3.812 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.968e-05/0.4696, allocations: 11.98 kB / 0.5805 GB, free: 3.801 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 (27): * Single equations (assignments): 27 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001432/0.4698, allocations: 153.8 kB / 0.5807 GB, free: 3.641 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.425e-05/0.4698, allocations: 19.77 kB / 0.5807 GB, free: 3.621 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003501/0.4702, allocations: 237.2 kB / 0.5809 GB, free: 3.383 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.4702, allocations: 4 kB / 0.5809 GB, free: 3.379 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.4702, allocations: 0 / 0.5809 GB, free: 3.379 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.4702, allocations: 4 kB / 0.5809 GB, free: 3.375 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001242/0.4715, allocations: 0.9516 MB / 0.5818 GB, free: 2.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.4715, allocations: 4 kB / 0.5818 GB, free: 2.316 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001375/0.4716, allocations: 32.48 kB / 0.5819 GB, free: 2.285 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.023e-06/0.4717, allocations: 11.94 kB / 0.5819 GB, free: 2.273 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.816e-05/0.4717, allocations: 12 kB / 0.5819 GB, free: 2.262 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.402e-06/0.4717, allocations: 7.938 kB / 0.5819 GB, free: 2.254 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.4717, allocations: 7.953 kB / 0.5819 GB, free: 2.246 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004757/0.4722, allocations: 0.5969 MB / 0.5825 GB, free: 1.488 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.089e-05/0.4723, allocations: 100.9 kB / 0.5826 GB, free: 1.371 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.124e-05/0.4723, allocations: 15.94 kB / 0.5826 GB, free: 1.355 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001562/0.4725, allocations: 11.98 kB / 0.5826 GB, free: 1.344 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.339e-05/0.4725, allocations: 19.94 kB / 0.5826 GB, free: 1.324 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.56e-05/0.4725, allocations: 8 kB / 0.5827 GB, free: 1.316 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001177/0.4726, allocations: 155.2 kB / 0.5828 GB, free: 1.164 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4727, allocations: 4 kB / 0.5828 GB, free: 1.16 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003438/0.473, allocations: 60 kB / 0.5829 GB, free: 1.102 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 (18): * Single equations (assignments): 17 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001288/0.4731, allocations: 111.2 kB / 0.583 GB, free: 0.9844 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003323/0.4735, allocations: 207.6 kB / 0.5832 GB, free: 0.7812 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.4735, allocations: 4.562 kB / 0.5832 GB, free: 0.7773 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000139/0.4736, allocations: 95.81 kB / 0.5833 GB, free: 0.6836 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003091/0.4739, allocations: 44.06 kB / 0.5833 GB, free: 0.6367 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008789/0.4748, allocations: 0.6606 MB / 0.5839 GB, free: 15.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003128/0.4752, allocations: 0.7674 MB / 0.5847 GB, free: 15.1 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001496/0.4753, allocations: 57.48 kB / 0.5848 GB, free: 15.05 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.149e-05/0.4754, allocations: 15.44 kB / 0.5848 GB, free: 15.04 MB / 426.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4754, allocations: 4 kB / 0.5848 GB, free: 15.03 MB / 426.7 MB Notification: Performance of Templates: time 0.004167/0.4796, allocations: 1.712 MB / 0.5864 GB, free: 13.32 MB / 426.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.FixedCurrentTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches