Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.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: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001555/0.001555, allocations: 105.9 kB / 16.5 MB, free: 6.688 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.001845/0.001845, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.441/1.441, allocations: 222.9 MB / 241.1 MB, free: 15.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1761/0.1761, allocations: 38.03 MB / 329.3 MB, free: 9.039 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00237/0.00237, allocations: 56.5 kB / 398.1 MB, free: 34.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1243, allocations: 58.06 MB / 456.1 MB, free: 8.516 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.006877/0.1312, allocations: 5.169 MB / 461.3 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002413/0.1337, allocations: 1.698 MB / 463 MB, free: 1.609 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002565/0.134, allocations: 27.81 kB / 463 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004274/0.1344, allocations: 91.42 kB / 463.1 MB, free: 1.492 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005852/0.135, allocations: 258.7 kB / 463.4 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002548/0.1353, allocations: 91.91 kB / 463.5 MB, free: 1.148 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007827/0.1361, allocations: 0.6423 MB / 464.1 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002293/0.1363, allocations: 139.4 kB / 464.3 MB, free: 376 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002281/0.1365, allocations: 175.1 kB / 464.4 MB, free: 200 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002968/0.1368, allocations: 219 kB / 464.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.947e-05/0.1369, allocations: 20 kB / 464.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.65e-05/0.137, allocations: 16 kB / 464.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001186/0.1371, allocations: 95.72 kB / 464.8 MB, free: 15.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001838/0.1373, allocations: 175 kB / 464.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000378/0.1377, allocations: 370.7 kB / 465.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1377, allocations: 0 / 465.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.31e-07/0.1377, allocations: 0 / 465.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.1377, allocations: 0 / 465.3 MB, free: 15.32 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001058/0.1388, allocations: 0.6554 MB / 466 MB, free: 14.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.1388, allocations: 12.03 kB / 466 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.619e-05/0.1389, allocations: 40.47 kB / 466 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006299/0.1396, allocations: 387.6 kB / 466.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000104/0.1397, allocations: 24.5 kB / 466.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.577e-05/0.1397, allocations: 28 kB / 466.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005409/0.1403, allocations: 334.2 kB / 466.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.788e-05/0.1403, allocations: 0 / 466.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.183e-05/0.1404, allocations: 12 kB / 466.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.579e-05/0.1404, allocations: 8 kB / 466.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003595/0.1407, allocations: 205.5 kB / 467 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002035/0.1428, allocations: 1.49 MB / 468.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004563/0.1433, allocations: 198.2 kB / 468.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001302/0.1434, allocations: 83.53 kB / 468.7 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.972e-05/0.1434, allocations: 3.984 kB / 468.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.912e-05/0.1435, allocations: 34.56 kB / 468.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.683e-06/0.1435, allocations: 0 / 468.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001294/0.1448, allocations: 0.6854 MB / 469.5 MB, free: 10.81 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.541e-05/0.1449, allocations: 132.5 kB / 469.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003898/0.1453, allocations: 321.5 kB / 469.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.156e-05/0.1453, allocations: 29.7 kB / 469.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000186/0.1455, allocations: 215.8 kB / 470.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.437e-05/0.1456, allocations: 71.02 kB / 470.2 MB, free: 10 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.549e-05/0.1457, allocations: 61.88 kB / 470.3 MB, free: 9.938 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.1458, allocations: 338.8 kB / 470.6 MB, free: 9.598 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.091e-05/0.1459, allocations: 47.97 kB / 470.7 MB, free: 9.551 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001522/0.1461, allocations: 152.8 kB / 470.8 MB, free: 9.355 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000258/0.1464, allocations: 212.7 kB / 471 MB, free: 9.102 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1464, allocations: 7.938 kB / 471 MB, free: 9.094 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003616/0.1467, allocations: 256.1 kB / 471.3 MB, free: 8.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.1468, allocations: 8 kB / 471.3 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.1468, allocations: 4.438 kB / 471.3 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.1468, allocations: 11.94 kB / 471.3 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003597/0.1472, allocations: 79.89 kB / 471.4 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000961/0.1481, allocations: 1.286 MB / 472.7 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001446/0.1483, allocations: 11.98 kB / 472.7 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.059e-05/0.1483, allocations: 12 kB / 472.7 MB, free: 7.293 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001764/0.1485, allocations: 161.8 kB / 472.8 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001513/0.1487, allocations: 35.56 kB / 472.9 MB, free: 7.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003841/0.149, allocations: 192.4 kB / 473.1 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.1491, allocations: 4 kB / 473.1 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.934e-06/0.1491, allocations: 0 / 473.1 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.1491, allocations: 0 / 473.1 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008084/0.1499, allocations: 0.5412 MB / 473.6 MB, free: 6.293 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1499, allocations: 0 / 473.6 MB, free: 6.293 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002304/0.1501, allocations: 47.92 kB / 473.7 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.574e-06/0.1502, allocations: 0 / 473.7 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.922e-05/0.1502, allocations: 8.031 kB / 473.7 MB, free: 6.238 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.1502, allocations: 0 / 473.7 MB, free: 6.238 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.1502, allocations: 4 kB / 473.7 MB, free: 6.234 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005461/0.1507, allocations: 494.4 kB / 474.2 MB, free: 5.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.817e-05/0.1508, allocations: 112.7 kB / 474.3 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.493e-05/0.1509, allocations: 8 kB / 474.3 MB, free: 5.594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001936/0.1511, allocations: 4 kB / 474.3 MB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.015e-05/0.1511, allocations: 11.98 kB / 474.3 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.272e-05/0.1511, allocations: 8.094 kB / 474.3 MB, free: 5.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002099/0.1513, allocations: 223.1 kB / 474.5 MB, free: 5.359 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1514, allocations: 0 / 474.5 MB, free: 5.359 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004023/0.1518, allocations: 63.98 kB / 474.6 MB, free: 5.297 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.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 (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002699/0.152, allocations: 107.2 kB / 474.7 MB, free: 5.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000351/0.1524, allocations: 155.8 kB / 474.8 MB, free: 5.027 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.1524, allocations: 3.938 kB / 474.8 MB, free: 5.023 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001166/0.1525, allocations: 71.95 kB / 474.9 MB, free: 4.957 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007568/0.1533, allocations: 84.19 kB / 475 MB, free: 4.875 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001586/0.1549, allocations: 0.9537 MB / 475.9 MB, free: 3.887 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004126/0.1553, allocations: 0.7993 MB / 476.7 MB, free: 3.062 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001989/0.1555, allocations: 50.92 kB / 476.8 MB, free: 3.012 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.666e-05/0.1556, allocations: 27.44 kB / 476.8 MB, free: 2.984 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1556, allocations: 4 kB / 476.8 MB, free: 2.98 MB / 350.1 MB Notification: Performance of Templates: time 0.007576/0.1632, allocations: 3.056 MB / 479.9 MB, free: 15.96 MB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1)