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/ModelicaServices 4.0.0+maint.om/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/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) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 109 kB / 16.41 MB, free: 6.488 MB / 14.72 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: 222.9 MB / 240.1 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001356/0.001356, allocations: 180.5 kB / 290.4 MB, free: 2.105 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03426/0.03426, allocations: 8.795 MB / 349.3 MB, free: 4.562 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 79.88 kB / 464.6 MB, free: 13.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08485/0.08631, allocations: 51.56 MB / 0.5041 GB, free: 9.426 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.004758/0.09111, allocations: 4.073 MB / 0.508 GB, free: 5.332 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001725/0.09285, allocations: 1.102 MB / 0.5091 GB, free: 4.227 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002144/0.09308, allocations: 31.88 kB / 0.5091 GB, free: 4.195 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003199/0.09341, allocations: 162.7 kB / 0.5093 GB, free: 4.035 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006518/0.09408, allocations: 282.4 kB / 0.5096 GB, free: 3.758 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003067/0.0944, allocations: 167.7 kB / 0.5097 GB, free: 3.594 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001963/0.09637, allocations: 2.436 MB / 0.5121 GB, free: 1.148 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002312/0.09869, allocations: 2.51 MB / 0.5146 GB, free: 14.57 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001115/0.09982, allocations: 1.168 MB / 0.5157 GB, free: 13.4 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001409/0.1012, allocations: 1.354 MB / 0.517 GB, free: 12.04 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000361/0.1016, allocations: 323.9 kB / 0.5173 GB, free: 11.73 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004802/0.1021, allocations: 316 kB / 0.5176 GB, free: 11.42 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006089/0.1027, allocations: 0.8377 MB / 0.5184 GB, free: 10.58 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001216/0.1039, allocations: 1.423 MB / 0.5198 GB, free: 9.148 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002943/0.1069, allocations: 4.035 MB / 0.5238 GB, free: 5.102 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1069, allocations: 0 / 0.5238 GB, free: 5.102 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1069, allocations: 0 / 0.5238 GB, free: 5.102 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.128e-05/0.107, allocations: 0 / 0.5238 GB, free: 5.102 MB / 366.1 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.004483/0.1114, allocations: 2.875 MB / 0.5266 GB, free: 2.164 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.1115, allocations: 15.97 kB / 0.5266 GB, free: 2.148 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004593/0.112, allocations: 273.7 kB / 0.5269 GB, free: 1.879 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001928/0.1139, allocations: 1.498 MB / 0.5283 GB, free: 328 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001196/0.114, allocations: 168.9 kB / 0.5285 GB, free: 156 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.1968/0.3108, allocations: 235.5 kB / 0.5287 GB, free: 23.15 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006347/0.3172, allocations: 3.186 MB / 0.5318 GB, free: 22.95 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.18e-05/0.3173, allocations: 6.344 kB / 0.5318 GB, free: 22.95 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001986/0.3175, allocations: 94.08 kB / 0.5319 GB, free: 22.95 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.812e-05/0.3175, allocations: 55.91 kB / 0.532 GB, free: 22.95 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004059/0.3216, allocations: 2.65 MB / 0.5346 GB, free: 22.91 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01191/0.3335, allocations: 7.795 MB / 0.5422 GB, free: 21.37 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002403/0.336, allocations: 3.082 MB / 0.5452 GB, free: 18.9 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001726/0.3377, allocations: 1.061 MB / 0.5462 GB, free: 18.57 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.001e-05/0.3378, allocations: 13.61 kB / 0.5462 GB, free: 18.57 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001294/0.3391, allocations: 0.9815 MB / 0.5472 GB, free: 18.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 2.926e-06/0.3391, allocations: 0 / 0.5472 GB, free: 18.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=127): time 0.006833/0.3459, allocations: 4.474 MB / 0.5516 GB, free: 15.58 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.135e-05/0.346, allocations: 204.5 kB / 0.5517 GB, free: 15.35 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001481/0.3475, allocations: 1.225 MB / 0.5529 GB, free: 14.69 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.265e-05/0.3476, allocations: 57.94 kB / 0.553 GB, free: 14.63 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000612/0.3482, allocations: 0.9538 MB / 0.5539 GB, free: 13.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002208/0.3485, allocations: 428.6 kB / 0.5543 GB, free: 13.46 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003143/0.3488, allocations: 245.1 kB / 0.5546 GB, free: 13.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.326e-05/0.3489, allocations: 356.9 kB / 0.5549 GB, free: 12.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000914/0.3498, allocations: 0.6745 MB / 0.5556 GB, free: 12.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001056/0.3509, allocations: 0.9803 MB / 0.5565 GB, free: 11.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001972/0.3528, allocations: 1.649 MB / 0.5581 GB, free: 10.9 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/0.3528, allocations: 3.969 kB / 0.5581 GB, free: 10.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.002773/0.3556, allocations: 2.039 MB / 0.5601 GB, free: 9.844 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.558e-05/0.3557, allocations: 7.344 kB / 0.5601 GB, free: 9.844 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.432e-05/0.3557, allocations: 8.031 kB / 0.5602 GB, free: 9.844 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005767/0.3563, allocations: 295.5 kB / 0.5604 GB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000889/0.3572, allocations: 261.4 kB / 0.5607 GB, free: 9.648 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003558/0.3607, allocations: 4.065 MB / 0.5647 GB, free: 5.797 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008543/0.3616, allocations: 87.61 kB / 0.5647 GB, free: 5.715 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.679e-05/0.3617, allocations: 48.94 kB / 0.5648 GB, free: 5.668 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rootMeanSquare[5].mean.y_last,$PRE.rootMeanSquare[5].mean.y_last,rootMeanSquare[4].mean.y_last,$PRE.rootMeanSquare[4].mean.y_last,rootMeanSquare[3].mean.y_last,$PRE.rootMeanSquare[3].mean.y_last,rootMeanSquare[2].mean.y_last,$PRE.rootMeanSquare[2].mean.y_last,rootMeanSquare[1].mean.y_last,$PRE.rootMeanSquare[1].mean.y_last,switch.control[5],switch.control[4],switch.control[3],switch.control[2],switch.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00112/0.3628, allocations: 0.8507 MB / 0.5656 GB, free: 4.812 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001567/0.363, allocations: 130.4 kB / 0.5657 GB, free: 4.684 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000293/0.3633, allocations: 177.2 kB / 0.5659 GB, free: 4.508 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.3633, allocations: 16 kB / 0.5659 GB, free: 4.492 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-05/0.3633, allocations: 4 kB / 0.5659 GB, free: 4.488 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/0.3633, allocations: 7.969 kB / 0.5659 GB, free: 4.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005073/0.3684, allocations: 4.255 MB / 0.5701 GB, free: 180 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.3684, allocations: 0 / 0.5701 GB, free: 180 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007735/0.3692, allocations: 196.1 kB / 0.5703 GB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005262/0.3698, allocations: 263.6 kB / 0.5705 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.641e-05/0.3699, allocations: 43.97 kB / 0.5706 GB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004315/0.3742, allocations: 4.024 MB / 0.5745 GB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.3742, allocations: 3.938 kB / 0.5745 GB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003999/0.3782, allocations: 2.849 MB / 0.5773 GB, free: 8.648 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006263/0.3788, allocations: 363.4 kB / 0.5776 GB, free: 8.273 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001941/0.379, allocations: 43.98 kB / 0.5777 GB, free: 8.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006474/0.3797, allocations: 76.8 kB / 0.5777 GB, free: 8.156 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002765/0.38, allocations: 132.8 kB / 0.5779 GB, free: 8.023 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.909e-05/0.3801, allocations: 39.97 kB / 0.5779 GB, free: 7.984 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00107/0.3811, allocations: 0.8617 MB / 0.5788 GB, free: 7.113 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3812, allocations: 8 kB / 0.5788 GB, free: 7.105 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00135/0.3825, allocations: 440 kB / 0.5792 GB, free: 6.676 MB / 382.1 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,switch.control[1],switch.control[2],switch.control[3],switch.control[4],switch.control[5],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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002196/0.3827, allocations: 155.5 kB / 0.5793 GB, free: 6.516 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002869/0.3856, allocations: 1.828 MB / 0.5811 GB, free: 4.672 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/0.3856, allocations: 4 kB / 0.5811 GB, free: 4.668 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00171/0.3873, allocations: 1.155 MB / 0.5822 GB, free: 3.508 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001313/0.3887, allocations: 304.4 kB / 0.5825 GB, free: 3.23 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007177/0.3959, allocations: 4.603 MB / 0.587 GB, free: 14.59 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001437/0.3973, allocations: 1.992 MB / 0.589 GB, free: 12.56 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003902/0.3977, allocations: 95.42 kB / 0.5891 GB, free: 12.47 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3977, allocations: 0 / 0.5891 GB, free: 12.47 MB / 398.1 MB Notification: Performance of Templates: time 0.04318/0.4409, allocations: 36.6 MB / 0.6248 GB, free: 7.93 MB / 430.1 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)