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.0009454/0.0009455, allocations: 177.2 kB / 17.4 MB, free: 4.277 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.464/1.464, allocations: 205.4 MB / 223.5 MB, free: 9.008 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.0008066/0.0008064, allocations: 93.55 kB / 271.9 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1714/0.1714, allocations: 38.07 MB / 358.2 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005419/0.000542, allocations: 12 kB / 425.2 MB, free: 37.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3856/0.3862, allocations: 56.31 MB / 481.6 MB, free: 9.598 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1952/0.5814, allocations: 95.39 MB / 0.5634 GB, free: 6.867 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003509/0.5818, allocations: 91.8 kB / 0.5635 GB, free: 6.781 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05761/0.6394, allocations: 14.7 MB / 0.5779 GB, free: 7.906 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.946e-06/0.6395, allocations: 0 / 0.5779 GB, free: 7.906 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.197e-05/0.6395, allocations: 4 kB / 0.5779 GB, free: 7.902 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.001023/0.6406, allocations: 0.4912 MB / 0.5784 GB, free: 7.359 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.502e-05/0.6407, allocations: 12.03 kB / 0.5784 GB, free: 7.348 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001529/0.6422, allocations: 112.6 kB / 0.5785 GB, free: 7.238 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005318/0.6427, allocations: 276.3 kB / 0.5787 GB, free: 6.93 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.237e-05/0.6428, allocations: 12.38 kB / 0.5787 GB, free: 6.918 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.121e-05/0.6429, allocations: 16.38 kB / 0.5788 GB, free: 6.902 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000765/0.6436, allocations: 318.4 kB / 0.5791 GB, free: 6.566 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.6437, allocations: 0 / 0.5791 GB, free: 6.566 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.281e-05/0.6437, allocations: 23.97 kB / 0.5791 GB, free: 6.543 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.574e-05/0.6438, allocations: 12 kB / 0.5791 GB, free: 6.531 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007492/0.6445, allocations: 291.7 kB / 0.5794 GB, free: 6.246 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002505/0.6471, allocations: 1.281 MB / 0.5806 GB, free: 4.863 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004829/0.6476, allocations: 194.6 kB / 0.5808 GB, free: 4.637 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001318/0.6477, allocations: 53.52 kB / 0.5809 GB, free: 4.578 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.152e-05/0.6478, allocations: 4 kB / 0.5809 GB, free: 4.574 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.777e-05/0.6478, allocations: 38.56 kB / 0.5809 GB, free: 4.527 MB / 410.7 MB Notification: Performance of pre-optimization done (n=10): time 2.244e-06/0.6478, allocations: 0 / 0.5809 GB, free: 4.527 MB / 410.7 MB Notification: Performance of matching and sorting (n=10): time 0.0004647/0.6483, allocations: 133.4 kB / 0.581 GB, free: 4.391 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.806e-05/0.6484, allocations: 85.05 kB / 0.5811 GB, free: 4.289 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003184/0.6487, allocations: 207.8 kB / 0.5813 GB, free: 4.078 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.936e-05/0.6488, allocations: 25.7 kB / 0.5813 GB, free: 4.047 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001733/0.649, allocations: 175.7 kB / 0.5815 GB, free: 3.871 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.797e-05/0.649, allocations: 35.47 kB / 0.5815 GB, free: 3.836 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.148e-05/0.649, allocations: 4 kB / 0.5815 GB, free: 3.832 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.6492, allocations: 330.8 kB / 0.5819 GB, free: 3.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001087/0.6494, allocations: 35.98 kB / 0.5819 GB, free: 3.465 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002124/0.6496, allocations: 136.7 kB / 0.582 GB, free: 3.285 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003553/0.6499, allocations: 192.6 kB / 0.5822 GB, free: 3.051 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.65, allocations: 0 / 0.5822 GB, free: 3.051 MB / 410.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004935/0.6505, allocations: 209.5 kB / 0.5824 GB, free: 2.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/0.6505, allocations: 8.562 kB / 0.5824 GB, free: 2.832 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.6505, allocations: 8 kB / 0.5824 GB, free: 2.824 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.574e-05/0.6506, allocations: 8 kB / 0.5824 GB, free: 2.816 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002725/0.6509, allocations: 43.92 kB / 0.5825 GB, free: 2.773 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.522e-05/0.6509, allocations: 7.938 kB / 0.5825 GB, free: 2.766 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002134/0.6511, allocations: 31.7 kB / 0.5825 GB, free: 2.734 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.584e-05/0.6512, allocations: 8 kB / 0.5825 GB, free: 2.727 MB / 410.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 () * Number of clocked 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 0.0002036/0.6514, allocations: 153.8 kB / 0.5827 GB, free: 2.566 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.854e-05/0.6515, allocations: 27.73 kB / 0.5827 GB, free: 2.539 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003209/0.6518, allocations: 119 kB / 0.5828 GB, free: 2.418 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.6518, allocations: 4 kB / 0.5828 GB, free: 2.414 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.6518, allocations: 0 / 0.5828 GB, free: 2.414 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.6518, allocations: 0 / 0.5828 GB, free: 2.414 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001198/0.653, allocations: 0.5758 MB / 0.5834 GB, free: 1.754 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.6531, allocations: 3.938 kB / 0.5834 GB, free: 1.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001279/0.6532, allocations: 19.94 kB / 0.5834 GB, free: 1.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.265e-06/0.6532, allocations: 4 kB / 0.5834 GB, free: 1.727 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.072e-05/0.6533, allocations: 8 kB / 0.5834 GB, free: 1.719 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.229e-05/0.6533, allocations: 12.23 kB / 0.5834 GB, free: 1.707 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.366e-06/0.6533, allocations: 11.94 kB / 0.5834 GB, free: 1.695 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00043/0.6537, allocations: 267.9 kB / 0.5837 GB, free: 1.387 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001088/0.6539, allocations: 100.9 kB / 0.5838 GB, free: 1.27 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.252e-05/0.6539, allocations: 4 kB / 0.5838 GB, free: 1.266 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001969/0.6541, allocations: 7.938 kB / 0.5838 GB, free: 1.258 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.551e-05/0.6542, allocations: 15.98 kB / 0.5838 GB, free: 1.242 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.936e-05/0.6542, allocations: 8 kB / 0.5838 GB, free: 1.234 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000211/0.6544, allocations: 149.5 kB / 0.584 GB, free: 1.09 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.6545, allocations: 0 / 0.584 GB, free: 1.09 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006476/0.6551, allocations: 55.84 kB / 0.584 GB, free: 1.035 MB / 410.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 () * Number of clocked 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.0001956/0.6553, allocations: 119.1 kB / 0.5841 GB, free: 0.9102 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003453/0.6557, allocations: 115.8 kB / 0.5842 GB, free: 0.7969 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.6557, allocations: 0 / 0.5842 GB, free: 0.7969 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001209/0.6558, allocations: 45.3 kB / 0.5843 GB, free: 0.7539 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007147/0.6566, allocations: 31.92 kB / 0.5843 GB, free: 0.7227 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001139/0.6577, allocations: 0.5145 MB / 0.5848 GB, free: 152 kB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004922/0.6582, allocations: 0.7518 MB / 0.5855 GB, free: 15.37 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0002127/0.6585, allocations: 41.52 kB / 0.5856 GB, free: 15.33 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.387e-05/0.6585, allocations: 15.72 kB / 0.5856 GB, free: 15.32 MB / 426.7 MB Notification: Performance of SimCode: time 4.61e-07/0.6585, allocations: 0 / 0.5856 GB, free: 15.32 MB / 426.7 MB Notification: Performance of Templates: time 0.005928/0.6645, allocations: 1.127 MB / 0.5867 GB, free: 14.2 MB / 426.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/jenkins1/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