Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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_PowerSystems_Examples_Generic_Test_PMeterTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.PMeterTest,fileNamePrefix="PowerSystems_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.0008882/0.0008879, allocations: 87.02 kB / 16.31 MB, free: 6.457 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.001163/0.001163, allocations: 180.2 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.642/1.642, allocations: 205.4 MB / 223.4 MB, free: 5.578 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3265/0.3265, allocations: 38.06 MB / 309.7 MB, free: 8.871 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005085/0.0005086, allocations: 12 kB / 376.6 MB, free: 15.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1189, allocations: 56.34 MB / 433 MB, free: 6.609 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.004009/0.1229, allocations: 3.171 MB / 436.1 MB, free: 3.422 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002012/0.125, allocations: 1.518 MB / 437.6 MB, free: 1.895 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001277/0.1251, allocations: 7.938 kB / 437.6 MB, free: 1.887 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001643/0.1253, allocations: 35.7 kB / 437.7 MB, free: 1.852 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005257/0.1258, allocations: 231.1 kB / 437.9 MB, free: 1.625 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002305/0.1261, allocations: 91.75 kB / 438 MB, free: 1.535 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004184/0.1265, allocations: 434.8 kB / 438.4 MB, free: 1.109 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005688/0.1271, allocations: 315.1 kB / 438.7 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001739/0.1273, allocations: 115.4 kB / 438.8 MB, free: 0.668 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002032/0.1275, allocations: 147.5 kB / 439 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.069e-05/0.1275, allocations: 12 kB / 439 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000308/0.1278, allocations: 183.5 kB / 439.2 MB, free: 340 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.595e-05/0.1279, allocations: 87.75 kB / 439.3 MB, free: 252 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.619e-05/0.128, allocations: 65.58 kB / 439.3 MB, free: 180 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002869/0.1283, allocations: 247.4 kB / 439.6 MB, free: 15.93 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1283, allocations: 0 / 439.6 MB, free: 15.93 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1283, allocations: 0 / 439.6 MB, free: 15.93 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.488e-06/0.1283, allocations: 0 / 439.6 MB, free: 15.93 MB / 382.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.0005701/0.1289, allocations: 498.5 kB / 440.1 MB, free: 15.4 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.1289, allocations: 11.97 kB / 440.1 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.56e-05/0.129, allocations: 62.48 kB / 440.1 MB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007919/0.1298, allocations: 103.6 kB / 440.2 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002703/0.1301, allocations: 259.1 kB / 440.5 MB, free: 14.92 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.316e-05/0.1301, allocations: 12 kB / 440.5 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.444e-05/0.1301, allocations: 20 kB / 440.5 MB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004419/0.1306, allocations: 322.2 kB / 440.8 MB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.1306, allocations: 4 kB / 440.8 MB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.337e-05/0.1306, allocations: 7.953 kB / 440.8 MB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.901e-05/0.1307, allocations: 15.98 kB / 440.9 MB, free: 14.53 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004202/0.1311, allocations: 307.7 kB / 441.2 MB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001509/0.1326, allocations: 1.293 MB / 442.4 MB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002987/0.1329, allocations: 202.5 kB / 442.6 MB, free: 12.6 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.346e-05/0.133, allocations: 37.77 kB / 442.7 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.003e-05/0.133, allocations: 0 / 442.7 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.581e-05/0.1331, allocations: 42.55 kB / 442.7 MB, free: 12.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.152e-06/0.1331, allocations: 0 / 442.7 MB, free: 12.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.000295/0.1334, allocations: 137.3 kB / 442.9 MB, free: 12.36 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.41e-05/0.1334, allocations: 81.23 kB / 442.9 MB, free: 12.27 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001801/0.1336, allocations: 211.8 kB / 443.1 MB, free: 12.05 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.697e-05/0.1336, allocations: 29.7 kB / 443.2 MB, free: 12.02 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001029/0.1338, allocations: 171.5 kB / 443.3 MB, free: 11.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.75e-05/0.1338, allocations: 35.53 kB / 443.4 MB, free: 11.81 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.302e-06/0.1338, allocations: 4 kB / 443.4 MB, free: 11.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.1339, allocations: 326.8 kB / 443.7 MB, free: 11.48 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.039e-05/0.134, allocations: 43.91 kB / 443.7 MB, free: 11.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001192/0.1341, allocations: 132.8 kB / 443.9 MB, free: 11.26 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.562e-05/0.1342, allocations: 64.3 kB / 443.9 MB, free: 11.2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1342, allocations: 0 / 443.9 MB, free: 11.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002787/0.1345, allocations: 213 kB / 444.1 MB, free: 10.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.1345, allocations: 8 kB / 444.2 MB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.1345, allocations: 4 kB / 444.2 MB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.1346, allocations: 4 kB / 444.2 MB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000151/0.1347, allocations: 44.36 kB / 444.2 MB, free: 10.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.1347, allocations: 11.98 kB / 444.2 MB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001054/0.1349, allocations: 23.8 kB / 444.2 MB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.439e-05/0.1349, allocations: 11.98 kB / 444.2 MB, free: 10.88 MB / 382.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.000129/0.135, allocations: 157.7 kB / 444.4 MB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.576e-05/0.1351, allocations: 15.81 kB / 444.4 MB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000199/0.1353, allocations: 119 kB / 444.5 MB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.1353, allocations: 0 / 444.5 MB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.1353, allocations: 0 / 444.5 MB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.1353, allocations: 8 kB / 444.5 MB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006642/0.136, allocations: 0.5722 MB / 445.1 MB, free: 9.906 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.136, allocations: 4 kB / 445.1 MB, free: 9.902 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.331e-05/0.1361, allocations: 27.88 kB / 445.1 MB, free: 9.875 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.1361, allocations: 4 kB / 445.1 MB, free: 9.871 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.275e-05/0.1361, allocations: 4 kB / 445.2 MB, free: 9.867 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.1361, allocations: 4 kB / 445.2 MB, free: 9.863 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.1361, allocations: 64 / 445.2 MB, free: 9.863 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002568/0.1364, allocations: 291.9 kB / 445.4 MB, free: 9.531 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.1e-05/0.1365, allocations: 92.92 kB / 445.5 MB, free: 9.422 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.041e-05/0.1365, allocations: 7.953 kB / 445.5 MB, free: 9.414 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001087/0.1366, allocations: 11.98 kB / 445.6 MB, free: 9.402 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.467e-05/0.1366, allocations: 7.938 kB / 445.6 MB, free: 9.395 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.868e-06/0.1367, allocations: 4 kB / 445.6 MB, free: 9.391 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001133/0.1368, allocations: 153.5 kB / 445.7 MB, free: 9.242 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1368, allocations: 4 kB / 445.7 MB, free: 9.238 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003577/0.1371, allocations: 55.84 kB / 445.8 MB, free: 9.184 MB / 382.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.0004877/0.1376, allocations: 0.8143 MB / 446.6 MB, free: 8.312 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002067/0.1379, allocations: 119.7 kB / 446.7 MB, free: 8.195 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1379, allocations: 0 / 446.7 MB, free: 8.195 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 6.729e-05/0.1379, allocations: 45.36 kB / 446.7 MB, free: 8.152 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003773/0.1383, allocations: 35.84 kB / 446.8 MB, free: 8.117 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001546/0.1399, allocations: 1.208 MB / 448 MB, free: 6.785 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003188/0.1402, allocations: 0.7557 MB / 448.7 MB, free: 6 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001086/0.1403, allocations: 41.55 kB / 448.8 MB, free: 5.957 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.139e-05/0.1404, allocations: 59.41 kB / 448.8 MB, free: 5.898 MB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1404, allocations: 0 / 448.8 MB, free: 5.898 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01326/0.1537, allocations: 2.983 MB / 451.8 MB, free: 2.906 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001955/0.1539, allocations: 196.1 kB / 452 MB, free: 2.648 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.695/1.849, allocations: 4 kB / 452 MB, free: 2.645 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.PMeterTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.PMeterTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Generic_Test_PMeterTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Test_PMeterTest.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.PMeterTest.pipe 2>&1) Environment - environmentSimulation: