Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.Frequency.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.Introductory.Frequency,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Frequency",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Frequency,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Frequency",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.0008462/0.0008464, allocations: 92.25 kB / 16.32 MB, free: 5.621 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.0008735/0.0008735, allocations: 181.2 kB / 17.21 MB, free: 5.539 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.524/1.524, allocations: 205.4 MB / 223.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3362/0.3362, allocations: 38.06 MB / 309.7 MB, free: 8.777 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.0004622/0.0004623, allocations: 14.19 kB / 376.6 MB, free: 15.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1384/0.1388, allocations: 56.34 MB / 433 MB, free: 6.598 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.006277/0.1451, allocations: 6.103 MB / 439.1 MB, free: 480 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003034/0.1482, allocations: 1.544 MB / 440.6 MB, free: 14.92 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004656/0.1487, allocations: 47.62 kB / 440.6 MB, free: 14.87 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003362/0.1491, allocations: 107.1 kB / 440.8 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001042/0.1501, allocations: 381.8 kB / 441.1 MB, free: 14.39 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005473/0.1507, allocations: 199.7 kB / 441.3 MB, free: 14.2 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008524/0.1515, allocations: 0.7824 MB / 442.1 MB, free: 13.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002809/0.1518, allocations: 130.5 kB / 442.2 MB, free: 13.28 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000384/0.1522, allocations: 254.8 kB / 442.5 MB, free: 13.03 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004893/0.1527, allocations: 322.9 kB / 442.8 MB, free: 12.71 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.451e-05/0.1528, allocations: 20 kB / 442.8 MB, free: 12.69 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.708e-05/0.1528, allocations: 20 kB / 442.8 MB, free: 12.67 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001542/0.153, allocations: 135.6 kB / 443 MB, free: 12.54 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001164/0.1531, allocations: 113.5 kB / 443.1 MB, free: 12.42 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003578/0.1535, allocations: 366.9 kB / 443.4 MB, free: 12.06 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.1535, allocations: 0 / 443.4 MB, free: 12.06 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.1535, allocations: 0 / 443.4 MB, free: 12.06 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.285e-06/0.1535, allocations: 0 / 443.4 MB, free: 12.06 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001301/0.1548, allocations: 0.7151 MB / 444.1 MB, free: 11.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.1549, allocations: 8.031 kB / 444.2 MB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001079/0.155, allocations: 74.53 kB / 444.2 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.721e-05/0.1551, allocations: 59.34 kB / 444.3 MB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006144/0.1557, allocations: 415.3 kB / 444.7 MB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.649e-05/0.1558, allocations: 29 kB / 444.7 MB, free: 10.67 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.13e-05/0.1558, allocations: 36 kB / 444.8 MB, free: 10.63 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006623/0.1565, allocations: 459.5 kB / 445.2 MB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.185e-05/0.1565, allocations: 0 / 445.2 MB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.769e-05/0.1566, allocations: 23.88 kB / 445.2 MB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.958e-05/0.1566, allocations: 8 kB / 445.2 MB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004657/0.1571, allocations: 308.5 kB / 445.5 MB, free: 9.812 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001881/0.159, allocations: 1.775 MB / 447.3 MB, free: 7.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002076/0.1592, allocations: 139.7 kB / 447.4 MB, free: 7.766 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.884e-05/0.1593, allocations: 50.62 kB / 447.5 MB, free: 7.707 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.919e-05/0.1593, allocations: 8 kB / 447.5 MB, free: 7.699 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.873e-05/0.1593, allocations: 38.5 kB / 447.5 MB, free: 7.652 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.382e-06/0.1594, allocations: 0 / 447.5 MB, free: 7.652 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.001012/0.1604, allocations: 0.6044 MB / 448.1 MB, free: 6.992 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001155/0.1605, allocations: 114.9 kB / 448.3 MB, free: 6.855 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003706/0.1609, allocations: 369.5 kB / 448.6 MB, free: 6.488 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.933e-05/0.1609, allocations: 29.7 kB / 448.7 MB, free: 6.453 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001833/0.1611, allocations: 279.3 kB / 448.9 MB, free: 6.176 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.288e-05/0.1612, allocations: 59.2 kB / 449 MB, free: 6.117 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.028e-05/0.1612, allocations: 4 kB / 449 MB, free: 6.113 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.1613, allocations: 354.8 kB / 449.3 MB, free: 5.758 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.185e-05/0.1614, allocations: 43.97 kB / 449.4 MB, free: 5.715 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001867/0.1616, allocations: 199.1 kB / 449.6 MB, free: 5.453 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001296/0.1617, allocations: 71.94 kB / 449.6 MB, free: 5.383 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.1618, allocations: 4 kB / 449.6 MB, free: 5.379 MB / 382.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003958/0.1622, allocations: 284.8 kB / 449.9 MB, free: 5.094 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.1622, allocations: 8 kB / 449.9 MB, free: 5.086 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.1622, allocations: 8 kB / 449.9 MB, free: 5.078 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.839e-05/0.1622, allocations: 8.625 kB / 449.9 MB, free: 5.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002512/0.1625, allocations: 75.84 kB / 450 MB, free: 4.996 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.227e-05/0.1625, allocations: 11.98 kB / 450 MB, free: 4.984 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001495/0.1627, allocations: 12 kB / 450 MB, free: 4.973 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.102e-05/0.1627, allocations: 19.94 kB / 450.1 MB, free: 4.953 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (37): * Single equations (assignments): 37 * 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.0001972/0.1629, allocations: 185.6 kB / 450.2 MB, free: 4.762 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.103e-05/0.163, allocations: 39.53 kB / 450.3 MB, free: 4.723 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002768/0.1633, allocations: 160.8 kB / 450.4 MB, free: 4.555 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.1633, allocations: 4 kB / 450.4 MB, free: 4.551 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.1633, allocations: 4 kB / 450.4 MB, free: 4.547 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.1633, allocations: 7.938 kB / 450.5 MB, free: 4.539 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006519/0.164, allocations: 0.5264 MB / 451 MB, free: 3.953 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.164, allocations: 4 kB / 451 MB, free: 3.949 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001775/0.1642, allocations: 35.97 kB / 451 MB, free: 3.914 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.1642, allocations: 0 / 451 MB, free: 3.914 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.908e-05/0.1642, allocations: 8 kB / 451 MB, free: 3.906 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.1642, allocations: 3.938 kB / 451 MB, free: 3.902 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1642, allocations: 32 / 451 MB, free: 3.902 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004227/0.1646, allocations: 396.3 kB / 451.4 MB, free: 3.492 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.109e-05/0.1647, allocations: 116.6 kB / 451.5 MB, free: 3.359 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.948e-05/0.1648, allocations: 0 / 451.5 MB, free: 3.359 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001569/0.1649, allocations: 8 kB / 451.5 MB, free: 3.352 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.491e-05/0.165, allocations: 15.92 kB / 451.6 MB, free: 3.336 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.306e-05/0.165, allocations: 8 kB / 451.6 MB, free: 3.328 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002487/0.1653, allocations: 251.2 kB / 451.8 MB, free: 3.086 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1653, allocations: 0 / 451.8 MB, free: 3.086 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004075/0.1657, allocations: 75.95 kB / 451.9 MB, free: 3.012 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind1.i,voltage2.theta,ind2.i) * 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 (18): * Single equations (assignments): 17 * 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.00073/0.1664, allocations: 0.9202 MB / 452.8 MB, free: 2.059 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002768/0.1667, allocations: 152.9 kB / 453 MB, free: 1.91 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.1667, allocations: 4.438 kB / 453 MB, free: 1.906 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.217e-05/0.1668, allocations: 52.33 kB / 453 MB, free: 1.855 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006858/0.1675, allocations: 93.73 kB / 453.1 MB, free: 1.766 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2434/0.4109, allocations: 2.302 MB / 455.4 MB, free: 50.94 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003363/0.4113, allocations: 0.8472 MB / 456.2 MB, free: 50.25 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002199/0.4115, allocations: 45.78 kB / 456.3 MB, free: 50.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001831/0.4117, allocations: 149.3 kB / 456.4 MB, free: 50.24 MB / 382.1 MB Notification: Performance of SimCode: time 1.563e-06/0.4117, allocations: 0 / 456.4 MB, free: 50.24 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02224/0.434, allocations: 6.642 MB / 463.1 MB, free: 49.82 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001739/0.4342, allocations: 174.8 kB / 463.3 MB, free: 49.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.908/2.342, allocations: 0 / 463.3 MB, free: 49.59 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.Frequency.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_Frequency_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_Frequency.fmu > PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1) Environment - environmentSimulation: