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.001738/0.001737, allocations: 110.2 kB / 16.41 MB, free: 6.477 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.46/1.46, allocations: 222.9 MB / 240.1 MB, free: 4.555 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.001472/0.001472, allocations: 196.4 kB / 290.4 MB, free: 2.262 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03414/0.03414, allocations: 8.792 MB / 349.3 MB, free: 4.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001462, allocations: 83.86 kB / 464.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09926/0.1007, allocations: 51.56 MB / 0.5041 GB, free: 9.516 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.005593/0.1064, allocations: 4.071 MB / 0.508 GB, free: 5.426 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002283/0.1087, allocations: 1.106 MB / 0.5091 GB, free: 4.316 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005605/0.1093, allocations: 27.88 kB / 0.5091 GB, free: 4.289 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005096/0.1098, allocations: 174.6 kB / 0.5093 GB, free: 4.117 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001104/0.1109, allocations: 270.5 kB / 0.5096 GB, free: 3.852 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005163/0.1115, allocations: 167.7 kB / 0.5097 GB, free: 3.688 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00246/0.1139, allocations: 2.432 MB / 0.5121 GB, free: 1.246 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003066/0.117, allocations: 2.518 MB / 0.5146 GB, free: 14.66 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001588/0.1186, allocations: 1.164 MB / 0.5157 GB, free: 13.5 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002204/0.1209, allocations: 1.358 MB / 0.517 GB, free: 12.13 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007437/0.1216, allocations: 319.9 kB / 0.5173 GB, free: 11.82 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009578/0.1226, allocations: 328 kB / 0.5176 GB, free: 11.5 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001041/0.1236, allocations: 0.8376 MB / 0.5185 GB, free: 10.66 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001954/0.1256, allocations: 1.42 MB / 0.5198 GB, free: 9.234 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003224/0.1288, allocations: 4.035 MB / 0.5238 GB, free: 5.188 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.1289, allocations: 0 / 0.5238 GB, free: 5.188 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1289, allocations: 0 / 0.5238 GB, free: 5.188 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.553e-05/0.1289, allocations: 0 / 0.5238 GB, free: 5.188 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.004991/0.1339, allocations: 2.875 MB / 0.5266 GB, free: 2.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.134, allocations: 15.97 kB / 0.5266 GB, free: 2.234 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004858/0.1345, allocations: 269.8 kB / 0.5269 GB, free: 1.969 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002576/0.1371, allocations: 1.502 MB / 0.5283 GB, free: 416 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001192/0.1372, allocations: 172.9 kB / 0.5285 GB, free: 240 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003028/0.1375, allocations: 240 kB / 0.5287 GB, free: 0 / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2191/0.3567, allocations: 3.182 MB / 0.5318 GB, free: 23.11 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.368e-05/0.3567, allocations: 0 / 0.5318 GB, free: 23.11 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002009/0.3569, allocations: 93.48 kB / 0.5319 GB, free: 23.11 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.798e-05/0.357, allocations: 55.06 kB / 0.532 GB, free: 23.11 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004293/0.3613, allocations: 2.649 MB / 0.5346 GB, free: 23.08 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01249/0.3738, allocations: 7.792 MB / 0.5422 GB, free: 21.47 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002558/0.3764, allocations: 3.085 MB / 0.5452 GB, free: 19 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001785/0.3782, allocations: 1.058 MB / 0.5462 GB, free: 18.67 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.311e-05/0.3783, allocations: 20.23 kB / 0.5462 GB, free: 18.67 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001345/0.3796, allocations: 0.9783 MB / 0.5472 GB, free: 18.15 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 3.206e-06/0.3797, allocations: 3.656 kB / 0.5472 GB, free: 18.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=127): time 0.00725/0.3869, allocations: 4.469 MB / 0.5516 GB, free: 15.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.833e-05/0.387, allocations: 209.8 kB / 0.5518 GB, free: 15.41 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001784/0.3888, allocations: 1.229 MB / 0.553 GB, free: 14.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001324/0.389, allocations: 53.39 kB / 0.553 GB, free: 14.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000787/0.3898, allocations: 0.9514 MB / 0.5539 GB, free: 13.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002753/0.3901, allocations: 430.8 kB / 0.5543 GB, free: 13.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003542/0.3904, allocations: 244.2 kB / 0.5546 GB, free: 13.39 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.441e-05/0.3905, allocations: 360.8 kB / 0.5549 GB, free: 13.04 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001006/0.3915, allocations: 0.6667 MB / 0.5556 GB, free: 12.7 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001115/0.3927, allocations: 0.9845 MB / 0.5565 GB, free: 11.99 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002194/0.3949, allocations: 1.646 MB / 0.5581 GB, free: 10.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.3949, allocations: 3.969 kB / 0.5581 GB, free: 10.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.003176/0.3981, allocations: 2.04 MB / 0.5601 GB, free: 9.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.635e-05/0.3981, allocations: 8.156 kB / 0.5601 GB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/0.3981, allocations: 7.531 kB / 0.5602 GB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006277/0.3987, allocations: 295 kB / 0.5604 GB, free: 9.777 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000906/0.3997, allocations: 265.8 kB / 0.5607 GB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003643/0.4033, allocations: 4.064 MB / 0.5647 GB, free: 5.934 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009118/0.4042, allocations: 83.98 kB / 0.5647 GB, free: 5.852 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.685e-05/0.4043, allocations: 48 kB / 0.5648 GB, free: 5.805 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.001241/0.4056, allocations: 0.8429 MB / 0.5656 GB, free: 4.953 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001774/0.4058, allocations: 134.4 kB / 0.5657 GB, free: 4.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002592/0.406, allocations: 177.3 kB / 0.5659 GB, free: 4.645 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/0.406, allocations: 19.22 kB / 0.5659 GB, free: 4.629 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.514e-05/0.4061, allocations: 4 kB / 0.5659 GB, free: 4.625 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.878e-06/0.4061, allocations: 3.984 kB / 0.5659 GB, free: 4.621 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005557/0.4117, allocations: 4.255 MB / 0.5701 GB, free: 324 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/0.4117, allocations: 4 kB / 0.5701 GB, free: 320 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007189/0.4124, allocations: 195.6 kB / 0.5703 GB, free: 128 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005449/0.413, allocations: 268.8 kB / 0.5705 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-05/0.4131, allocations: 48.84 kB / 0.5706 GB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004624/0.4177, allocations: 4.012 MB / 0.5745 GB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.132e-06/0.4177, allocations: 6.594 kB / 0.5745 GB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004445/0.4222, allocations: 2.851 MB / 0.5773 GB, free: 8.785 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001036/0.4232, allocations: 367.4 kB / 0.5776 GB, free: 8.406 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001902/0.4234, allocations: 43.97 kB / 0.5777 GB, free: 8.363 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006309/0.4241, allocations: 71.94 kB / 0.5777 GB, free: 8.293 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002646/0.4243, allocations: 132.8 kB / 0.5779 GB, free: 8.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.941e-05/0.4244, allocations: 39.97 kB / 0.5779 GB, free: 8.121 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0011/0.4255, allocations: 0.8578 MB / 0.5787 GB, free: 7.254 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4255, allocations: 0 / 0.5787 GB, free: 7.254 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001408/0.427, allocations: 444 kB / 0.5792 GB, free: 6.82 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.0002176/0.4272, allocations: 163 kB / 0.5793 GB, free: 6.656 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002825/0.43, allocations: 1.837 MB / 0.5811 GB, free: 4.805 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.349e-06/0.43, allocations: 4.062 kB / 0.5811 GB, free: 4.801 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001682/0.4317, allocations: 1.146 MB / 0.5822 GB, free: 3.648 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001302/0.433, allocations: 300.3 kB / 0.5825 GB, free: 3.371 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007265/0.4403, allocations: 4.606 MB / 0.587 GB, free: 14.73 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001565/0.4419, allocations: 1.992 MB / 0.589 GB, free: 12.7 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004656/0.4424, allocations: 95.42 kB / 0.5891 GB, free: 12.61 MB / 398.1 MB Notification: Performance of SimCode: time 7.22e-07/0.4424, allocations: 0 / 0.5891 GB, free: 12.61 MB / 398.1 MB Notification: Performance of Templates: time 0.05029/0.4927, allocations: 36.6 MB / 0.6248 GB, free: 8.066 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)