Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.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.Introductory.Frequency,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency") translateModel(PowerSystems.Examples.Introductory.Frequency,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008921/0.0008922, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.438/1.438, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008207/0.0008207, allocations: 88.5 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1649/0.1649, allocations: 37.98 MB / 348 MB, free: 7.77 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.397e-05/1.4e-05, allocations: 4 kB / 410.6 MB, free: 46.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1208, allocations: 56.33 MB / 466.9 MB, free: 6.566 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4214/0.5422, allocations: 94.35 MB / 0.5481 GB, free: 0.5938 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002914/0.5425, allocations: 83.95 kB / 0.5482 GB, free: 0.5117 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02855/0.5711, allocations: 10.13 MB / 0.5581 GB, free: 6.293 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.5711, allocations: 3.938 kB / 0.5581 GB, free: 6.289 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.494e-05/0.5712, allocations: 8 kB / 0.5581 GB, free: 6.281 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.0009993/0.5722, allocations: 0.6759 MB / 0.5587 GB, free: 5.555 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.5722, allocations: 12.03 kB / 0.5587 GB, free: 5.543 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.5724, allocations: 55.64 kB / 0.5588 GB, free: 5.488 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002349/0.5747, allocations: 1.018 MB / 0.5598 GB, free: 4.43 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.435e-05/0.5747, allocations: 12 kB / 0.5598 GB, free: 4.418 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.658e-05/0.5748, allocations: 24 kB / 0.5598 GB, free: 4.395 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004615/0.5753, allocations: 269.4 kB / 0.5601 GB, free: 4.129 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005975/0.5759, allocations: 391 kB / 0.5605 GB, free: 3.707 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.07e-05/0.5759, allocations: 4 kB / 0.5605 GB, free: 3.703 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.113e-05/0.576, allocations: 0 / 0.5605 GB, free: 3.703 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.445e-05/0.576, allocations: 11.95 kB / 0.5605 GB, free: 3.691 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001874/0.5779, allocations: 1.682 MB / 0.5621 GB, free: 1.906 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001936/0.5781, allocations: 131.8 kB / 0.5622 GB, free: 1.75 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.58e-05/0.5782, allocations: 46.64 kB / 0.5623 GB, free: 1.695 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.5782, allocations: 4 kB / 0.5623 GB, free: 1.691 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.384e-05/0.5782, allocations: 42.45 kB / 0.5623 GB, free: 1.641 MB / 395.1 MB Notification: Performance of pre-optimization done (n=14): time 3.116e-06/0.5782, allocations: 0 / 0.5623 GB, free: 1.641 MB / 395.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008327/0.5791, allocations: 0.5491 MB / 0.5629 GB, free: 1.035 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.555e-05/0.5792, allocations: 106.8 kB / 0.563 GB, free: 0.9062 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003031/0.5795, allocations: 293.2 kB / 0.5632 GB, free: 0.6172 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 2.167e-05/0.5795, allocations: 25.7 kB / 0.5633 GB, free: 0.5859 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001841/0.5797, allocations: 283.5 kB / 0.5635 GB, free: 308 kB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.897e-05/0.5798, allocations: 51.3 kB / 0.5636 GB, free: 256 kB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.126e-06/0.5798, allocations: 4.031 kB / 0.5636 GB, free: 252 kB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.5799, allocations: 342.8 kB / 0.5639 GB, free: 15.9 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.072e-05/0.58, allocations: 40 kB / 0.564 GB, free: 15.86 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001762/0.5802, allocations: 183.3 kB / 0.5641 GB, free: 15.62 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001276/0.5803, allocations: 80.05 kB / 0.5642 GB, free: 15.54 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.5803, allocations: 4 kB / 0.5642 GB, free: 15.54 MB / 411.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003545/0.5807, allocations: 241.4 kB / 0.5644 GB, free: 15.29 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.5807, allocations: 12 kB / 0.5645 GB, free: 15.28 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.5808, allocations: 11.95 kB / 0.5645 GB, free: 15.27 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.5808, allocations: 4 kB / 0.5645 GB, free: 15.27 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002477/0.581, allocations: 71.91 kB / 0.5645 GB, free: 15.2 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.203e-05/0.5811, allocations: 11.94 kB / 0.5645 GB, free: 15.18 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001506/0.5812, allocations: 7.906 kB / 0.5646 GB, free: 15.18 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.02e-05/0.5812, allocations: 12.25 kB / 0.5646 GB, free: 15.16 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 37 * 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 9.874e-05/0.5813, allocations: 116.9 kB / 0.5647 GB, free: 15.04 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.674e-05/0.5814, allocations: 39.61 kB / 0.5647 GB, free: 15 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002706/0.5817, allocations: 164.6 kB / 0.5649 GB, free: 14.84 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.5817, allocations: 3.953 kB / 0.5649 GB, free: 14.83 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.5817, allocations: 8 kB / 0.5649 GB, free: 14.82 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.5817, allocations: 0 / 0.5649 GB, free: 14.82 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005995/0.5823, allocations: 467.8 kB / 0.5653 GB, free: 14.32 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.5824, allocations: 0 / 0.5653 GB, free: 14.32 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001802/0.5825, allocations: 39.95 kB / 0.5654 GB, free: 14.28 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.292e-06/0.5826, allocations: 4 kB / 0.5654 GB, free: 14.28 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.711e-05/0.5826, allocations: 7.938 kB / 0.5654 GB, free: 14.27 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.317e-06/0.5826, allocations: 4 kB / 0.5654 GB, free: 14.27 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.5826, allocations: 0 / 0.5654 GB, free: 14.27 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004063/0.583, allocations: 421.4 kB / 0.5658 GB, free: 13.81 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.415e-05/0.5831, allocations: 108.6 kB / 0.5659 GB, free: 13.69 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.157e-05/0.5832, allocations: 0 / 0.5659 GB, free: 13.69 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001474/0.5833, allocations: 7.938 kB / 0.5659 GB, free: 13.68 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.721e-05/0.5833, allocations: 7.984 kB / 0.5659 GB, free: 13.67 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.099e-05/0.5834, allocations: 8 kB / 0.5659 GB, free: 13.66 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0002015/0.5836, allocations: 223 kB / 0.5661 GB, free: 13.45 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5836, allocations: 0 / 0.5661 GB, free: 13.45 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0003879/0.584, allocations: 68 kB / 0.5662 GB, free: 13.38 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (voltage2.theta,ind2.i,ind1.i) * Number of discrete variables: 1 (system.initime) * Number of discrete 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.0001372/0.5841, allocations: 116.9 kB / 0.5663 GB, free: 13.26 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0002456/0.5844, allocations: 132.8 kB / 0.5664 GB, free: 13.13 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.5844, allocations: 0 / 0.5664 GB, free: 13.13 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 8.161e-05/0.5845, allocations: 52.12 kB / 0.5665 GB, free: 13.08 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005492/0.585, allocations: 86.98 kB / 0.5666 GB, free: 13 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001056/0.5861, allocations: 0.6302 MB / 0.5672 GB, free: 12.34 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004314/0.5865, allocations: 0.8503 MB / 0.568 GB, free: 11.46 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.0001709/0.5867, allocations: 47.25 kB / 0.5681 GB, free: 11.41 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.679e-05/0.5868, allocations: 27.44 kB / 0.5681 GB, free: 11.39 MB / 411.1 MB Notification: Performance of SimCode: time 3.6e-07/0.5868, allocations: 0 / 0.5681 GB, free: 11.39 MB / 411.1 MB Notification: Performance of Templates: time 0.006128/0.5929, allocations: 2.751 MB / 0.5708 GB, free: 8.648 MB / 411.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Frequency.mat","../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches