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") [: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.00163/0.00163, allocations: 189.8 kB / 8.136 MB, free: 2.215 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.182/1.182, allocations: 194.2 MB / 202.8 MB, free: 9.156 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.001683/0.001683, allocations: 118.5 kB / 247.7 MB, free: 6.199 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1585/0.1585, allocations: 37.9 MB / 330.5 MB, free: 7.074 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.561e-06/5.581e-06, allocations: 0 / 389.8 MB, free: 78.15 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06971/0.06974, allocations: 53.24 MB / 443 MB, free: 25.02 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2321/0.3018, allocations: 93.56 MB / 0.524 GB, free: 9.598 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000205/0.3021, allocations: 92.94 kB / 0.5241 GB, free: 9.582 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02918/0.3313, allocations: 10.96 MB / 0.5348 GB, free: 4.469 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.644e-05/0.3313, allocations: 8 kB / 0.5348 GB, free: 4.461 MB / 346.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.0009399/0.3323, allocations: 0.6221 MB / 0.5354 GB, free: 3.816 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.3323, allocations: 12.03 kB / 0.5354 GB, free: 3.805 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00011/0.3324, allocations: 43.44 kB / 0.5355 GB, free: 3.762 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001134/0.3336, allocations: 0.5568 MB / 0.536 GB, free: 3.277 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.147e-05/0.3337, allocations: 42.48 kB / 0.5361 GB, free: 3.23 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6e-05/0.3337, allocations: 27.89 kB / 0.5361 GB, free: 3.203 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004092/0.3342, allocations: 225 kB / 0.5363 GB, free: 3.062 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004662/0.3346, allocations: 380.4 kB / 0.5367 GB, free: 2.734 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.088e-05/0.3347, allocations: 0 / 0.5367 GB, free: 2.734 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.28e-05/0.3347, allocations: 4 kB / 0.5367 GB, free: 2.73 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.3347, allocations: 8 kB / 0.5367 GB, free: 2.723 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001733/0.3365, allocations: 1.78 MB / 0.5384 GB, free: 1.082 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001425/0.3366, allocations: 124.4 kB / 0.5385 GB, free: 0.9648 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.473e-05/0.3367, allocations: 76.11 kB / 0.5386 GB, free: 0.8984 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.723e-05/0.3367, allocations: 0 / 0.5386 GB, free: 0.8984 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.471e-05/0.3368, allocations: 42.38 kB / 0.5386 GB, free: 0.8516 MB / 346.7 MB Notification: Performance of pre-optimization done (n=18): time 1.392e-06/0.3368, allocations: 0 / 0.5386 GB, free: 0.8516 MB / 346.7 MB Notification: Performance of matching and sorting (n=20): time 0.001017/0.3378, allocations: 0.7915 MB / 0.5394 GB, free: 56 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.497e-05/0.3379, allocations: 106.8 kB / 0.5395 GB, free: 15.93 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002424/0.3381, allocations: 250.4 kB / 0.5398 GB, free: 15.72 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.136e-05/0.3381, allocations: 25.7 kB / 0.5398 GB, free: 15.69 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.3382, allocations: 211.7 kB / 0.54 GB, free: 15.49 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.408e-05/0.3383, allocations: 73.31 kB / 0.54 GB, free: 15.43 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.156e-05/0.3383, allocations: 0 / 0.54 GB, free: 15.43 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.3384, allocations: 341.4 kB / 0.5404 GB, free: 15.1 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001082/0.3386, allocations: 60.56 kB / 0.5404 GB, free: 15.06 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001833/0.3388, allocations: 204.2 kB / 0.5406 GB, free: 14.84 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001489/0.3389, allocations: 93.66 kB / 0.5407 GB, free: 14.77 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3389, allocations: 0 / 0.5407 GB, free: 14.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004278/0.3394, allocations: 285.7 kB / 0.541 GB, free: 14.54 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/0.3394, allocations: 8 kB / 0.541 GB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.886e-06/0.3394, allocations: 4 kB / 0.541 GB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.3394, allocations: 8 kB / 0.541 GB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003469/0.3398, allocations: 83.83 kB / 0.5411 GB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/0.3398, allocations: 7.938 kB / 0.5411 GB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002014/0.34, allocations: 8 kB / 0.5411 GB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.376e-05/0.34, allocations: 15.81 kB / 0.5411 GB, free: 14.42 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 () * 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 9.324e-05/0.3401, allocations: 120.8 kB / 0.5412 GB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001146/0.3402, allocations: 27.62 kB / 0.5413 GB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003162/0.3406, allocations: 183 kB / 0.5414 GB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.3406, allocations: 4 kB / 0.5414 GB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/0.3406, allocations: 0 / 0.5414 GB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.3406, allocations: 0 / 0.5414 GB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007538/0.3414, allocations: 0.5622 MB / 0.542 GB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-06/0.3414, allocations: 4 kB / 0.542 GB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003105/0.3417, allocations: 47.53 kB / 0.542 GB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.698e-06/0.3417, allocations: 0 / 0.542 GB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.053e-05/0.3417, allocations: 4 kB / 0.542 GB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.3418, allocations: 0 / 0.542 GB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.3418, allocations: 4 kB / 0.542 GB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004608/0.3422, allocations: 460.9 kB / 0.5425 GB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.02e-05/0.3423, allocations: 104.7 kB / 0.5426 GB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.753e-05/0.3424, allocations: 0 / 0.5426 GB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002112/0.3426, allocations: 11.91 kB / 0.5426 GB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.036e-05/0.3426, allocations: 19.73 kB / 0.5426 GB, free: 13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.428e-05/0.3427, allocations: 4 kB / 0.5426 GB, free: 12.99 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001563/0.3428, allocations: 178.5 kB / 0.5428 GB, free: 12.85 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004227/0.3433, allocations: 67.81 kB / 0.5429 GB, free: 12.79 MB / 362.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 () * 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.000179/0.3434, allocations: 134.5 kB / 0.543 GB, free: 12.65 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002799/0.3437, allocations: 180.8 kB / 0.5432 GB, free: 12.52 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.3437, allocations: 384 / 0.5432 GB, free: 12.52 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001163/0.3439, allocations: 75.11 kB / 0.5432 GB, free: 12.46 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004703/0.3443, allocations: 70.47 kB / 0.5433 GB, free: 12.41 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001319/0.3457, allocations: 0.6545 MB / 0.5439 GB, free: 11.77 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004543/0.3461, allocations: 0.8535 MB / 0.5448 GB, free: 10.91 MB / 362.7 MB Notification: Performance of SimCode: time 2.8e-07/0.3461, allocations: 0 / 0.5448 GB, free: 10.91 MB / 362.7 MB Notification: Performance of Templates: time 0.007102/0.3533, allocations: 3.149 MB / 0.5478 GB, free: 7.805 MB / 362.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)