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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.000946/0.000946, allocations: 188.6 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.304/1.304, allocations: 194.3 MB / 203.1 MB, free: 9.258 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001475/0.001475, allocations: 120.3 kB / 248.1 MB, free: 6.348 MB / 203.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1763/0.1763, allocations: 37.92 MB / 330.9 MB, free: 7.301 MB / 283.1 MB Notification: Performance of FrontEnd - loaded program: time 1.564e-05/1.569e-05, allocations: 4 kB / 390.4 MB, free: 78.23 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08808/0.08812, allocations: 53.24 MB / 443.6 MB, free: 25.11 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3647/0.4529, allocations: 91.84 MB / 0.5229 GB, free: 10.32 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002514/0.4532, allocations: 86.66 kB / 0.523 GB, free: 10.3 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02392/0.4771, allocations: 9.801 MB / 0.5325 GB, free: 6.512 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.4771, allocations: 0 / 0.5325 GB, free: 6.512 MB / 347.1 MB Notification: Performance of Transformations before backend: time 2.681e-05/0.4772, allocations: 7.531 kB / 0.5326 GB, free: 6.512 MB / 347.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.0008237/0.478, allocations: 0.5803 MB / 0.5331 GB, free: 6.023 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.4781, allocations: 11.66 kB / 0.5331 GB, free: 6.023 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001006/0.4782, allocations: 46.72 kB / 0.5332 GB, free: 5.996 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001241/0.4794, allocations: 0.602 MB / 0.5338 GB, free: 5.629 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.911e-05/0.4794, allocations: 15.39 kB / 0.5338 GB, free: 5.625 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.349e-05/0.4795, allocations: 15.5 kB / 0.5338 GB, free: 5.625 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002833/0.4798, allocations: 168.3 kB / 0.534 GB, free: 5.609 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003456/0.4801, allocations: 292.7 kB / 0.5342 GB, free: 5.41 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.751e-05/0.4802, allocations: 11.84 kB / 0.5342 GB, free: 5.398 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.356e-05/0.4802, allocations: 3.25 kB / 0.5342 GB, free: 5.398 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.644e-06/0.4802, allocations: 8 kB / 0.5343 GB, free: 5.391 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001201/0.4814, allocations: 1.422 MB / 0.5356 GB, free: 4.039 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002966/0.4817, allocations: 176.4 kB / 0.5358 GB, free: 3.863 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.913e-05/0.4818, allocations: 84.23 kB / 0.5359 GB, free: 3.789 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.404e-05/0.4819, allocations: 4 kB / 0.5359 GB, free: 3.785 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.9e-05/0.4819, allocations: 34.52 kB / 0.5359 GB, free: 3.742 MB / 347.1 MB Notification: Performance of pre-optimization done (n=17): time 1.643e-06/0.4819, allocations: 0 / 0.5359 GB, free: 3.742 MB / 347.1 MB Notification: Performance of matching and sorting (n=19): time 0.0009763/0.4829, allocations: 0.7995 MB / 0.5367 GB, free: 2.922 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.076e-05/0.4829, allocations: 128.5 kB / 0.5368 GB, free: 2.766 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002456/0.4832, allocations: 232.7 kB / 0.5371 GB, free: 2.57 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 1.433e-05/0.4832, allocations: 33.64 kB / 0.5371 GB, free: 2.531 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.889e-05/0.4833, allocations: 217 kB / 0.5373 GB, free: 2.359 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.603e-05/0.4833, allocations: 65.16 kB / 0.5374 GB, free: 2.305 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.956e-06/0.4833, allocations: 0 / 0.5374 GB, free: 2.305 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 5.372e-05/0.4834, allocations: 340.8 kB / 0.5377 GB, free: 1.977 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.553e-05/0.4835, allocations: 46.25 kB / 0.5377 GB, free: 1.945 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000101/0.4836, allocations: 146 kB / 0.5379 GB, free: 1.781 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001027/0.4837, allocations: 73.38 kB / 0.5379 GB, free: 1.727 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.4837, allocations: 0 / 0.5379 GB, free: 1.727 MB / 347.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002824/0.484, allocations: 216.7 kB / 0.5381 GB, free: 1.543 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.484, allocations: 15.39 kB / 0.5382 GB, free: 1.531 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.615e-06/0.484, allocations: 4.438 kB / 0.5382 GB, free: 1.527 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.4841, allocations: 8 kB / 0.5382 GB, free: 1.52 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003266/0.4844, allocations: 83.83 kB / 0.5382 GB, free: 1.441 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000629/0.485, allocations: 1.225 MB / 0.5394 GB, free: 124 kB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001551/0.4852, allocations: 7.906 kB / 0.5394 GB, free: 116 kB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.527e-05/0.4852, allocations: 18.86 kB / 0.5395 GB, free: 100 kB / 347.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * 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.000112/0.4854, allocations: 116.7 kB / 0.5396 GB, free: 15.98 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.338e-05/0.4854, allocations: 23.72 kB / 0.5396 GB, free: 15.96 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003135/0.4858, allocations: 170.8 kB / 0.5398 GB, free: 15.82 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.4858, allocations: 8.031 kB / 0.5398 GB, free: 15.81 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-06/0.4858, allocations: 0 / 0.5398 GB, free: 15.81 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.4858, allocations: 3.984 kB / 0.5398 GB, free: 15.8 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007928/0.4866, allocations: 499 kB / 0.5403 GB, free: 15.36 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.4866, allocations: 4 kB / 0.5403 GB, free: 15.36 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002366/0.4869, allocations: 47.17 kB / 0.5403 GB, free: 15.31 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.806e-06/0.4869, allocations: 7.938 kB / 0.5403 GB, free: 15.3 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.4869, allocations: 8 kB / 0.5403 GB, free: 15.3 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.4869, allocations: 0 / 0.5403 GB, free: 15.3 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.4869, allocations: 4 kB / 0.5403 GB, free: 15.29 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004716/0.4874, allocations: 0.5002 MB / 0.5408 GB, free: 14.81 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.072e-05/0.4875, allocations: 108.6 kB / 0.5409 GB, free: 14.69 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.511e-05/0.4875, allocations: 8 kB / 0.5409 GB, free: 14.68 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001813/0.4877, allocations: 0 / 0.5409 GB, free: 14.68 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.779e-05/0.4878, allocations: 11.98 kB / 0.5409 GB, free: 14.67 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.475e-05/0.4878, allocations: 11.33 kB / 0.5409 GB, free: 14.66 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0001437/0.4879, allocations: 182.9 kB / 0.5411 GB, free: 14.52 MB / 363.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4879, allocations: 0 / 0.5411 GB, free: 14.52 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.0004393/0.4884, allocations: 60 kB / 0.5412 GB, free: 14.46 MB / 363.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (motor.phi_el,motor.w_el,motor.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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.0001934/0.4886, allocations: 138.9 kB / 0.5413 GB, free: 14.32 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.0003153/0.4889, allocations: 135.2 kB / 0.5414 GB, free: 14.22 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/0.4889, allocations: 0 / 0.5414 GB, free: 14.22 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001024/0.489, allocations: 70.92 kB / 0.5415 GB, free: 14.17 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005572/0.4896, allocations: 63.23 kB / 0.5416 GB, free: 14.12 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001176/0.4908, allocations: 0.5773 MB / 0.5421 GB, free: 13.55 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003663/0.4912, allocations: 0.8128 MB / 0.5429 GB, free: 12.72 MB / 363.1 MB Notification: Performance of simCode: alias equations: time 0.0002063/0.4914, allocations: 51.25 kB / 0.543 GB, free: 12.66 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.15e-05/0.4914, allocations: 27.38 kB / 0.543 GB, free: 12.64 MB / 363.1 MB Notification: Performance of SimCode: time 3e-07/0.4915, allocations: 0 / 0.543 GB, free: 12.64 MB / 363.1 MB Notification: Performance of Templates: time 0.006243/0.4977, allocations: 2.682 MB / 0.5456 GB, free: 10 MB / 363.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)