Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") [: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.0009917/0.0009918, allocations: 190.3 kB / 8.132 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.056/1.056, allocations: 194.2 MB / 202.8 MB, free: 8.766 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.00184/0.00184, allocations: 118.5 kB / 247.7 MB, free: 6.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1724/0.1724, allocations: 37.92 MB / 330.5 MB, free: 6.934 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.683e-06/6.843e-06, allocations: 4 kB / 389.8 MB, free: 78.12 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07875/0.07877, allocations: 53.22 MB / 443 MB, free: 24.99 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2554/0.3342, allocations: 95.7 MB / 0.5261 GB, free: 8.918 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.005816/0.3401, allocations: 2.158 MB / 0.5282 GB, free: 8.328 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03568/0.3758, allocations: 14.08 MB / 0.5419 GB, free: 14.59 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.416e-05/0.3758, allocations: 12 kB / 0.542 GB, free: 14.58 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001415/0.3772, allocations: 0.7901 MB / 0.5427 GB, free: 13.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.119e-05/0.3773, allocations: 8.031 kB / 0.5427 GB, free: 13.76 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001362/0.3774, allocations: 55.34 kB / 0.5428 GB, free: 13.71 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001497/0.3789, allocations: 0.6965 MB / 0.5435 GB, free: 13.11 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.088e-05/0.379, allocations: 12 kB / 0.5435 GB, free: 13.09 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.572e-05/0.379, allocations: 24 kB / 0.5435 GB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004742/0.3795, allocations: 241.9 kB / 0.5437 GB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005754/0.3801, allocations: 400.5 kB / 0.5441 GB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.008e-05/0.3801, allocations: 4 kB / 0.5441 GB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.481e-05/0.3802, allocations: 0 / 0.5441 GB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.908e-06/0.3802, allocations: 8 kB / 0.5441 GB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001935/0.3821, allocations: 1.782 MB / 0.5459 GB, free: 10.92 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002492/0.3824, allocations: 188.6 kB / 0.546 GB, free: 10.77 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000116/0.3825, allocations: 78.11 kB / 0.5461 GB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.665e-05/0.3826, allocations: 192 / 0.5461 GB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001967/0.3828, allocations: 150.9 kB / 0.5463 GB, free: 10.56 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.353e-06/0.3828, allocations: 4 kB / 0.5463 GB, free: 10.56 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.001781/0.3846, allocations: 1.006 MB / 0.5472 GB, free: 9.586 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.251e-05/0.3847, allocations: 132.5 kB / 0.5474 GB, free: 9.426 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003798/0.385, allocations: 305.9 kB / 0.5477 GB, free: 9.184 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.047e-05/0.3851, allocations: 29.7 kB / 0.5477 GB, free: 9.148 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001412/0.3852, allocations: 216.2 kB / 0.5479 GB, free: 8.953 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.475e-05/0.3853, allocations: 96.39 kB / 0.548 GB, free: 8.867 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.69e-05/0.3854, allocations: 0 / 0.548 GB, free: 8.867 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.3855, allocations: 350.7 kB / 0.5483 GB, free: 8.531 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001568/0.3857, allocations: 78.86 kB / 0.5484 GB, free: 8.48 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002466/0.3859, allocations: 199.8 kB / 0.5486 GB, free: 8.27 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002167/0.3862, allocations: 110.8 kB / 0.5487 GB, free: 8.195 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.3862, allocations: 4 kB / 0.5487 GB, free: 8.191 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008841/0.3871, allocations: 394.1 kB / 0.5491 GB, free: 7.867 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.3871, allocations: 4 kB / 0.5491 GB, free: 7.863 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.3871, allocations: 4 kB / 0.5491 GB, free: 7.859 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004436/0.3876, allocations: 95.14 kB / 0.5492 GB, free: 7.777 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002692/0.3878, allocations: 71.66 kB / 0.5492 GB, free: 7.711 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002075/0.3899, allocations: 1.737 MB / 0.5509 GB, free: 6.031 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002757/0.3902, allocations: 19.84 kB / 0.551 GB, free: 6.012 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.166e-05/0.3903, allocations: 23.48 kB / 0.551 GB, free: 5.992 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (39): * Single equations (assignments): 37 * 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 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001015/0.3904, allocations: 116.4 kB / 0.5511 GB, free: 5.875 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.647e-05/0.3904, allocations: 39.47 kB / 0.5511 GB, free: 5.836 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005688/0.391, allocations: 277.3 kB / 0.5514 GB, free: 5.621 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.391, allocations: 7.984 kB / 0.5514 GB, free: 5.613 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.82e-06/0.391, allocations: 4 kB / 0.5514 GB, free: 5.609 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.3911, allocations: 0 / 0.5514 GB, free: 5.609 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001058/0.3921, allocations: 0.6947 MB / 0.5521 GB, free: 5.016 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.3921, allocations: 0 / 0.5521 GB, free: 5.016 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002873/0.3924, allocations: 51.91 kB / 0.5521 GB, free: 4.965 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002177/0.3927, allocations: 47.94 kB / 0.5522 GB, free: 4.922 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.442e-05/0.3927, allocations: 3.906 kB / 0.5522 GB, free: 4.918 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001147/0.3938, allocations: 1.374 MB / 0.5535 GB, free: 3.516 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.3939, allocations: 4 kB / 0.5535 GB, free: 3.512 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007049/0.3946, allocations: 0.4973 MB / 0.554 GB, free: 3.074 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001434/0.3947, allocations: 133.2 kB / 0.5541 GB, free: 2.938 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.802e-05/0.3948, allocations: 0 / 0.5541 GB, free: 2.938 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002392/0.395, allocations: 15.98 kB / 0.5542 GB, free: 2.922 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.894e-05/0.3951, allocations: 19.41 kB / 0.5542 GB, free: 2.906 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.3951, allocations: 11.94 kB / 0.5542 GB, free: 2.895 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002516/0.3954, allocations: 240.1 kB / 0.5544 GB, free: 2.711 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005382/0.3959, allocations: 107.8 kB / 0.5545 GB, free: 2.609 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.motor.phi_el,dcm_ser.motor.w_el,dcm_ser.motor.i,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 (25): * Single equations (assignments): 23 * 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.0006224/0.3966, allocations: 280.6 kB / 0.5548 GB, free: 2.387 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007716/0.3974, allocations: 393.3 kB / 0.5552 GB, free: 2.051 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.3974, allocations: 0 / 0.5552 GB, free: 2.051 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003529/0.3977, allocations: 224.1 kB / 0.5554 GB, free: 1.852 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000521/0.3983, allocations: 95.12 kB / 0.5555 GB, free: 1.781 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001593/0.3999, allocations: 0.7698 MB / 0.5562 GB, free: 1.043 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005117/0.4004, allocations: 0.9009 MB / 0.5571 GB, free: 128 kB / 362.7 MB Notification: Performance of SimCode: time 4.11e-07/0.4004, allocations: 0 / 0.5571 GB, free: 128 kB / 362.7 MB Notification: Performance of Templates: time 0.0108/0.4112, allocations: 5.344 MB / 0.5623 GB, free: 10.79 MB / 378.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1)