Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.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.PMeterTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|pMeter.I|pMeter.P|pMeter.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest") translateModel(PowerSystems.Examples.Generic.Test.PMeterTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|pMeter.I|pMeter.P|pMeter.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00122/0.00122, allocations: 174.7 kB / 13.63 MB, free: 1.684 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.644/1.644, allocations: 205.2 MB / 219.4 MB, free: 14.19 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.0009025/0.0009026, allocations: 78.73 kB / 267.5 MB, free: 14.02 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2019/0.2019, allocations: 37.98 MB / 353.5 MB, free: 1.73 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.564e-05/2.568e-05, allocations: 0 / 417.7 MB, free: 29.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0986/0.09864, allocations: 56.32 MB / 474 MB, free: 4.805 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.394/0.4927, allocations: 95.27 MB / 0.556 GB, free: 7.941 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001988/0.493, allocations: 83.7 kB / 0.5561 GB, free: 7.898 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0341/0.5271, allocations: 14.59 MB / 0.5703 GB, free: 11.93 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.5272, allocations: 4 kB / 0.5703 GB, free: 11.93 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.624e-05/0.5272, allocations: 4 kB / 0.5703 GB, free: 11.93 MB / 378.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.0008627/0.5281, allocations: 485.6 kB / 0.5708 GB, free: 11.42 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.413e-05/0.5281, allocations: 8.031 kB / 0.5708 GB, free: 11.41 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001538/0.5297, allocations: 123.6 kB / 0.5709 GB, free: 11.29 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004409/0.5302, allocations: 266.3 kB / 0.5711 GB, free: 11.01 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.039e-05/0.5302, allocations: 15.81 kB / 0.5712 GB, free: 11 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.144e-05/0.5302, allocations: 19.62 kB / 0.5712 GB, free: 10.98 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004858/0.5307, allocations: 309.8 kB / 0.5715 GB, free: 10.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.5308, allocations: 0 / 0.5715 GB, free: 10.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.899e-05/0.5308, allocations: 7.875 kB / 0.5715 GB, free: 10.73 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.203e-05/0.5308, allocations: 27.86 kB / 0.5715 GB, free: 10.7 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004433/0.5313, allocations: 284.3 kB / 0.5718 GB, free: 10.51 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001676/0.533, allocations: 1.282 MB / 0.573 GB, free: 9.285 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003447/0.5333, allocations: 201.3 kB / 0.5732 GB, free: 9.074 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.535e-05/0.5334, allocations: 37.41 kB / 0.5733 GB, free: 9.039 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.214e-05/0.5335, allocations: 0 / 0.5733 GB, free: 9.039 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.981e-05/0.5335, allocations: 46.62 kB / 0.5733 GB, free: 8.988 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.623e-06/0.5335, allocations: 0 / 0.5733 GB, free: 8.988 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002853/0.5338, allocations: 108.8 kB / 0.5734 GB, free: 8.891 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.347e-05/0.5339, allocations: 81.11 kB / 0.5735 GB, free: 8.793 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001848/0.5341, allocations: 189.7 kB / 0.5737 GB, free: 8.625 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.615e-05/0.5341, allocations: 25.7 kB / 0.5737 GB, free: 8.594 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.945e-05/0.5342, allocations: 174.6 kB / 0.5739 GB, free: 8.441 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.926e-05/0.5342, allocations: 31.14 kB / 0.5739 GB, free: 8.414 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.033e-06/0.5343, allocations: 11.94 kB / 0.5739 GB, free: 8.406 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.5344, allocations: 322.8 kB / 0.5742 GB, free: 8.086 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.363e-05/0.5344, allocations: 39.67 kB / 0.5742 GB, free: 8.059 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001271/0.5346, allocations: 135.8 kB / 0.5744 GB, free: 7.895 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001009/0.5347, allocations: 67.23 kB / 0.5744 GB, free: 7.844 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.5347, allocations: 0 / 0.5744 GB, free: 7.844 MB / 378.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002777/0.535, allocations: 200 kB / 0.5746 GB, free: 7.672 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.535, allocations: 8.094 kB / 0.5746 GB, free: 7.664 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.535, allocations: 3.938 kB / 0.5746 GB, free: 7.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.063e-05/0.5351, allocations: 8 kB / 0.5747 GB, free: 7.652 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001605/0.5352, allocations: 51.72 kB / 0.5747 GB, free: 7.605 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/0.5352, allocations: 4 kB / 0.5747 GB, free: 7.602 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000115/0.5354, allocations: 23.69 kB / 0.5747 GB, free: 7.582 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.537e-05/0.5354, allocations: 12.25 kB / 0.5747 GB, free: 7.57 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (23): * Single equations (assignments): 23 * 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 7.313e-05/0.5355, allocations: 128.5 kB / 0.5749 GB, free: 7.441 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.549e-05/0.5355, allocations: 15.81 kB / 0.5749 GB, free: 7.426 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001928/0.5357, allocations: 119.4 kB / 0.575 GB, free: 7.328 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.5357, allocations: 0 / 0.575 GB, free: 7.328 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.5357, allocations: 0 / 0.575 GB, free: 7.328 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.5357, allocations: 4 kB / 0.575 GB, free: 7.324 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006756/0.5364, allocations: 0.57 MB / 0.5756 GB, free: 6.734 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.5364, allocations: 0 / 0.5756 GB, free: 6.734 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.745e-05/0.5365, allocations: 19.94 kB / 0.5756 GB, free: 6.715 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.272e-06/0.5365, allocations: 12.3 kB / 0.5756 GB, free: 6.703 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.182e-05/0.5365, allocations: 4 kB / 0.5756 GB, free: 6.699 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.5366, allocations: 4 kB / 0.5756 GB, free: 6.695 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/0.5366, allocations: 7.953 kB / 0.5756 GB, free: 6.688 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003257/0.5369, allocations: 393.8 kB / 0.576 GB, free: 6.23 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.888e-05/0.537, allocations: 99.67 kB / 0.5761 GB, free: 6.117 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.999e-05/0.537, allocations: 8.047 kB / 0.5761 GB, free: 6.109 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001084/0.5371, allocations: 11.56 kB / 0.5761 GB, free: 6.102 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.921e-05/0.5372, allocations: 23.88 kB / 0.5761 GB, free: 6.078 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.458e-06/0.5372, allocations: 4 kB / 0.5761 GB, free: 6.074 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001174/0.5373, allocations: 155 kB / 0.5763 GB, free: 5.945 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5373, allocations: 0 / 0.5763 GB, free: 5.945 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003473/0.5377, allocations: 54.84 kB / 0.5763 GB, free: 5.895 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 simulation (11): * Single equations (assignments): 10 * 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.0001354/0.5378, allocations: 106.6 kB / 0.5764 GB, free: 5.781 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001896/0.538, allocations: 112.7 kB / 0.5765 GB, free: 5.691 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.538, allocations: 2.812 kB / 0.5765 GB, free: 5.691 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.496e-05/0.5381, allocations: 42.8 kB / 0.5766 GB, free: 5.656 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002727/0.5384, allocations: 33.75 kB / 0.5766 GB, free: 5.633 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005038/0.5389, allocations: 314 kB / 0.5769 GB, free: 5.309 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003377/0.5392, allocations: 0.7652 MB / 0.5776 GB, free: 4.527 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001094/0.5394, allocations: 41.45 kB / 0.5777 GB, free: 4.488 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.365e-05/0.5394, allocations: 15.44 kB / 0.5777 GB, free: 4.473 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5394, allocations: 0 / 0.5777 GB, free: 4.473 MB / 378.7 MB Notification: Performance of Templates: time 0.003542/0.543, allocations: 1.125 MB / 0.5788 GB, free: 3.355 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.PMeterTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches