Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_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_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002232/0.002232, allocations: 185 kB / 7.804 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.746/1.746, allocations: 205.2 MB / 213.4 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001251/0.001251, allocations: 93.34 kB / 261.4 MB, free: 13.64 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2609/0.2609, allocations: 37.98 MB / 347.4 MB, free: 7.551 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.047e-06/9.167e-06, allocations: 4 kB / 409.3 MB, free: 47.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09685/0.09688, allocations: 56.31 MB / 465.6 MB, free: 6.855 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3486/0.4455, allocations: 101.4 MB / 0.5538 GB, free: 9.441 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.009434/0.455, allocations: 2.171 MB / 0.5559 GB, free: 7.281 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.06346/0.5185, allocations: 14.66 MB / 0.5702 GB, free: 8.457 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.884e-05/0.5186, allocations: 8 kB / 0.5702 GB, free: 8.449 MB / 410.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.001931/0.5206, allocations: 0.765 MB / 0.571 GB, free: 7.637 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.5206, allocations: 8.031 kB / 0.571 GB, free: 7.629 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000161/0.5208, allocations: 59.28 kB / 0.571 GB, free: 7.57 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002455/0.5233, allocations: 0.6989 MB / 0.5717 GB, free: 6.832 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.066e-05/0.5233, allocations: 12 kB / 0.5717 GB, free: 6.82 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.502e-05/0.5235, allocations: 24 kB / 0.5718 GB, free: 6.797 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007619/0.5242, allocations: 237.5 kB / 0.572 GB, free: 6.562 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009301/0.5252, allocations: 402.5 kB / 0.5724 GB, free: 6.125 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.408e-05/0.5252, allocations: 0 / 0.5724 GB, free: 6.125 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.333e-05/0.5253, allocations: 7.906 kB / 0.5724 GB, free: 6.117 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.729e-05/0.5253, allocations: 15.94 kB / 0.5724 GB, free: 6.102 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003184/0.5285, allocations: 1.784 MB / 0.5741 GB, free: 4.215 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004286/0.529, allocations: 184.5 kB / 0.5743 GB, free: 4.012 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002061/0.5292, allocations: 79.05 kB / 0.5744 GB, free: 3.926 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.089e-05/0.5293, allocations: 4.188 kB / 0.5744 GB, free: 3.922 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003211/0.5296, allocations: 142.5 kB / 0.5745 GB, free: 3.762 MB / 410.7 MB Notification: Performance of pre-optimization done (n=24): time 3.386e-06/0.5296, allocations: 3.938 kB / 0.5745 GB, free: 3.758 MB / 410.7 MB Notification: Performance of matching and sorting (n=26): time 0.002357/0.532, allocations: 0.7985 MB / 0.5753 GB, free: 2.902 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.165e-05/0.5321, allocations: 136.4 kB / 0.5754 GB, free: 2.738 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005686/0.5327, allocations: 304.9 kB / 0.5757 GB, free: 2.438 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.377e-05/0.5327, allocations: 25.7 kB / 0.5758 GB, free: 2.406 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001605/0.5329, allocations: 269.9 kB / 0.576 GB, free: 2.137 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001049/0.533, allocations: 82.81 kB / 0.5761 GB, free: 2.055 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.111e-05/0.533, allocations: 0 / 0.5761 GB, free: 2.055 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.5332, allocations: 334.8 kB / 0.5764 GB, free: 1.719 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002392/0.5334, allocations: 71.98 kB / 0.5765 GB, free: 1.648 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003382/0.5338, allocations: 200.2 kB / 0.5767 GB, free: 1.395 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003116/0.5341, allocations: 103.9 kB / 0.5768 GB, free: 1.293 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.5341, allocations: 0 / 0.5768 GB, free: 1.293 MB / 410.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001301/0.5354, allocations: 361.9 kB / 0.5771 GB, free: 0.9297 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.5355, allocations: 4 kB / 0.5771 GB, free: 0.9258 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.5355, allocations: 4 kB / 0.5771 GB, free: 0.9219 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006867/0.5362, allocations: 89.28 kB / 0.5772 GB, free: 0.832 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004696/0.5367, allocations: 67.91 kB / 0.5773 GB, free: 0.7656 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003225/0.5399, allocations: 1.741 MB / 0.579 GB, free: 14.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003713/0.5403, allocations: 19.92 kB / 0.579 GB, free: 14.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.827e-05/0.5404, allocations: 12 kB / 0.579 GB, free: 14.88 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: dcm_ser.motor.w_el:VARIABLE(unit = "rad/s" ) "rotor angular velocity el" type: Real 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 (37): * Single equations (assignments): 36 * 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 {3 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001694/0.5405, allocations: 45.64 kB / 0.579 GB, free: 14.83 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001284/0.5407, allocations: 43.47 kB / 0.5791 GB, free: 14.79 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009662/0.5417, allocations: 265.7 kB / 0.5793 GB, free: 14.52 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/0.5417, allocations: 4 kB / 0.5793 GB, free: 14.51 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.5417, allocations: 0 / 0.5793 GB, free: 14.51 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.5417, allocations: 4 kB / 0.5793 GB, free: 14.51 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001632/0.5434, allocations: 0.687 MB / 0.58 GB, free: 13.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.366e-06/0.5434, allocations: 11.92 kB / 0.58 GB, free: 13.76 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004955/0.5439, allocations: 35.98 kB / 0.5801 GB, free: 13.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003712/0.5443, allocations: 52.72 kB / 0.5801 GB, free: 13.67 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.199e-05/0.5443, allocations: 4 kB / 0.5801 GB, free: 13.67 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002008/0.5463, allocations: 1.377 MB / 0.5815 GB, free: 12.17 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.5464, allocations: 4.062 kB / 0.5815 GB, free: 12.17 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001296/0.5477, allocations: 0.4917 MB / 0.5819 GB, free: 11.64 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000248/0.548, allocations: 136.5 kB / 0.5821 GB, free: 11.49 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.561e-05/0.5481, allocations: 4 kB / 0.5821 GB, free: 11.49 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004033/0.5485, allocations: 23.83 kB / 0.5821 GB, free: 11.46 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.442e-05/0.5486, allocations: 15.97 kB / 0.5821 GB, free: 11.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.984e-05/0.5487, allocations: 8 kB / 0.5821 GB, free: 11.44 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0004236/0.5491, allocations: 239.2 kB / 0.5824 GB, free: 11.21 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007281/0.5498, allocations: 99.98 kB / 0.5824 GB, free: 11.11 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,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 (24): * Single equations (assignments): 22 * 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.0009727/0.5508, allocations: 354.5 kB / 0.5828 GB, free: 10.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001145/0.552, allocations: 362.8 kB / 0.5831 GB, free: 10.43 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.552, allocations: 128 / 0.5831 GB, free: 10.43 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000569/0.5526, allocations: 218.2 kB / 0.5833 GB, free: 10.21 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009194/0.5535, allocations: 89.58 kB / 0.5834 GB, free: 10.12 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002481/0.556, allocations: 0.8198 MB / 0.5842 GB, free: 9.27 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007651/0.5568, allocations: 0.9117 MB / 0.5851 GB, free: 8.332 MB / 426.7 MB Notification: Performance of SimCode: time 9.21e-07/0.5568, allocations: 0 / 0.5851 GB, free: 8.332 MB / 426.7 MB Notification: Performance of Templates: time 0.01658/0.5734, allocations: 8.004 MB / 0.5929 GB, free: 324 kB / 426.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1)