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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001072/0.001072, allocations: 191.6 kB / 8.135 MB, free: 2.199 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.044/1.044, allocations: 194.2 MB / 202.8 MB, free: 8.75 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.00175/0.00175, allocations: 116.7 kB / 247.7 MB, free: 6.312 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.164/0.164, allocations: 37.92 MB / 330.5 MB, free: 6.938 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.532e-06/6.562e-06, allocations: 0 / 389.8 MB, free: 78.13 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1047, allocations: 53.22 MB / 443 MB, free: 24.99 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2652/0.37, allocations: 96.2 MB / 0.5266 GB, free: 8.996 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.005672/0.3757, allocations: 2.16 MB / 0.5287 GB, free: 8.402 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03883/0.4145, allocations: 15.64 MB / 0.544 GB, free: 13.02 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.515e-05/0.4146, allocations: 15.94 kB / 0.544 GB, free: 13.01 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001478/0.4161, allocations: 0.8252 MB / 0.5448 GB, free: 12.16 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.4161, allocations: 8.031 kB / 0.5448 GB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001512/0.4163, allocations: 63.25 kB / 0.5449 GB, free: 12.09 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001636/0.4179, allocations: 0.7495 MB / 0.5456 GB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/0.418, allocations: 15.94 kB / 0.5456 GB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.383e-05/0.4181, allocations: 31.91 kB / 0.5456 GB, free: 11.4 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005247/0.4186, allocations: 289.8 kB / 0.5459 GB, free: 11.22 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006624/0.4193, allocations: 476.1 kB / 0.5464 GB, free: 10.82 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.805e-05/0.4193, allocations: 0 / 0.5464 GB, free: 10.82 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.958e-05/0.4193, allocations: 0 / 0.5464 GB, free: 10.82 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.881e-05/0.4194, allocations: 12 kB / 0.5464 GB, free: 10.81 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002356/0.4217, allocations: 1.987 MB / 0.5483 GB, free: 9.016 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002735/0.422, allocations: 173.3 kB / 0.5485 GB, free: 8.867 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001114/0.4221, allocations: 73.06 kB / 0.5486 GB, free: 8.809 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.522e-05/0.4222, allocations: 4 kB / 0.5486 GB, free: 8.805 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002148/0.4224, allocations: 151.4 kB / 0.5487 GB, free: 8.664 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.713e-06/0.4224, allocations: 0 / 0.5487 GB, free: 8.664 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.001676/0.4241, allocations: 1 MB / 0.5497 GB, free: 7.691 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.255e-05/0.4242, allocations: 132.5 kB / 0.5498 GB, free: 7.531 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003427/0.4245, allocations: 328.4 kB / 0.5501 GB, free: 7.262 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.677e-05/0.4245, allocations: 29.69 kB / 0.5501 GB, free: 7.227 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/0.4247, allocations: 244 kB / 0.5504 GB, free: 7.008 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.462e-05/0.4247, allocations: 90.97 kB / 0.5505 GB, free: 6.93 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.454e-05/0.4248, allocations: 0 / 0.5505 GB, free: 6.93 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.4249, allocations: 347.9 kB / 0.5508 GB, free: 6.598 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000142/0.4251, allocations: 79.67 kB / 0.5509 GB, free: 6.551 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002158/0.4253, allocations: 210 kB / 0.5511 GB, free: 6.328 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001858/0.4255, allocations: 119.6 kB / 0.5512 GB, free: 6.246 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.4255, allocations: 0 / 0.5512 GB, free: 6.246 MB / 362.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.000832/0.4263, allocations: 399.3 kB / 0.5516 GB, free: 5.918 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.4263, allocations: 4 kB / 0.5516 GB, free: 5.914 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.4264, allocations: 7.938 kB / 0.5516 GB, free: 5.906 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004144/0.4268, allocations: 96.31 kB / 0.5517 GB, free: 5.824 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002779/0.4271, allocations: 75.83 kB / 0.5517 GB, free: 5.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001813/0.4289, allocations: 1.615 MB / 0.5533 GB, free: 4.188 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002711/0.4292, allocations: 15.98 kB / 0.5533 GB, free: 4.172 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.347e-05/0.4292, allocations: 23.97 kB / 0.5534 GB, free: 4.148 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: 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.0001137/0.4293, allocations: 116.7 kB / 0.5535 GB, free: 4.031 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.846e-05/0.4294, allocations: 39.53 kB / 0.5535 GB, free: 3.992 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000555/0.43, allocations: 267.3 kB / 0.5538 GB, free: 3.793 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.43, allocations: 4 kB / 0.5538 GB, free: 3.789 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.43, allocations: 3.984 kB / 0.5538 GB, free: 3.785 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.43, allocations: 4 kB / 0.5538 GB, free: 3.781 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001071/0.4311, allocations: 0.6992 MB / 0.5545 GB, free: 3.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.4311, allocations: 0 / 0.5545 GB, free: 3.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003126/0.4314, allocations: 47.98 kB / 0.5545 GB, free: 3.133 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002239/0.4317, allocations: 52.23 kB / 0.5546 GB, free: 3.086 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.333e-05/0.4317, allocations: 11.66 kB / 0.5546 GB, free: 3.078 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001187/0.4329, allocations: 1.382 MB / 0.5559 GB, free: 1.668 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.4329, allocations: 0 / 0.5559 GB, free: 1.668 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006878/0.4336, allocations: 480.6 kB / 0.5564 GB, free: 1.25 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001521/0.4338, allocations: 132.1 kB / 0.5565 GB, free: 1.113 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.19e-05/0.4338, allocations: 4 kB / 0.5565 GB, free: 1.109 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002509/0.4341, allocations: 11.98 kB / 0.5565 GB, free: 1.098 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.578e-05/0.4342, allocations: 19.48 kB / 0.5565 GB, free: 1.082 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.934e-05/0.4342, allocations: 7.984 kB / 0.5565 GB, free: 1.074 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.000231/0.4344, allocations: 245.2 kB / 0.5568 GB, free: 0.8906 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005058/0.4349, allocations: 119.8 kB / 0.5569 GB, free: 0.7773 MB / 362.7 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.0006296/0.4356, allocations: 299.6 kB / 0.5572 GB, free: 0.5234 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006671/0.4363, allocations: 374.1 kB / 0.5575 GB, free: 216 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.4363, allocations: 0 / 0.5575 GB, free: 216 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003456/0.4366, allocations: 212.2 kB / 0.5577 GB, free: 20 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000545/0.4372, allocations: 101.4 kB / 0.5578 GB, free: 15.94 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001752/0.4389, allocations: 0.8682 MB / 0.5587 GB, free: 15.12 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005992/0.4396, allocations: 0.9192 MB / 0.5596 GB, free: 14.2 MB / 378.7 MB Notification: Performance of SimCode: time 4.11e-07/0.4396, allocations: 8 kB / 0.5596 GB, free: 14.19 MB / 378.7 MB Notification: Performance of Templates: time 0.01125/0.4508, allocations: 5.564 MB / 0.565 GB, free: 8.633 MB / 378.7 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)