Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Electrical.StarPolygon.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(HanserModelica.Electrical.StarPolygon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Electrical.StarPolygon") translateModel(HanserModelica.Electrical.StarPolygon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Electrical.StarPolygon") [: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 4.0.0+maint.om/package.mo): time 0.003134/0.003134, allocations: 183.6 kB / 7.457 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04431/0.04431, allocations: 8.706 MB / 16.57 MB, free: 440 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 221.4 MB / 240.5 MB, free: 8.199 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009057/0.0009058, allocations: 94.31 kB / 293.5 MB, free: 7.422 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.883e-06/6.913e-06, allocations: 0 / 352.1 MB, free: 12.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2024/0.2024, allocations: 52.54 MB / 404.6 MB, free: 27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.101/0.3035, allocations: 84.26 MB / 488.9 MB, free: 6.586 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002162/0.3038, allocations: 63.97 kB / 488.9 MB, free: 6.523 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.236/0.5398, allocations: 33.48 MB / 0.5102 GB, free: 81.21 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001557/0.54, allocations: 56.09 kB / 0.5102 GB, free: 81.21 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.00475/0.5448, allocations: 2.301 MB / 0.5125 GB, free: 80.15 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.5448, allocations: 7.406 kB / 0.5125 GB, free: 80.15 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006921/0.5455, allocations: 278.8 kB / 0.5128 GB, free: 80.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002219/0.5477, allocations: 1.461 MB / 0.5142 GB, free: 79.61 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.304e-05/0.5478, allocations: 72.69 kB / 0.5142 GB, free: 79.61 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002559/0.5481, allocations: 143.6 kB / 0.5144 GB, free: 79.61 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002982/0.5511, allocations: 2.275 MB / 0.5166 GB, free: 79.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003406/0.5545, allocations: 2.689 MB / 0.5192 GB, free: 78.82 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.985e-05/0.5545, allocations: 3.875 kB / 0.5192 GB, free: 78.82 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001812/0.5547, allocations: 10.75 kB / 0.5192 GB, free: 78.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.266e-05/0.5548, allocations: 54.5 kB / 0.5193 GB, free: 78.82 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01252/0.5673, allocations: 7.57 MB / 0.5267 GB, free: 75.38 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001414/0.5688, allocations: 0.8151 MB / 0.5275 GB, free: 75.04 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001467/0.5703, allocations: 1.082 MB / 0.5285 GB, free: 74.08 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.648e-05/0.5704, allocations: 17.16 kB / 0.5286 GB, free: 74.07 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001369/0.5717, allocations: 0.8982 MB / 0.5294 GB, free: 73.32 MB / 378.7 MB Notification: Performance of pre-optimization done (n=122): time 3.126e-06/0.5718, allocations: 0 / 0.5294 GB, free: 73.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=127): time 0.005401/0.5772, allocations: 3.664 MB / 0.533 GB, free: 70.09 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.072e-05/0.5773, allocations: 203.4 kB / 0.5332 GB, free: 69.86 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001261/0.5785, allocations: 1.036 MB / 0.5342 GB, free: 68.94 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.951e-05/0.5786, allocations: 32.14 kB / 0.5343 GB, free: 68.9 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007446/0.5794, allocations: 0.774 MB / 0.535 GB, free: 68.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002726/0.5797, allocations: 409.9 kB / 0.5354 GB, free: 67.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.403e-05/0.5797, allocations: 0 / 0.5354 GB, free: 67.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.265e-05/0.5798, allocations: 357.9 kB / 0.5357 GB, free: 67.44 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007504/0.5806, allocations: 0.6428 MB / 0.5364 GB, free: 66.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007981/0.5814, allocations: 0.9204 MB / 0.5373 GB, free: 65.78 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008136/0.5822, allocations: 0.7828 MB / 0.538 GB, free: 65 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.5822, allocations: 0 / 0.538 GB, free: 65 MB / 378.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.002333/0.5846, allocations: 1.89 MB / 0.5399 GB, free: 63.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.5846, allocations: 4.188 kB / 0.5399 GB, free: 63.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.5846, allocations: 12 kB / 0.5399 GB, free: 63.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005354/0.5852, allocations: 264.9 kB / 0.5401 GB, free: 62.83 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/0.5862, allocations: 259.6 kB / 0.5404 GB, free: 62.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003557/0.5897, allocations: 3.531 MB / 0.5438 GB, free: 58.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001038/0.5908, allocations: 68 kB / 0.5439 GB, free: 58.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.496e-05/0.5909, allocations: 47.94 kB / 0.544 GB, free: 58.83 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rootMeanSquare[5].mean.y_last,rootMeanSquare[5].mean.y_last,$PRE.rootMeanSquare[4].mean.y_last,rootMeanSquare[4].mean.y_last,$PRE.rootMeanSquare[3].mean.y_last,rootMeanSquare[3].mean.y_last,$PRE.rootMeanSquare[2].mean.y_last,rootMeanSquare[2].mean.y_last,$PRE.rootMeanSquare[1].mean.y_last,rootMeanSquare[1].mean.y_last,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStep[4].y,booleanStep[5].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (134): * Single equations (assignments): 133 * 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: 1 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002472/0.5912, allocations: 155.2 kB / 0.5441 GB, free: 58.67 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001584/0.5913, allocations: 126.5 kB / 0.5442 GB, free: 58.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003205/0.5917, allocations: 157 kB / 0.5444 GB, free: 58.39 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/0.5917, allocations: 12 kB / 0.5444 GB, free: 58.38 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.103e-05/0.5917, allocations: 8 kB / 0.5444 GB, free: 58.37 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.146e-05/0.5917, allocations: 11.88 kB / 0.5444 GB, free: 58.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004909/0.5966, allocations: 3.817 MB / 0.5481 GB, free: 54.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.5967, allocations: 0 / 0.5481 GB, free: 54.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008636/0.5975, allocations: 203.8 kB / 0.5483 GB, free: 54.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004931/0.598, allocations: 256.6 kB / 0.5486 GB, free: 54.05 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.837e-05/0.5981, allocations: 27.97 kB / 0.5486 GB, free: 54.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003362/0.6015, allocations: 3.532 MB / 0.552 GB, free: 50.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.6015, allocations: 4.062 kB / 0.552 GB, free: 50.38 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00311/0.6046, allocations: 2.911 MB / 0.5549 GB, free: 47.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006624/0.6053, allocations: 371.4 kB / 0.5552 GB, free: 47.03 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002255/0.6056, allocations: 27.98 kB / 0.5553 GB, free: 47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006836/0.6063, allocations: 63.25 kB / 0.5553 GB, free: 46.95 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002003/0.6065, allocations: 104.8 kB / 0.5554 GB, free: 46.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.418e-05/0.6065, allocations: 39.98 kB / 0.5555 GB, free: 46.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0008691/0.6074, allocations: 0.7868 MB / 0.5562 GB, free: 46.01 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001282/0.6087, allocations: 391.9 kB / 0.5566 GB, free: 45.62 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (inductorLoad.inductor[1].i,inductorLoad.inductor[2].i,inductorLoad.inductor[3].i,inductorLoad.inductor[4].i,inductorLoad.inductor[5].i,rootMeanSquare[1].mean.x,rootMeanSquare[2].mean.x,rootMeanSquare[3].mean.x,rootMeanSquare[4].mean.x,rootMeanSquare[5].mean.x) * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStep[4].y,booleanStep[5].y,rootMeanSquare[1].mean.y_last,rootMeanSquare[2].mean.y_last,rootMeanSquare[3].mean.y_last,rootMeanSquare[4].mean.y_last,rootMeanSquare[5].mean.y_last) * Number of discrete states: 5 (rootMeanSquare[1].mean.x,rootMeanSquare[2].mean.x,rootMeanSquare[3].mean.x,rootMeanSquare[4].mean.x,rootMeanSquare[5].mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002044/0.6089, allocations: 133.8 kB / 0.5567 GB, free: 45.49 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002128/0.6111, allocations: 1.718 MB / 0.5584 GB, free: 43.76 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.6111, allocations: 0 / 0.5584 GB, free: 43.76 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001293/0.6124, allocations: 1.028 MB / 0.5594 GB, free: 42.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001201/0.6136, allocations: 229.4 kB / 0.5596 GB, free: 42.51 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007651/0.6213, allocations: 3.859 MB / 0.5634 GB, free: 38.62 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00165/0.623, allocations: 2.143 MB / 0.5655 GB, free: 36.45 MB / 378.7 MB Notification: Performance of SimCode: time 1.603e-06/0.623, allocations: 0 / 0.5655 GB, free: 36.45 MB / 378.7 MB Notification: Performance of Templates: time 0.02823/0.6512, allocations: 18.34 MB / 0.5834 GB, free: 18.45 MB / 378.7 MB make -j1 -f HanserModelica_HanserModelica.Electrical.StarPolygon.makefile (rm -f HanserModelica_HanserModelica.Electrical.StarPolygon.pipe ; mkfifo HanserModelica_HanserModelica.Electrical.StarPolygon.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Electrical.StarPolygon.pipe >> ../files/HanserModelica_HanserModelica.Electrical.StarPolygon.sim & ./HanserModelica_HanserModelica.Electrical.StarPolygon -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.Electrical.StarPolygon.pipe 2>&1)