Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.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.ReferenceSynchron,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceSynchron,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron",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.001105/0.001113, allocations: 93.53 kB / 16.3 MB, free: 5.996 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.001255/0.001255, allocations: 184.3 kB / 17.2 MB, free: 5.914 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.902/1.902, allocations: 205.4 MB / 223.4 MB, free: 5.551 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.4352/0.4352, allocations: 38.05 MB / 309.7 MB, free: 8.934 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.0005246/0.0005246, allocations: 14.19 kB / 376.6 MB, free: 15.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1239, allocations: 56.34 MB / 432.9 MB, free: 6.613 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.004571/0.1285, allocations: 4.293 MB / 437.2 MB, free: 2.297 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002372/0.1309, allocations: 1.583 MB / 438.8 MB, free: 0.707 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002428/0.1312, allocations: 23.81 kB / 438.8 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001859/0.1314, allocations: 71.5 kB / 438.9 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005402/0.132, allocations: 215.4 kB / 439.1 MB, free: 412 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005903/0.1326, allocations: 227.4 kB / 439.3 MB, free: 184 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004482/0.133, allocations: 291.8 kB / 439.6 MB, free: 15.89 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009864/0.134, allocations: 0.5153 MB / 440.1 MB, free: 15.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003525/0.1344, allocations: 183.3 kB / 440.3 MB, free: 15.16 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004602/0.1349, allocations: 247.3 kB / 440.5 MB, free: 14.92 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.339e-05/0.1349, allocations: 20 kB / 440.6 MB, free: 14.9 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004201/0.1353, allocations: 159.7 kB / 440.7 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002327/0.1356, allocations: 203.5 kB / 440.9 MB, free: 14.55 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001319/0.1357, allocations: 105.5 kB / 441 MB, free: 14.44 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006022/0.1363, allocations: 0.491 MB / 441.5 MB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1364, allocations: 0 / 441.5 MB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.1364, allocations: 4 kB / 441.5 MB, free: 13.94 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.387e-05/0.1364, allocations: 0 / 441.5 MB, free: 13.94 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001426/0.1378, allocations: 0.6919 MB / 442.2 MB, free: 13.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.107e-05/0.1379, allocations: 8.031 kB / 442.2 MB, free: 13.19 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001368/0.138, allocations: 94.5 kB / 442.3 MB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005777/0.1386, allocations: 87.28 kB / 442.4 MB, free: 13 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006886/0.1393, allocations: 402.1 kB / 442.8 MB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.11e-05/0.1394, allocations: 29 kB / 442.8 MB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001289/0.1395, allocations: 47.94 kB / 442.9 MB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009121/0.1404, allocations: 0.6725 MB / 443.5 MB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.1405, allocations: 3.938 kB / 443.5 MB, free: 11.78 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.384e-05/0.1405, allocations: 16 kB / 443.6 MB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001686/0.1407, allocations: 56.89 kB / 443.6 MB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009071/0.1416, allocations: 0.6596 MB / 444.3 MB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003628/0.1452, allocations: 2.524 MB / 446.8 MB, free: 8.398 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005319/0.1458, allocations: 337.3 kB / 447.1 MB, free: 8.051 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.704e-05/0.1459, allocations: 4.062 kB / 447.1 MB, free: 8.047 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.057e-05/0.1459, allocations: 30.56 kB / 447.2 MB, free: 8.008 MB / 382.1 MB Notification: Performance of pre-optimization done (n=42): time 2.695e-06/0.1459, allocations: 4 kB / 447.2 MB, free: 8.004 MB / 382.1 MB Notification: Performance of matching and sorting (n=43): time 0.002107/0.148, allocations: 1.502 MB / 448.7 MB, free: 6.406 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.594e-05/0.1481, allocations: 85.09 kB / 448.7 MB, free: 6.305 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002858/0.1484, allocations: 300.4 kB / 449 MB, free: 6.004 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.713e-05/0.1484, allocations: 29.7 kB / 449.1 MB, free: 5.969 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000151/0.1486, allocations: 255.5 kB / 449.3 MB, free: 5.711 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001135/0.1487, allocations: 158 kB / 449.5 MB, free: 5.555 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.275e-05/0.1487, allocations: 15.98 kB / 449.5 MB, free: 5.539 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.1489, allocations: 346.8 kB / 449.8 MB, free: 5.191 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002692/0.1491, allocations: 193 kB / 450 MB, free: 5.004 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00037/0.1495, allocations: 357.2 kB / 450.4 MB, free: 4.586 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003481/0.1499, allocations: 261.3 kB / 450.6 MB, free: 4.332 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.1499, allocations: 4 kB / 450.6 MB, free: 4.328 MB / 382.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0008644/0.1508, allocations: 0.6225 MB / 451.2 MB, free: 3.699 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.1508, allocations: 4 kB / 451.2 MB, free: 3.695 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.1508, allocations: 8 kB / 451.3 MB, free: 3.688 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.03e-05/0.1508, allocations: 8 kB / 451.3 MB, free: 3.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004244/0.1513, allocations: 115.8 kB / 451.4 MB, free: 3.566 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.468e-05/0.1513, allocations: 11.98 kB / 451.4 MB, free: 3.555 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002278/0.1515, allocations: 24.39 kB / 451.4 MB, free: 3.531 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.964e-05/0.1516, allocations: 27.98 kB / 451.4 MB, free: 3.504 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 55 * Array equations: 2 * 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.000226/0.1518, allocations: 214.7 kB / 451.7 MB, free: 3.285 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.106e-05/0.1519, allocations: 35.61 kB / 451.7 MB, free: 3.25 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007143/0.1526, allocations: 492.2 kB / 452.2 MB, free: 2.762 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-05/0.1527, allocations: 19.98 kB / 452.2 MB, free: 2.742 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.1527, allocations: 3.953 kB / 452.2 MB, free: 2.738 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.1527, allocations: 0 / 452.2 MB, free: 2.738 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001632/0.1543, allocations: 1.085 MB / 453.3 MB, free: 1.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.1543, allocations: 4 kB / 453.3 MB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003432/0.1547, allocations: 71.89 kB / 453.3 MB, free: 1.516 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.206e-06/0.1547, allocations: 7.953 kB / 453.4 MB, free: 1.508 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.806e-05/0.1547, allocations: 11.98 kB / 453.4 MB, free: 1.496 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.1548, allocations: 4.094 kB / 453.4 MB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.1548, allocations: 11.88 kB / 453.4 MB, free: 1.48 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009953/0.1558, allocations: 0.8583 MB / 454.2 MB, free: 0.5703 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.679e-05/0.1559, allocations: 108.7 kB / 454.3 MB, free: 456 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.333e-05/0.1559, allocations: 8 kB / 454.4 MB, free: 448 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002022/0.1561, allocations: 15.98 kB / 454.4 MB, free: 432 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.57e-05/0.1562, allocations: 31.86 kB / 454.4 MB, free: 400 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.548e-05/0.1562, allocations: 11.98 kB / 454.4 MB, free: 388 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001995/0.1565, allocations: 215 kB / 454.6 MB, free: 172 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1565, allocations: 0 / 454.6 MB, free: 172 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004801/0.1569, allocations: 108 kB / 454.7 MB, free: 64 kB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (33): * Single equations (assignments): 30 * Array equations: 2 * 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.2245/0.3815, allocations: 1.677 MB / 456.4 MB, free: 50.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007669/0.3823, allocations: 487.3 kB / 456.9 MB, free: 50.55 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.3823, allocations: 0 / 456.9 MB, free: 50.55 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002708/0.3826, allocations: 227.7 kB / 457.1 MB, free: 50.55 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005402/0.3831, allocations: 61.38 kB / 457.2 MB, free: 50.55 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004127/0.3872, allocations: 6.261 MB / 463.4 MB, free: 46.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003204/0.3876, allocations: 0.884 MB / 464.3 MB, free: 45.53 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003288/0.3879, allocations: 125.5 kB / 464.4 MB, free: 45.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001893/0.3881, allocations: 147.3 kB / 464.6 MB, free: 45.51 MB / 382.1 MB Notification: Performance of SimCode: time 1.583e-06/0.3881, allocations: 0 / 464.6 MB, free: 45.51 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01883/0.407, allocations: 7.413 MB / 472 MB, free: 44.94 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001892/0.4072, allocations: 186 kB / 472.2 MB, free: 44.7 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.725/2.132, allocations: 0 / 472.2 MB, free: 44.7 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron.fmu > PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1) Environment - environmentSimulation: