Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") [: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.001717/0.001718, allocations: 194.5 kB / 8.136 MB, free: 2.207 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.111/1.111, 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.001695/0.001695, allocations: 118.7 kB / 247.7 MB, free: 6.293 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1612/0.1612, allocations: 37.92 MB / 330.5 MB, free: 6.906 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.451e-06/5.481e-06, allocations: 0 / 389.8 MB, free: 78.12 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06886/0.06888, allocations: 53.23 MB / 443 MB, free: 24.97 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2423/0.3112, allocations: 94.31 MB / 0.5247 GB, free: 9.258 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002343/0.3115, allocations: 93.92 kB / 0.5248 GB, free: 9.242 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03368/0.3452, allocations: 12.54 MB / 0.5371 GB, free: 2.348 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.137e-05/0.3452, allocations: 11.94 kB / 0.5371 GB, free: 2.336 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001108/0.3464, allocations: 0.6776 MB / 0.5377 GB, free: 1.641 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.3464, allocations: 12.03 kB / 0.5378 GB, free: 1.629 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001483/0.3466, allocations: 51.34 kB / 0.5378 GB, free: 1.578 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00143/0.348, allocations: 0.6629 MB / 0.5385 GB, free: 1.012 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.035e-05/0.3481, allocations: 54.69 kB / 0.5385 GB, free: 0.9531 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.063e-05/0.3482, allocations: 31.44 kB / 0.5385 GB, free: 0.9258 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004781/0.3487, allocations: 273.7 kB / 0.5388 GB, free: 0.7539 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005563/0.3492, allocations: 449.1 kB / 0.5392 GB, free: 388 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.128e-05/0.3493, allocations: 3.906 kB / 0.5392 GB, free: 384 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.731e-05/0.3493, allocations: 0 / 0.5392 GB, free: 384 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.3493, allocations: 12 kB / 0.5392 GB, free: 372 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002404/0.3517, allocations: 1.904 MB / 0.5411 GB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002327/0.352, allocations: 153 kB / 0.5412 GB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001274/0.3521, allocations: 92.77 kB / 0.5413 GB, free: 14.43 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.979e-05/0.3522, allocations: 0 / 0.5413 GB, free: 14.43 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.692e-05/0.3522, allocations: 38.55 kB / 0.5414 GB, free: 14.38 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.613e-06/0.3522, allocations: 0 / 0.5414 GB, free: 14.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.001475/0.3537, allocations: 0.8886 MB / 0.5422 GB, free: 13.5 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.251e-05/0.3538, allocations: 114.7 kB / 0.5423 GB, free: 13.36 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000271/0.354, allocations: 237 kB / 0.5426 GB, free: 13.16 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/0.3541, allocations: 25.7 kB / 0.5426 GB, free: 13.13 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001312/0.3542, allocations: 247.5 kB / 0.5428 GB, free: 12.91 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.108e-05/0.3543, allocations: 77.66 kB / 0.5429 GB, free: 12.84 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.353e-05/0.3543, allocations: 0 / 0.5429 GB, free: 12.84 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.3545, allocations: 348.1 kB / 0.5432 GB, free: 12.5 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001207/0.3546, allocations: 67.28 kB / 0.5433 GB, free: 12.46 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001935/0.3548, allocations: 198.9 kB / 0.5435 GB, free: 12.24 MB / 362.7 MB Notification: The following equation is consistent and got removed from the initialization problem: $DER.dcm_pm.rotor.w = 0.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.0007877/0.3556, allocations: 275.9 kB / 0.5438 GB, free: 12 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.3556, allocations: 4 kB / 0.5438 GB, free: 12 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007172/0.3563, allocations: 347.9 kB / 0.5441 GB, free: 11.71 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.3563, allocations: 4 kB / 0.5441 GB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.3564, allocations: 4 kB / 0.5441 GB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003328/0.3567, allocations: 85.52 kB / 0.5442 GB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002831/0.357, allocations: 71.34 kB / 0.5442 GB, free: 11.56 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001893/0.3589, allocations: 1.697 MB / 0.5459 GB, free: 9.918 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002542/0.3592, allocations: 16.17 kB / 0.5459 GB, free: 9.902 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.982e-05/0.3592, allocations: 19.31 kB / 0.5459 GB, free: 9.887 MB / 362.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: $DER.dcm_pm.rotor.w = 0.0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (35): * Single equations (assignments): 34 * 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: 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 8} Notification: Performance of prepare postOptimizeDAE: time 0.0001105/0.3594, allocations: 116.8 kB / 0.5461 GB, free: 9.766 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.81e-05/0.3594, allocations: 35.53 kB / 0.5461 GB, free: 9.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.401e-05/0.3595, allocations: 37.05 kB / 0.5461 GB, free: 9.711 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.3595, allocations: 4 kB / 0.5461 GB, free: 9.707 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.3595, allocations: 0 / 0.5461 GB, free: 9.707 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.3596, allocations: 3.984 kB / 0.5461 GB, free: 9.703 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001063/0.3606, allocations: 0.6979 MB / 0.5468 GB, free: 9.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.3606, allocations: 0 / 0.5468 GB, free: 9.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003107/0.361, allocations: 51.91 kB / 0.5469 GB, free: 9.039 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.663e-05/0.3611, allocations: 20.22 kB / 0.5469 GB, free: 9.02 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.235e-05/0.3611, allocations: 4 kB / 0.5469 GB, free: 9.016 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009259/0.362, allocations: 1.225 MB / 0.5481 GB, free: 7.711 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.362, allocations: 4 kB / 0.5481 GB, free: 7.707 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005333/0.3626, allocations: 496 kB / 0.5486 GB, free: 7.266 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001255/0.3627, allocations: 119.4 kB / 0.5487 GB, free: 7.137 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.845e-05/0.3628, allocations: 7.906 kB / 0.5487 GB, free: 7.129 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002256/0.363, allocations: 8 kB / 0.5487 GB, free: 7.121 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.992e-05/0.3631, allocations: 19.34 kB / 0.5487 GB, free: 7.105 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.553e-05/0.3631, allocations: 4 kB / 0.5487 GB, free: 7.102 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001951/0.3633, allocations: 192.9 kB / 0.5489 GB, free: 6.953 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005453/0.3639, allocations: 80 kB / 0.549 GB, free: 6.875 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (dcm_pm.motor.phi_el,dcm_pm.motor.w_el,dcm_pm.motor.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001892/0.364, allocations: 119 kB / 0.5491 GB, free: 6.754 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005723/0.3646, allocations: 325.2 kB / 0.5494 GB, free: 6.484 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3646, allocations: 0 / 0.5494 GB, free: 6.484 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002732/0.3649, allocations: 189.9 kB / 0.5496 GB, free: 6.312 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005197/0.3655, allocations: 80.62 kB / 0.5496 GB, free: 6.254 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001444/0.3669, allocations: 0.6496 MB / 0.5503 GB, free: 5.621 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005459/0.3675, allocations: 0.8787 MB / 0.5511 GB, free: 4.723 MB / 362.7 MB Notification: Performance of SimCode: time 3.91e-07/0.3675, allocations: 0 / 0.5511 GB, free: 4.723 MB / 362.7 MB Notification: Performance of Templates: time 0.0089/0.3764, allocations: 4.04 MB / 0.5551 GB, free: 0.7383 MB / 362.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1)