Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Machines",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.001363/0.001363, allocations: 107.9 kB / 16.92 MB, free: 5.895 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.001337/0.001337, allocations: 191.3 kB / 17.85 MB, free: 5.195 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.347/1.347, allocations: 222.9 MB / 241.6 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1792/0.1792, allocations: 38.02 MB / 329.7 MB, free: 8.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002365/0.002365, allocations: 70.12 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1027, allocations: 58.06 MB / 457 MB, free: 7.941 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.008378/0.1112, allocations: 5.373 MB / 462.3 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00662/0.1178, allocations: 4.164 MB / 466.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006714/0.1186, allocations: 15.94 kB / 466.5 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009355/0.1279, allocations: 4.838 MB / 471.4 MB, free: 9.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001118/0.1291, allocations: 354.3 kB / 471.7 MB, free: 9.152 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007039/0.1298, allocations: 243.5 kB / 471.9 MB, free: 8.914 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002137/0.1319, allocations: 1.571 MB / 473.5 MB, free: 7.336 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006581/0.1326, allocations: 380.2 kB / 473.9 MB, free: 6.965 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005989/0.1332, allocations: 374.6 kB / 474.2 MB, free: 6.598 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007009/0.134, allocations: 446.3 kB / 474.7 MB, free: 6.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000129/0.1341, allocations: 44 kB / 474.7 MB, free: 6.117 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003393/0.1344, allocations: 123.8 kB / 474.8 MB, free: 5.996 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003085/0.1348, allocations: 283.3 kB / 475.1 MB, free: 5.719 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004117/0.1352, allocations: 318.4 kB / 475.4 MB, free: 5.406 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008195/0.136, allocations: 0.7319 MB / 476.2 MB, free: 4.672 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.136, allocations: 0 / 476.2 MB, free: 4.672 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.136, allocations: 0 / 476.2 MB, free: 4.672 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.247e-05/0.1361, allocations: 0 / 476.2 MB, free: 4.672 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.002054/0.1381, allocations: 0.9094 MB / 477.1 MB, free: 3.711 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.176e-05/0.1382, allocations: 15.89 kB / 477.1 MB, free: 3.695 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001488/0.1384, allocations: 86.7 kB / 477.2 MB, free: 3.602 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005232/0.1389, allocations: 100 kB / 477.3 MB, free: 3.504 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001055/0.14, allocations: 0.5291 MB / 477.8 MB, free: 2.934 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.446e-05/0.14, allocations: 44.98 kB / 477.8 MB, free: 2.891 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.985e-05/0.1401, allocations: 51.84 kB / 477.9 MB, free: 2.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009657/0.1411, allocations: 0.6453 MB / 478.5 MB, free: 2.156 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.433e-05/0.1411, allocations: 8 kB / 478.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.435e-05/0.1412, allocations: 19.98 kB / 478.6 MB, free: 2.129 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001502/0.1413, allocations: 44.97 kB / 478.6 MB, free: 2.086 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008376/0.1422, allocations: 495.6 kB / 479.1 MB, free: 1.598 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004135/0.1463, allocations: 2.531 MB / 481.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005203/0.1469, allocations: 319.5 kB / 481.9 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002837/0.1472, allocations: 187 kB / 482.1 MB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.248e-05/0.1472, allocations: 8.5 kB / 482.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.733e-05/0.1473, allocations: 30.56 kB / 482.2 MB, free: 14.35 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 2.855e-06/0.1473, allocations: 0 / 482.2 MB, free: 14.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002842/0.1501, allocations: 1.643 MB / 483.8 MB, free: 12.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.884e-05/0.1502, allocations: 110.8 kB / 483.9 MB, free: 12.44 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004935/0.1507, allocations: 421.8 kB / 484.3 MB, free: 12.02 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.675e-05/0.1508, allocations: 33.7 kB / 484.4 MB, free: 11.98 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002228/0.151, allocations: 303.6 kB / 484.7 MB, free: 11.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001205/0.1511, allocations: 126.2 kB / 484.8 MB, free: 11.56 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001291/0.1513, allocations: 86.25 kB / 484.9 MB, free: 11.47 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.1514, allocations: 362.7 kB / 485.2 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002587/0.1517, allocations: 169 kB / 485.4 MB, free: 10.94 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003347/0.152, allocations: 297.8 kB / 485.7 MB, free: 10.59 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008104/0.1528, allocations: 495.7 kB / 486.2 MB, free: 10.05 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.1528, allocations: 0 / 486.2 MB, free: 10.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001451/0.1543, allocations: 0.7995 MB / 487 MB, free: 9.215 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.1543, allocations: 8 kB / 487 MB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.1544, allocations: 8 kB / 487 MB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006423/0.155, allocations: 209.5 kB / 487.2 MB, free: 8.988 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000321/0.1553, allocations: 75.88 kB / 487.3 MB, free: 8.914 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004303/0.1596, allocations: 4.226 MB / 491.5 MB, free: 4.406 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003121/0.16, allocations: 19.98 kB / 491.5 MB, free: 4.387 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.016e-05/0.16, allocations: 31.92 kB / 491.5 MB, free: 4.355 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002798/0.1603, allocations: 225.9 kB / 491.7 MB, free: 4.125 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.1604, allocations: 51.42 kB / 491.8 MB, free: 4.074 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009141/0.1613, allocations: 0.634 MB / 492.4 MB, free: 3.395 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.67e-06/0.1614, allocations: 4 kB / 492.4 MB, free: 3.391 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.1614, allocations: 0 / 492.4 MB, free: 3.391 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.1614, allocations: 4 kB / 492.4 MB, free: 3.387 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001603/0.163, allocations: 1.191 MB / 493.6 MB, free: 2.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.163, allocations: 0 / 493.6 MB, free: 2.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004463/0.1635, allocations: 75.89 kB / 493.7 MB, free: 2.016 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001528/0.1636, allocations: 57.83 kB / 493.8 MB, free: 1.953 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.235e-05/0.1637, allocations: 15.97 kB / 493.8 MB, free: 1.938 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001893/0.1656, allocations: 2.835 MB / 496.6 MB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1656, allocations: 4.031 kB / 496.6 MB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001116/0.1667, allocations: 0.953 MB / 497.6 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001628/0.1669, allocations: 144.5 kB / 497.7 MB, free: 13.63 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.06e-05/0.167, allocations: 11.98 kB / 497.7 MB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002635/0.1672, allocations: 12 kB / 497.7 MB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.187e-05/0.1673, allocations: 27.89 kB / 497.8 MB, free: 13.58 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.79e-05/0.1673, allocations: 12 kB / 497.8 MB, free: 13.57 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003071/0.1676, allocations: 295.1 kB / 498.1 MB, free: 13.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1677, allocations: 0 / 498.1 MB, free: 13.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005856/0.1682, allocations: 132 kB / 498.2 MB, free: 13.16 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asynchron.i[3],asynchron.phi_el,asynchron.psi_s[1],asynchron.psi_s[2],asynchron.psi_rd[1],asynchron.psi_rq[1],rotor.w) * 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 (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001356/0.1696, allocations: 1.506 MB / 499.7 MB, free: 11.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00135/0.171, allocations: 0.786 MB / 0.4888 GB, free: 10.76 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.171, allocations: 4 kB / 0.4888 GB, free: 10.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005226/0.1715, allocations: 425.9 kB / 0.4892 GB, free: 10.31 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007356/0.1723, allocations: 119.5 kB / 0.4893 GB, free: 10.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007299/0.1796, allocations: 5.612 MB / 0.4948 GB, free: 4.332 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006013/0.1802, allocations: 0.9405 MB / 0.4957 GB, free: 3.367 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003747/0.1806, allocations: 108.4 kB / 0.4958 GB, free: 3.258 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002957/0.1809, allocations: 199.3 kB / 0.496 GB, free: 3.062 MB / 382.1 MB Notification: Performance of SimCode: time 7.62e-07/0.1809, allocations: 0 / 0.496 GB, free: 3.062 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03911/0.22, allocations: 11.97 MB / 0.5077 GB, free: 7.234 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.74, allocations: 7.188 kB / 0.5077 GB, free: 7.23 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Machines.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe 2>&1)