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.001282/0.001282, allocations: 95.08 kB / 16.3 MB, free: 6.457 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.001324/0.001324, allocations: 184.5 kB / 17.19 MB, free: 6.34 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.587/1.587, allocations: 205.4 MB / 223.3 MB, free: 13.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.184/0.184, allocations: 38.03 MB / 309.7 MB, free: 6.145 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.0005787/0.0005788, allocations: 20 kB / 376.5 MB, free: 3.223 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3128/0.3134, allocations: 56.33 MB / 432.8 MB, free: 19.01 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.004762/0.3182, allocations: 4.387 MB / 437.2 MB, free: 14.6 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002501/0.3207, allocations: 1.599 MB / 438.8 MB, free: 12.99 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005526/0.3213, allocations: 27.81 kB / 438.8 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004926/0.3218, allocations: 111.4 kB / 438.9 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001113/0.323, allocations: 279.1 kB / 439.2 MB, free: 12.58 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004947/0.3235, allocations: 127.7 kB / 439.3 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006711/0.3242, allocations: 327.2 kB / 439.6 MB, free: 12.14 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002452/0.3244, allocations: 105.8 kB / 439.7 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002765/0.3247, allocations: 155.4 kB / 439.9 MB, free: 11.88 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002762/0.325, allocations: 159.4 kB / 440.1 MB, free: 11.73 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.228e-05/0.3251, allocations: 12 kB / 440.1 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.164e-05/0.3251, allocations: 16 kB / 440.1 MB, free: 11.7 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.518e-05/0.3252, allocations: 79.73 kB / 440.2 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001206/0.3254, allocations: 97.45 kB / 440.3 MB, free: 11.52 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003175/0.3257, allocations: 275.3 kB / 440.5 MB, free: 11.25 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.3257, allocations: 4 kB / 440.5 MB, free: 11.25 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.3257, allocations: 0 / 440.5 MB, free: 11.25 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.829e-05/0.3257, allocations: 0 / 440.5 MB, free: 11.25 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.00107/0.3268, allocations: 0.593 MB / 441.1 MB, free: 10.61 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.3269, allocations: 8.031 kB / 441.1 MB, free: 10.6 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001138/0.327, allocations: 47.42 kB / 441.2 MB, free: 10.55 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006829/0.3277, allocations: 370.7 kB / 441.5 MB, free: 10.15 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.006e-05/0.3277, allocations: 20.56 kB / 441.6 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.906e-05/0.3278, allocations: 28 kB / 441.6 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004747/0.3283, allocations: 334.2 kB / 441.9 MB, free: 9.742 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.079e-05/0.3283, allocations: 0 / 441.9 MB, free: 9.742 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.555e-05/0.3284, allocations: 12 kB / 441.9 MB, free: 9.73 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.3284, allocations: 11.98 kB / 441.9 MB, free: 9.719 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003278/0.3287, allocations: 205.5 kB / 442.1 MB, free: 9.516 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001644/0.3304, allocations: 1.494 MB / 443.6 MB, free: 7.926 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000383/0.3308, allocations: 194.3 kB / 443.8 MB, free: 7.699 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.719e-05/0.3308, allocations: 4.125 kB / 443.8 MB, free: 7.695 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.573e-05/0.3308, allocations: 38.5 kB / 443.9 MB, free: 7.648 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.974e-06/0.3308, allocations: 0 / 443.9 MB, free: 7.648 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.001023/0.3319, allocations: 0.6739 MB / 444.5 MB, free: 6.918 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.425e-05/0.3319, allocations: 136.5 kB / 444.7 MB, free: 6.754 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002768/0.3322, allocations: 318 kB / 445 MB, free: 6.438 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.76e-05/0.3322, allocations: 25.7 kB / 445 MB, free: 6.406 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000146/0.3324, allocations: 227.7 kB / 445.2 MB, free: 6.176 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.431e-05/0.3325, allocations: 67.09 kB / 445.3 MB, free: 6.109 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.666e-06/0.3325, allocations: 4 kB / 445.3 MB, free: 6.105 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.3326, allocations: 342.8 kB / 445.6 MB, free: 5.762 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.396e-05/0.3327, allocations: 51.91 kB / 445.7 MB, free: 5.711 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001304/0.3328, allocations: 144.8 kB / 445.8 MB, free: 5.523 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001126/0.3329, allocations: 71.94 kB / 445.9 MB, free: 5.453 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.3329, allocations: 0 / 445.9 MB, free: 5.453 MB / 318.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003247/0.3333, allocations: 261 kB / 446.1 MB, free: 5.191 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.318e-05/0.3333, allocations: 8 kB / 446.2 MB, free: 5.184 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.3333, allocations: 0 / 446.2 MB, free: 5.184 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-05/0.3333, allocations: 11.95 kB / 446.2 MB, free: 5.172 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003425/0.3337, allocations: 80.33 kB / 446.2 MB, free: 5.094 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006627/0.3344, allocations: 1.282 MB / 447.5 MB, free: 3.676 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000144/0.3345, allocations: 28.27 kB / 447.6 MB, free: 3.648 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.792e-05/0.3345, allocations: 12 kB / 447.6 MB, free: 3.637 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001559/0.3347, allocations: 165.8 kB / 447.7 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.364e-05/0.3348, allocations: 35.56 kB / 447.8 MB, free: 3.43 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002865/0.3351, allocations: 184.4 kB / 447.9 MB, free: 3.238 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.3351, allocations: 3.953 kB / 447.9 MB, free: 3.234 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-06/0.3351, allocations: 4 kB / 448 MB, free: 3.23 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.3351, allocations: 3.938 kB / 448 MB, free: 3.227 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006363/0.3358, allocations: 0.5375 MB / 448.5 MB, free: 2.633 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.3358, allocations: 0 / 448.5 MB, free: 2.633 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002027/0.336, allocations: 43.92 kB / 448.5 MB, free: 2.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.336, allocations: 7.953 kB / 448.5 MB, free: 2.582 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.668e-05/0.336, allocations: 4 kB / 448.5 MB, free: 2.578 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.336, allocations: 0 / 448.5 MB, free: 2.578 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.336, allocations: 0 / 448.5 MB, free: 2.578 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004095/0.3364, allocations: 0.5273 MB / 449.1 MB, free: 2.012 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.977e-05/0.3365, allocations: 112.7 kB / 449.2 MB, free: 1.883 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.311e-05/0.3366, allocations: 8 kB / 449.2 MB, free: 1.875 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001917/0.3368, allocations: 4 kB / 449.2 MB, free: 1.871 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.024e-05/0.3368, allocations: 11.98 kB / 449.2 MB, free: 1.859 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.22e-05/0.3368, allocations: 8 kB / 449.2 MB, free: 1.852 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001794/0.337, allocations: 223.2 kB / 449.4 MB, free: 1.637 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.337, allocations: 3.938 kB / 449.4 MB, free: 1.633 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003961/0.3374, allocations: 56 kB / 449.5 MB, free: 1.578 MB / 318.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 (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.0001466/0.3376, allocations: 107.7 kB / 449.6 MB, free: 1.465 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003205/0.3379, allocations: 159.7 kB / 449.8 MB, free: 1.309 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3379, allocations: 0 / 449.8 MB, free: 1.309 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.662e-05/0.338, allocations: 63.92 kB / 449.8 MB, free: 1.246 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000543/0.3386, allocations: 82.38 kB / 449.9 MB, free: 1.164 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001205/0.3398, allocations: 1.005 MB / 450.9 MB, free: 132 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003698/0.3401, allocations: 0.8148 MB / 451.7 MB, free: 15.29 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002014/0.3404, allocations: 50.94 kB / 451.8 MB, free: 15.23 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.612e-05/0.3404, allocations: 31.44 kB / 451.8 MB, free: 15.2 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3404, allocations: 0 / 451.8 MB, free: 15.2 MB / 334.1 MB Notification: Performance of Templates: time 0.006677/0.3471, allocations: 2.941 MB / 454.7 MB, free: 12.28 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: