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 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: 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.0009143/0.0009144, allocations: 88.66 kB / 16.65 MB, free: 6.535 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.001009/0.001009, allocations: 175.4 kB / 17.56 MB, free: 6.184 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.514/1.514, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1713/0.1713, allocations: 38.04 MB / 310.1 MB, free: 5.918 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.0005396/0.0005397, allocations: 15.28 kB / 377.2 MB, free: 2.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2404/0.241, allocations: 56.33 MB / 433.5 MB, free: 18.69 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.004556/0.2456, allocations: 4.779 MB / 438.3 MB, free: 13.88 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002137/0.2477, allocations: 1.703 MB / 440 MB, free: 12.17 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002459/0.248, allocations: 31.75 kB / 440 MB, free: 12.14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003983/0.2484, allocations: 103.3 kB / 440.1 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004869/0.2489, allocations: 242.7 kB / 440.3 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002153/0.2491, allocations: 99.91 kB / 440.4 MB, free: 11.7 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006433/0.2498, allocations: 0.6384 MB / 441.1 MB, free: 11.06 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002146/0.25, allocations: 127.5 kB / 441.2 MB, free: 10.94 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001866/0.2502, allocations: 171.2 kB / 441.4 MB, free: 10.77 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002564/0.2505, allocations: 203.1 kB / 441.6 MB, free: 10.57 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.14e-05/0.2505, allocations: 16 kB / 441.6 MB, free: 10.56 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.43e-05/0.2506, allocations: 16 kB / 441.6 MB, free: 10.54 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.849e-05/0.2507, allocations: 91.59 kB / 441.7 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000149/0.2508, allocations: 192.8 kB / 441.9 MB, free: 10.26 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002888/0.2511, allocations: 358.5 kB / 442.2 MB, free: 9.906 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2511, allocations: 0 / 442.2 MB, free: 9.906 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.327e-06/0.2512, allocations: 4 kB / 442.2 MB, free: 9.902 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.2512, allocations: 3.938 kB / 442.2 MB, free: 9.898 MB / 318.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.0007722/0.252, allocations: 0.5933 MB / 442.8 MB, free: 9.258 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.017e-05/0.252, allocations: 8.031 kB / 442.8 MB, free: 9.25 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.109e-05/0.2521, allocations: 40.47 kB / 442.9 MB, free: 9.211 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004133/0.2525, allocations: 387.6 kB / 443.3 MB, free: 8.793 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.161e-05/0.2525, allocations: 28.5 kB / 443.3 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.123e-05/0.2526, allocations: 24 kB / 443.3 MB, free: 8.742 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003763/0.2529, allocations: 334.2 kB / 443.6 MB, free: 8.379 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.253, allocations: 0 / 443.6 MB, free: 8.379 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.459e-05/0.253, allocations: 12 kB / 443.6 MB, free: 8.367 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.253, allocations: 11.94 kB / 443.7 MB, free: 8.355 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002615/0.2533, allocations: 201.5 kB / 443.9 MB, free: 8.156 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001184/0.2545, allocations: 1.498 MB / 445.3 MB, free: 6.562 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003337/0.2548, allocations: 198.5 kB / 445.5 MB, free: 6.332 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.401e-05/0.2549, allocations: 83.34 kB / 445.6 MB, free: 6.238 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.385e-05/0.2549, allocations: 0 / 445.6 MB, free: 6.238 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.926e-05/0.255, allocations: 34.56 kB / 445.7 MB, free: 6.195 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.633e-06/0.255, allocations: 3.984 kB / 445.7 MB, free: 6.191 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.0008812/0.2559, allocations: 0.6743 MB / 446.3 MB, free: 5.461 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.69e-05/0.2559, allocations: 136.5 kB / 446.5 MB, free: 5.297 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002235/0.2561, allocations: 321.6 kB / 446.8 MB, free: 4.977 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.408e-05/0.2562, allocations: 25.7 kB / 446.8 MB, free: 4.945 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.367e-05/0.2563, allocations: 223.7 kB / 447 MB, free: 4.719 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.789e-05/0.2563, allocations: 67.09 kB / 447.1 MB, free: 4.652 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.276e-05/0.2563, allocations: 29.7 kB / 447.1 MB, free: 4.617 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.31e-05/0.2564, allocations: 342.9 kB / 447.5 MB, free: 4.273 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.021e-05/0.2565, allocations: 51.97 kB / 447.5 MB, free: 4.223 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001094/0.2566, allocations: 148.9 kB / 447.7 MB, free: 4.031 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002059/0.2568, allocations: 216.9 kB / 447.9 MB, free: 3.773 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2569, allocations: 0 / 447.9 MB, free: 3.773 MB / 318.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002848/0.2571, allocations: 260.9 kB / 448.1 MB, free: 3.512 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.2572, allocations: 8 kB / 448.1 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.2572, allocations: 0 / 448.1 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.2572, allocations: 12.38 kB / 448.1 MB, free: 3.492 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003216/0.2575, allocations: 79.89 kB / 448.2 MB, free: 3.414 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005521/0.2581, allocations: 1.29 MB / 449.5 MB, free: 1.992 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000129/0.2582, allocations: 8 kB / 449.5 MB, free: 1.984 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.658e-05/0.2582, allocations: 19.98 kB / 449.5 MB, free: 1.965 MB / 318.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.0001222/0.2584, allocations: 165.6 kB / 449.7 MB, free: 1.793 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.199e-05/0.2585, allocations: 35.56 kB / 449.7 MB, free: 1.758 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002521/0.2587, allocations: 184.5 kB / 449.9 MB, free: 1.566 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.2587, allocations: 4.125 kB / 449.9 MB, free: 1.562 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.2587, allocations: 4 kB / 449.9 MB, free: 1.559 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.2587, allocations: 3.938 kB / 449.9 MB, free: 1.555 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005876/0.2593, allocations: 0.5373 MB / 450.5 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.2594, allocations: 3.984 kB / 450.5 MB, free: 0.957 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002021/0.2596, allocations: 43.92 kB / 450.5 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.2596, allocations: 4 kB / 450.5 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.299e-05/0.2596, allocations: 0 / 450.5 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.2596, allocations: 8 kB / 450.5 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2596, allocations: 0 / 450.5 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003409/0.2599, allocations: 0.4915 MB / 451 MB, free: 400 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.977e-05/0.26, allocations: 100.7 kB / 451.1 MB, free: 280 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.742e-05/0.2601, allocations: 15.97 kB / 451.1 MB, free: 264 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001837/0.2603, allocations: 8 kB / 451.1 MB, free: 256 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.931e-05/0.2603, allocations: 7.984 kB / 451.1 MB, free: 248 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.033e-05/0.2603, allocations: 12 kB / 451.2 MB, free: 236 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001474/0.2605, allocations: 219.1 kB / 451.4 MB, free: 20 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2605, allocations: 0 / 451.4 MB, free: 20 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004097/0.2609, allocations: 64.05 kB / 451.4 MB, free: 15.95 MB / 334.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.0001123/0.261, allocations: 102.7 kB / 451.5 MB, free: 15.85 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003525/0.2614, allocations: 171.8 kB / 451.7 MB, free: 15.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.2614, allocations: 0 / 451.7 MB, free: 15.68 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001062/0.2615, allocations: 67.86 kB / 451.8 MB, free: 15.62 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007484/0.2622, allocations: 94.33 kB / 451.9 MB, free: 15.52 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001549/0.2638, allocations: 1.036 MB / 452.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003598/0.2642, allocations: 0.7993 MB / 453.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001753/0.2644, allocations: 58.86 kB / 453.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.008e-05/0.2644, allocations: 27.44 kB / 453.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2644, allocations: 4 kB / 453.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of Templates: time 0.006398/0.2708, allocations: 3.025 MB / 456.8 MB, free: 10.52 MB / 334.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: