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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.PMeterTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.PMeterTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001423/0.001423, allocations: 87.19 kB / 16.31 MB, free: 5.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001477/0.001477, allocations: 189.2 kB / 17.21 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.446/1.446, allocations: 223.3 MB / 241.2 MB, free: 14.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1897/0.1897, allocations: 38.1 MB / 330.4 MB, free: 8.598 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003316/0.0003318, allocations: 8 kB / 400.2 MB, free: 34.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1404, allocations: 59.16 MB / 459.3 MB, free: 7.27 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.00381/0.1443, allocations: 3.182 MB / 462.5 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00209/0.1464, allocations: 1.462 MB / 464 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001598/0.1466, allocations: 11.94 kB / 464 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001828/0.1468, allocations: 43.69 kB / 464 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006334/0.1474, allocations: 215.2 kB / 464.2 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002964/0.1477, allocations: 103.7 kB / 464.3 MB, free: 2.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004473/0.1482, allocations: 446.8 kB / 464.8 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006148/0.1488, allocations: 299.2 kB / 465.1 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002194/0.149, allocations: 123.4 kB / 465.2 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002223/0.1493, allocations: 139.5 kB / 465.3 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.29e-05/0.1493, allocations: 8 kB / 465.3 MB, free: 1.215 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003726/0.1497, allocations: 171.5 kB / 465.5 MB, free: 1.047 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001048/0.1498, allocations: 99.73 kB / 465.6 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.38e-05/0.1499, allocations: 57.64 kB / 465.7 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003175/0.1502, allocations: 259.3 kB / 465.9 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.1502, allocations: 0 / 465.9 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1502, allocations: 0 / 465.9 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.1502, allocations: 4 kB / 465.9 MB, free: 0.6289 MB / 334.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.0006469/0.1509, allocations: 478.6 kB / 466.4 MB, free: 116 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.1509, allocations: 8.031 kB / 466.4 MB, free: 108 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.044e-05/0.151, allocations: 62.47 kB / 466.4 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008639/0.1519, allocations: 103.7 kB / 466.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003265/0.1522, allocations: 257.2 kB / 466.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.802e-05/0.1522, allocations: 15.91 kB / 466.8 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.728e-05/0.1523, allocations: 19.98 kB / 466.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000628/0.1529, allocations: 322.3 kB / 467.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.9e-05/0.153, allocations: 3.984 kB / 467.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.19e-05/0.153, allocations: 8 kB / 467.2 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.49e-05/0.153, allocations: 19.98 kB / 467.2 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005304/0.1536, allocations: 295.7 kB / 467.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002098/0.1557, allocations: 1.289 MB / 468.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004021/0.1561, allocations: 202.3 kB / 469 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.926e-05/0.1562, allocations: 45.77 kB / 469 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.464e-05/0.1563, allocations: 3.953 kB / 469 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.381e-05/0.1563, allocations: 34.69 kB / 469 MB, free: 13.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 2.184e-06/0.1563, allocations: 11.94 kB / 469.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003623/0.1567, allocations: 137.4 kB / 469.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.633e-05/0.1568, allocations: 81.11 kB / 469.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00026/0.157, allocations: 211.7 kB / 469.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.874e-05/0.1571, allocations: 25.7 kB / 469.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001597/0.1572, allocations: 171.6 kB / 469.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.615e-05/0.1573, allocations: 27.56 kB / 469.7 MB, free: 12.53 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.012e-05/0.1573, allocations: 7.938 kB / 469.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001895/0.1575, allocations: 338.9 kB / 470 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.563e-05/0.1576, allocations: 31.98 kB / 470.1 MB, free: 12.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001785/0.1577, allocations: 132.8 kB / 470.2 MB, free: 11.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001099/0.1579, allocations: 67.92 kB / 470.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.1579, allocations: 0 / 470.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003097/0.1582, allocations: 201.1 kB / 470.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.804e-05/0.1582, allocations: 12.39 kB / 470.5 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/0.1582, allocations: 4.047 kB / 470.5 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.119e-05/0.1583, allocations: 11.98 kB / 470.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001814/0.1585, allocations: 51.98 kB / 470.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.96e-05/0.1585, allocations: 7.938 kB / 470.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001273/0.1586, allocations: 27.67 kB / 470.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.053e-05/0.1587, allocations: 12 kB / 470.6 MB, free: 11.58 MB / 350.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 () * 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.0001686/0.1588, allocations: 150.2 kB / 470.7 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.633e-05/0.1589, allocations: 15.81 kB / 470.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002191/0.1591, allocations: 130.9 kB / 470.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.135e-06/0.1591, allocations: 4 kB / 470.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.1591, allocations: 0 / 470.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.1591, allocations: 0 / 470.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000689/0.1598, allocations: 0.5759 MB / 471.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.1598, allocations: 4 kB / 471.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.882e-05/0.1599, allocations: 16 kB / 471.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.1599, allocations: 4 kB / 471.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.788e-06/0.1599, allocations: 0 / 471.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.16, allocations: 7.984 kB / 471.5 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.16, allocations: 7.938 kB / 471.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002712/0.1602, allocations: 296 kB / 471.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.272e-05/0.1603, allocations: 92.92 kB / 471.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.359e-05/0.1604, allocations: 8 kB / 471.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.1605, allocations: 0 / 471.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.414e-05/0.1605, allocations: 19.94 kB / 471.9 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.029e-05/0.1605, allocations: 8 kB / 471.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00013/0.1607, allocations: 157.5 kB / 472.1 MB, free: 9.938 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1607, allocations: 0 / 472.1 MB, free: 9.938 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003452/0.161, allocations: 47.94 kB / 472.1 MB, free: 9.891 MB / 350.1 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.0005915/0.1616, allocations: 0.8104 MB / 472.9 MB, free: 9.023 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002859/0.1619, allocations: 111.8 kB / 473 MB, free: 8.914 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.1619, allocations: 0 / 473 MB, free: 8.914 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.498e-05/0.162, allocations: 49.34 kB / 473.1 MB, free: 8.867 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005102/0.1625, allocations: 43.06 kB / 473.1 MB, free: 8.828 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002046/0.1646, allocations: 1.201 MB / 474.3 MB, free: 7.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003598/0.165, allocations: 0.748 MB / 475.1 MB, free: 6.727 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001133/0.1651, allocations: 37.52 kB / 475.1 MB, free: 6.688 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.248e-05/0.1652, allocations: 63.41 kB / 475.2 MB, free: 6.629 MB / 350.1 MB Notification: Performance of SimCode: time 9.41e-07/0.1652, allocations: 0 / 475.2 MB, free: 6.629 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01346/0.1787, allocations: 3.003 MB / 478.2 MB, free: 3.754 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001787/0.1789, allocations: 189.5 kB / 478.3 MB, free: 3.512 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.768/1.947, allocations: 64 / 478.3 MB, free: 3.512 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest_res.mat does not exist to compare? outputFormat=mat