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.001718/0.001718, 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.741/1.741, allocations: 205.3 MB / 214.1 MB, free: 14.13 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.001033/0.001033, allocations: 79 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1736/0.1736, allocations: 37.99 MB / 348 MB, free: 7.777 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.656e-05/1.659e-05, allocations: 4 kB / 410.6 MB, free: 46.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1077, allocations: 56.33 MB / 466.9 MB, free: 6.57 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3741/0.4819, allocations: 94.6 MB / 0.5483 GB, free: 364 kB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002974/0.4822, allocations: 84.7 kB / 0.5484 GB, free: 280 kB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.045/0.5273, allocations: 14.52 MB / 0.5626 GB, free: 1.602 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.5273, allocations: 0 / 0.5626 GB, free: 1.602 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.132e-05/0.5274, allocations: 4 kB / 0.5626 GB, free: 1.598 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0009398/0.5283, allocations: 486.2 kB / 0.5631 GB, free: 1.078 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.933e-05/0.5284, allocations: 8.031 kB / 0.5631 GB, free: 1.07 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001484/0.5299, allocations: 119.6 kB / 0.5632 GB, free: 0.9531 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005016/0.5304, allocations: 267.2 kB / 0.5634 GB, free: 0.6484 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.32e-05/0.5305, allocations: 4 kB / 0.5634 GB, free: 0.6445 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.265e-05/0.5305, allocations: 12 kB / 0.5635 GB, free: 0.6328 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004814/0.531, allocations: 204.3 kB / 0.5637 GB, free: 444 kB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005511/0.5316, allocations: 282.4 kB / 0.5639 GB, free: 132 kB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/0.5316, allocations: 4 kB / 0.5639 GB, free: 128 kB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.398e-05/0.5316, allocations: 0 / 0.5639 GB, free: 128 kB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.139e-05/0.5317, allocations: 19.92 kB / 0.5639 GB, free: 108 kB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002239/0.5339, allocations: 1.291 MB / 0.5652 GB, free: 14.73 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004385/0.5344, allocations: 214.2 kB / 0.5654 GB, free: 14.48 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.54e-05/0.5345, allocations: 41.78 kB / 0.5655 GB, free: 14.44 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.272e-05/0.5346, allocations: 7.984 kB / 0.5655 GB, free: 14.43 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.446e-05/0.5346, allocations: 34.56 kB / 0.5655 GB, free: 14.39 MB / 411.1 MB Notification: Performance of pre-optimization done (n=12): time 2.154e-06/0.5346, allocations: 0 / 0.5655 GB, free: 14.39 MB / 411.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003591/0.535, allocations: 117.6 kB / 0.5656 GB, free: 14.27 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.553e-05/0.535, allocations: 81.11 kB / 0.5657 GB, free: 14.17 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000204/0.5353, allocations: 163.1 kB / 0.5658 GB, free: 14 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 2.403e-05/0.5353, allocations: 25.7 kB / 0.5659 GB, free: 13.97 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001423/0.5354, allocations: 167.7 kB / 0.566 GB, free: 13.8 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.033e-05/0.5355, allocations: 35.45 kB / 0.5661 GB, free: 13.77 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.536e-06/0.5355, allocations: 0 / 0.5661 GB, free: 13.77 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.5357, allocations: 330.8 kB / 0.5664 GB, free: 13.43 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.849e-05/0.5358, allocations: 40.03 kB / 0.5664 GB, free: 13.39 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001571/0.5359, allocations: 124.9 kB / 0.5665 GB, free: 13.23 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001319/0.5361, allocations: 59.91 kB / 0.5666 GB, free: 13.17 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.5361, allocations: 4 kB / 0.5666 GB, free: 13.16 MB / 411.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003727/0.5365, allocations: 193 kB / 0.5668 GB, free: 12.97 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.394e-05/0.5365, allocations: 8 kB / 0.5668 GB, free: 12.96 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/0.5365, allocations: 4.438 kB / 0.5668 GB, free: 12.96 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.604e-05/0.5366, allocations: 8 kB / 0.5668 GB, free: 12.95 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000239/0.5368, allocations: 43.92 kB / 0.5668 GB, free: 12.91 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.627e-05/0.5368, allocations: 11.98 kB / 0.5668 GB, free: 12.89 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001571/0.537, allocations: 11.84 kB / 0.5669 GB, free: 12.88 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.365e-05/0.537, allocations: 12 kB / 0.5669 GB, free: 12.87 MB / 411.1 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 (24): * Single equations (assignments): 24 * 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.000111/0.5372, allocations: 112.9 kB / 0.567 GB, free: 12.75 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.496e-05/0.5372, allocations: 19.77 kB / 0.567 GB, free: 12.73 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003078/0.5375, allocations: 124.1 kB / 0.5671 GB, free: 12.61 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.177e-06/0.5376, allocations: 8 kB / 0.5671 GB, free: 12.6 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/0.5376, allocations: 0 / 0.5671 GB, free: 12.6 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.5376, allocations: 3.938 kB / 0.5671 GB, free: 12.6 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007886/0.5384, allocations: 470.1 kB / 0.5676 GB, free: 12.08 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.5384, allocations: 4 kB / 0.5676 GB, free: 12.08 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001518/0.5386, allocations: 40.11 kB / 0.5676 GB, free: 12.04 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.5386, allocations: 0 / 0.5676 GB, free: 12.04 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.713e-05/0.5386, allocations: 4 kB / 0.5676 GB, free: 12.04 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.5386, allocations: 0 / 0.5676 GB, free: 12.04 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.174e-06/0.5386, allocations: 4 kB / 0.5676 GB, free: 12.03 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003915/0.539, allocations: 312.1 kB / 0.5679 GB, free: 11.66 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.854e-05/0.5391, allocations: 92.88 kB / 0.568 GB, free: 11.55 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.635e-05/0.5392, allocations: 4 kB / 0.568 GB, free: 11.55 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001449/0.5393, allocations: 4 kB / 0.568 GB, free: 11.55 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.262e-05/0.5394, allocations: 7.984 kB / 0.568 GB, free: 11.54 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.724e-05/0.5394, allocations: 12 kB / 0.568 GB, free: 11.53 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0001266/0.5395, allocations: 131.1 kB / 0.5682 GB, free: 11.4 MB / 411.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5396, allocations: 0 / 0.5682 GB, free: 11.4 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0005303/0.5401, allocations: 55.84 kB / 0.5682 GB, free: 11.34 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (13): * Single equations (assignments): 12 * 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.0001619/0.5403, allocations: 108.9 kB / 0.5683 GB, free: 11.23 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0002607/0.5405, allocations: 107.8 kB / 0.5684 GB, free: 11.12 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.5405, allocations: 0 / 0.5684 GB, free: 11.12 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001013/0.5407, allocations: 43.92 kB / 0.5685 GB, free: 11.08 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003718/0.541, allocations: 36.08 kB / 0.5685 GB, free: 11.05 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007073/0.5418, allocations: 275.7 kB / 0.5688 GB, free: 10.74 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004382/0.5422, allocations: 0.7592 MB / 0.5695 GB, free: 9.957 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.0001712/0.5424, allocations: 49.8 kB / 0.5695 GB, free: 9.906 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.642e-05/0.5425, allocations: 19.44 kB / 0.5696 GB, free: 9.887 MB / 411.1 MB Notification: Performance of SimCode: time 3.41e-07/0.5425, allocations: 0 / 0.5696 GB, free: 9.887 MB / 411.1 MB Notification: Performance of Templates: time 0.004699/0.5472, allocations: 1.088 MB / 0.5706 GB, free: 8.801 MB / 411.1 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