Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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.Drives.DCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001084/0.001084, allocations: 180.1 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.192/1.192, allocations: 194.5 MB / 211.6 MB, free: 3.047 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001582/0.001582, allocations: 117 kB / 256.9 MB, free: 4.355 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.159/0.159, allocations: 38 MB / 340.1 MB, free: 1.359 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003516/0.0003514, allocations: 16 kB / 403.8 MB, free: 68.81 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08982/0.09018, allocations: 53.23 MB / 457 MB, free: 15.57 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2858/0.3761, allocations: 94.35 MB / 0.5384 GB, free: 0.8945 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002342/0.3763, allocations: 99.61 kB / 0.5385 GB, free: 0.8398 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02836/0.4047, allocations: 11.36 MB / 0.5496 GB, free: 7.18 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.4047, allocations: 0 / 0.5496 GB, free: 7.18 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.698e-05/0.4048, allocations: 11.98 kB / 0.5496 GB, free: 7.168 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001036/0.4058, allocations: 0.6647 MB / 0.5503 GB, free: 6.484 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.4059, allocations: 16.02 kB / 0.5503 GB, free: 6.469 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.967e-05/0.406, allocations: 43.03 kB / 0.5503 GB, free: 6.43 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001075/0.407, allocations: 0.5642 MB / 0.5509 GB, free: 5.922 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.466e-05/0.4071, allocations: 57.19 kB / 0.5509 GB, free: 5.871 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.741e-05/0.4072, allocations: 41.47 kB / 0.551 GB, free: 5.844 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006187/0.4078, allocations: 436.4 kB / 0.5514 GB, free: 5.48 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.873e-05/0.4079, allocations: 7.953 kB / 0.5514 GB, free: 5.473 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.09e-05/0.4079, allocations: 14.12 kB / 0.5514 GB, free: 5.469 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.4079, allocations: 8 kB / 0.5514 GB, free: 5.461 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000467/0.4084, allocations: 275.9 kB / 0.5517 GB, free: 5.277 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002218/0.4106, allocations: 1.877 MB / 0.5535 GB, free: 3.543 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003267/0.411, allocations: 183.2 kB / 0.5537 GB, free: 3.379 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.036e-05/0.411, allocations: 4.234 kB / 0.5537 GB, free: 3.375 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.358e-05/0.411, allocations: 42.31 kB / 0.5537 GB, free: 3.328 MB / 362.7 MB Notification: Performance of pre-optimization done (n=18): time 1.674e-06/0.411, allocations: 0 / 0.5537 GB, free: 3.328 MB / 362.7 MB Notification: Performance of matching and sorting (n=20): time 0.001509/0.4126, allocations: 0.938 MB / 0.5547 GB, free: 2.438 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.418e-05/0.4126, allocations: 106.8 kB / 0.5548 GB, free: 2.309 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000264/0.4129, allocations: 270 kB / 0.555 GB, free: 2.09 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.368e-05/0.4129, allocations: 29.02 kB / 0.555 GB, free: 2.059 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.4131, allocations: 254.6 kB / 0.5553 GB, free: 1.855 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.343e-05/0.4131, allocations: 74.25 kB / 0.5554 GB, free: 1.789 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.219e-05/0.4132, allocations: 15.12 kB / 0.5554 GB, free: 1.781 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.4133, allocations: 340.8 kB / 0.5557 GB, free: 1.453 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001619/0.4135, allocations: 76.2 kB / 0.5558 GB, free: 1.402 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002205/0.4137, allocations: 204.2 kB / 0.556 GB, free: 1.172 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001877/0.4139, allocations: 116.8 kB / 0.5561 GB, free: 1.102 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.4139, allocations: 4 kB / 0.5561 GB, free: 1.098 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000565/0.4145, allocations: 337.9 kB / 0.5564 GB, free: 0.8359 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.4145, allocations: 8 kB / 0.5564 GB, free: 0.8281 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.4145, allocations: 4 kB / 0.5564 GB, free: 0.8242 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.056e-05/0.4145, allocations: 8 kB / 0.5564 GB, free: 0.8164 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003015/0.4148, allocations: 78.47 kB / 0.5565 GB, free: 0.7422 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.123e-05/0.4149, allocations: 11.98 kB / 0.5565 GB, free: 0.7305 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001807/0.4151, allocations: 17.47 kB / 0.5565 GB, free: 0.7188 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.368e-05/0.4151, allocations: 14.94 kB / 0.5565 GB, free: 0.707 MB / 362.7 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 (41): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001965/0.4153, allocations: 192.1 kB / 0.5567 GB, free: 0.5391 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.271e-05/0.4154, allocations: 34.31 kB / 0.5568 GB, free: 0.5078 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004138/0.4158, allocations: 199.7 kB / 0.5569 GB, free: 368 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.4158, allocations: 4 kB / 0.5569 GB, free: 364 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.4158, allocations: 0 / 0.5569 GB, free: 364 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.4158, allocations: 7.984 kB / 0.557 GB, free: 356 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008827/0.4167, allocations: 0.6432 MB / 0.5576 GB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.4167, allocations: 0 / 0.5576 GB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002501/0.417, allocations: 54.97 kB / 0.5576 GB, free: 15.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.417, allocations: 0 / 0.5576 GB, free: 15.72 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.919e-05/0.417, allocations: 7.344 kB / 0.5576 GB, free: 15.71 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.417, allocations: 4 kB / 0.5576 GB, free: 15.71 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.4171, allocations: 4 kB / 0.5577 GB, free: 15.71 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005792/0.4176, allocations: 0.4983 MB / 0.5581 GB, free: 15.24 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.317e-05/0.4177, allocations: 104.8 kB / 0.5582 GB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.871e-05/0.4178, allocations: 11.27 kB / 0.5582 GB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001838/0.418, allocations: 7.188 kB / 0.5583 GB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.229e-05/0.418, allocations: 13.3 kB / 0.5583 GB, free: 15.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.541e-05/0.418, allocations: 9.312 kB / 0.5583 GB, free: 15.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002184/0.4183, allocations: 223.4 kB / 0.5585 GB, free: 14.91 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4183, allocations: 0 / 0.5585 GB, free: 14.91 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004047/0.4187, allocations: 79.56 kB / 0.5586 GB, free: 14.84 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.motor.phi_el,machine.motor.w_el) * 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 (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.000161/0.4189, allocations: 122.9 kB / 0.5587 GB, free: 14.71 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004129/0.4193, allocations: 201.5 kB / 0.5589 GB, free: 14.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.4193, allocations: 8.375 kB / 0.5589 GB, free: 14.56 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001713/0.4195, allocations: 79.84 kB / 0.559 GB, free: 14.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005046/0.42, allocations: 89.95 kB / 0.559 GB, free: 14.43 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001485/0.4215, allocations: 1.126 MB / 0.5601 GB, free: 13.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003764/0.4219, allocations: 0.8249 MB / 0.561 GB, free: 12.48 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001974/0.4221, allocations: 51.25 kB / 0.561 GB, free: 12.43 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.426e-05/0.4221, allocations: 28.25 kB / 0.561 GB, free: 12.41 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4222, allocations: 0 / 0.561 GB, free: 12.41 MB / 378.7 MB Notification: Performance of Templates: time 0.006539/0.4287, allocations: 3.444 MB / 0.5644 GB, free: 8.973 MB / 378.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1)