Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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.DCmotor_par,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009314/0.0009313, allocations: 186.5 kB / 8.351 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.225/1.225, allocations: 194.3 MB / 203.1 MB, free: 9.32 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.001685/0.001685, allocations: 116.8 kB / 248.1 MB, free: 6.336 MB / 203.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1948/0.1948, allocations: 37.92 MB / 330.9 MB, free: 7.32 MB / 283.1 MB Notification: Performance of FrontEnd - loaded program: time 1.441e-05/1.444e-05, allocations: 0 / 390.4 MB, free: 78.25 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08/0.08003, allocations: 53.24 MB / 443.6 MB, free: 25.12 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3272/0.4073, allocations: 96.23 MB / 0.5272 GB, free: 9.16 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001466/0.4088, allocations: 0.5768 MB / 0.5277 GB, free: 9.059 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03835/0.4472, allocations: 15.92 MB / 0.5433 GB, free: 14.36 MB / 363.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.4472, allocations: 0 / 0.5433 GB, free: 14.36 MB / 363.1 MB Notification: Performance of Transformations before backend: time 3.579e-05/0.4473, allocations: 11.94 kB / 0.5433 GB, free: 14.35 MB / 363.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001355/0.4487, allocations: 0.8 MB / 0.5441 GB, free: 13.53 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/0.4487, allocations: 8.031 kB / 0.5441 GB, free: 13.52 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001274/0.4488, allocations: 63.25 kB / 0.5441 GB, free: 13.46 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001548/0.4504, allocations: 0.7432 MB / 0.5449 GB, free: 12.82 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.424e-05/0.4504, allocations: 16 kB / 0.5449 GB, free: 12.81 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.954e-05/0.4505, allocations: 28 kB / 0.5449 GB, free: 12.78 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005151/0.451, allocations: 285.4 kB / 0.5452 GB, free: 12.61 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000675/0.4517, allocations: 475.2 kB / 0.5456 GB, free: 12.2 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.037e-05/0.4518, allocations: 3.938 kB / 0.5456 GB, free: 12.2 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.676e-05/0.4518, allocations: 0 / 0.5456 GB, free: 12.2 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.832e-05/0.4518, allocations: 12 kB / 0.5456 GB, free: 12.18 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002358/0.4542, allocations: 1.983 MB / 0.5476 GB, free: 10.4 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003645/0.4546, allocations: 217.1 kB / 0.5478 GB, free: 10.21 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001104/0.4547, allocations: 73.45 kB / 0.5479 GB, free: 10.16 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.244e-05/0.4547, allocations: 7.984 kB / 0.5479 GB, free: 10.15 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002406/0.455, allocations: 158.7 kB / 0.548 GB, free: 10 MB / 363.1 MB Notification: Performance of pre-optimization done (n=23): time 1.462e-06/0.455, allocations: 0 / 0.548 GB, free: 10 MB / 363.1 MB Notification: Performance of matching and sorting (n=26): time 0.001746/0.4567, allocations: 1.018 MB / 0.549 GB, free: 9.012 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.712e-05/0.4568, allocations: 140.4 kB / 0.5491 GB, free: 8.844 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003317/0.4572, allocations: 326.4 kB / 0.5495 GB, free: 8.578 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 2.662e-05/0.4572, allocations: 25.7 kB / 0.5495 GB, free: 8.547 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000171/0.4574, allocations: 288.8 kB / 0.5498 GB, free: 8.328 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.459e-05/0.4575, allocations: 90.91 kB / 0.5498 GB, free: 8.25 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.527e-05/0.4575, allocations: 0 / 0.5498 GB, free: 8.25 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.4577, allocations: 357.5 kB / 0.5502 GB, free: 7.91 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001662/0.4579, allocations: 80.81 kB / 0.5503 GB, free: 7.859 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002063/0.4581, allocations: 218.8 kB / 0.5505 GB, free: 7.629 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001622/0.4583, allocations: 108.1 kB / 0.5506 GB, free: 7.559 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.4583, allocations: 0 / 0.5506 GB, free: 7.559 MB / 363.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007716/0.459, allocations: 398.8 kB / 0.551 GB, free: 7.23 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.83e-05/0.4591, allocations: 36.83 kB / 0.551 GB, free: 7.191 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.4591, allocations: 4 kB / 0.551 GB, free: 7.188 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003863/0.4595, allocations: 94.44 kB / 0.5511 GB, free: 7.105 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002663/0.4598, allocations: 79.22 kB / 0.5512 GB, free: 7.031 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001673/0.4615, allocations: 1.629 MB / 0.5528 GB, free: 5.469 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002544/0.4617, allocations: 15.89 kB / 0.5528 GB, free: 5.453 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.304e-05/0.4618, allocations: 18.75 kB / 0.5528 GB, free: 5.438 MB / 363.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001205/0.4619, allocations: 121.4 kB / 0.5529 GB, free: 5.312 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.457e-05/0.462, allocations: 43.48 kB / 0.5529 GB, free: 5.27 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005195/0.4625, allocations: 250.5 kB / 0.5532 GB, free: 5.086 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.4625, allocations: 4 kB / 0.5532 GB, free: 5.082 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.434e-06/0.4625, allocations: 0 / 0.5532 GB, free: 5.082 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.4625, allocations: 3.984 kB / 0.5532 GB, free: 5.078 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001054/0.4636, allocations: 0.7038 MB / 0.5539 GB, free: 4.473 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.4636, allocations: 4 kB / 0.5539 GB, free: 4.469 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002836/0.4639, allocations: 43.97 kB / 0.5539 GB, free: 4.426 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001915/0.4641, allocations: 51.06 kB / 0.554 GB, free: 4.383 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.098e-05/0.4641, allocations: 3.953 kB / 0.554 GB, free: 4.379 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001161/0.4653, allocations: 1.395 MB / 0.5553 GB, free: 2.961 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.4653, allocations: 4.031 kB / 0.5553 GB, free: 2.957 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006497/0.466, allocations: 478.4 kB / 0.5558 GB, free: 2.543 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001288/0.4661, allocations: 130.4 kB / 0.5559 GB, free: 2.406 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.949e-05/0.4662, allocations: 0 / 0.5559 GB, free: 2.406 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.4664, allocations: 15.98 kB / 0.5559 GB, free: 2.391 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.22e-05/0.4665, allocations: 22.97 kB / 0.556 GB, free: 2.371 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.049e-05/0.4665, allocations: 10.95 kB / 0.556 GB, free: 2.363 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.000251/0.4668, allocations: 248.4 kB / 0.5562 GB, free: 2.176 MB / 363.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4668, allocations: 0 / 0.5562 GB, free: 2.176 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.0005483/0.4673, allocations: 114.9 kB / 0.5563 GB, free: 2.066 MB / 363.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.motor.phi_el,dcm_par.motor.w_el,dcm_par.motor.i,dcm_par.motor.i_f,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007381/0.4681, allocations: 332.4 kB / 0.5566 GB, free: 1.793 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.0007206/0.4688, allocations: 404.9 kB / 0.557 GB, free: 1.445 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.4688, allocations: 1.125 kB / 0.557 GB, free: 1.445 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003669/0.4692, allocations: 230.5 kB / 0.5572 GB, free: 1.242 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005619/0.4698, allocations: 88.42 kB / 0.5573 GB, free: 1.176 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001465/0.4712, allocations: 0.8714 MB / 0.5582 GB, free: 352 kB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004716/0.4717, allocations: 0.8861 MB / 0.559 GB, free: 15.45 MB / 379.1 MB Notification: Performance of simCode: alias equations: time 0.0002445/0.472, allocations: 63.36 kB / 0.5591 GB, free: 15.38 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.475e-05/0.4721, allocations: 27.44 kB / 0.5591 GB, free: 15.36 MB / 379.1 MB Notification: Performance of SimCode: time 2.194e-06/0.4721, allocations: 0 / 0.5591 GB, free: 15.36 MB / 379.1 MB Notification: Performance of Templates: time 0.01034/0.4824, allocations: 5.215 MB / 0.5642 GB, free: 10.15 MB / 379.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1)