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.01174/0.01174, allocations: 100.2 kB / 15.87 MB, free: 6.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.423/2.423, allocations: 222.9 MB / 239.5 MB, free: 4.809 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.002567/0.002567, allocations: 200.1 kB / 289.8 MB, free: 2.547 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06337/0.06337, allocations: 8.795 MB / 348.7 MB, free: 4.949 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002656/0.002657, allocations: 76.22 kB / 411.1 MB, free: 42.43 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1471/0.1498, allocations: 51.58 MB / 462.6 MB, free: 15 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.009925/0.1598, allocations: 4.075 MB / 466.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003827/0.1637, allocations: 1.106 MB / 467.8 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008271/0.1645, allocations: 23.88 kB / 467.8 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008123/0.1654, allocations: 139.1 kB / 468 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001607/0.1671, allocations: 258.7 kB / 468.2 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007364/0.1678, allocations: 139.9 kB / 468.4 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00462/0.1724, allocations: 2.58 MB / 470.9 MB, free: 6.645 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004904/0.1774, allocations: 2.17 MB / 473.1 MB, free: 4.414 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002288/0.1797, allocations: 0.9692 MB / 474.1 MB, free: 3.441 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003545/0.1833, allocations: 1.288 MB / 475.4 MB, free: 2.148 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001142/0.1845, allocations: 200 kB / 475.6 MB, free: 1.953 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001353/0.1859, allocations: 208 kB / 475.8 MB, free: 1.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001504/0.1874, allocations: 0.7126 MB / 476.5 MB, free: 1.035 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003528/0.191, allocations: 1.283 MB / 477.8 MB, free: 15.74 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005502/0.1965, allocations: 3.278 MB / 481 MB, free: 12.46 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.234e-05/0.1966, allocations: 0 / 481 MB, free: 12.46 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1966, allocations: 0 / 481 MB, free: 12.46 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001868/0.1968, allocations: 0 / 481 MB, free: 12.46 MB / 318.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.01226/0.2091, allocations: 2.879 MB / 483.9 MB, free: 9.516 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.186e-05/0.2092, allocations: 8.031 kB / 483.9 MB, free: 9.508 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001599/0.2108, allocations: 277.7 kB / 484.2 MB, free: 9.234 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00542/0.2163, allocations: 1.455 MB / 485.6 MB, free: 7.719 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003648/0.2167, allocations: 180.9 kB / 485.8 MB, free: 7.539 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001239/0.218, allocations: 244 kB / 486.1 MB, free: 7.301 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01257/0.2306, allocations: 3.178 MB / 489.2 MB, free: 4.043 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001297/0.2307, allocations: 11.92 kB / 489.3 MB, free: 4.031 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007407/0.2315, allocations: 96 kB / 489.3 MB, free: 3.938 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.059e-05/0.2316, allocations: 56 kB / 489.4 MB, free: 3.883 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01022/0.2419, allocations: 2.641 MB / 492 MB, free: 1.227 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02754/0.2694, allocations: 7.916 MB / 500 MB, free: 9.152 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005473/0.275, allocations: 3.088 MB / 0.4913 GB, free: 5.715 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003244/0.2783, allocations: 1.033 MB / 0.4923 GB, free: 4.68 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001358/0.2784, allocations: 16.98 kB / 0.4923 GB, free: 4.664 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002961/0.2814, allocations: 0.9727 MB / 0.4932 GB, free: 3.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=122): time 6.402e-06/0.2815, allocations: 4 kB / 0.4932 GB, free: 3.656 MB / 334.1 MB Notification: Performance of matching and sorting (n=127): time 0.01473/0.2962, allocations: 4.46 MB / 0.4976 GB, free: 15.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002059/0.2965, allocations: 209.2 kB / 0.4978 GB, free: 14.9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003733/0.3002, allocations: 1.223 MB / 0.499 GB, free: 13.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003189/0.3006, allocations: 57.69 kB / 0.499 GB, free: 13.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001628/0.3022, allocations: 0.9588 MB / 0.5 GB, free: 12.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008196/0.3031, allocations: 429.9 kB / 0.5004 GB, free: 12.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009103/0.304, allocations: 238.8 kB / 0.5006 GB, free: 11.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002472/0.3043, allocations: 361.9 kB / 0.501 GB, free: 11.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002271/0.3065, allocations: 0.6661 MB / 0.5016 GB, free: 10.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002698/0.3093, allocations: 0.9817 MB / 0.5026 GB, free: 9.832 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004671/0.314, allocations: 1.647 MB / 0.5042 GB, free: 8.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-05/0.314, allocations: 0 / 0.5042 GB, free: 8.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.006569/0.3206, allocations: 2.046 MB / 0.5062 GB, free: 6.027 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.329e-05/0.3207, allocations: 8 kB / 0.5062 GB, free: 6.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.793e-05/0.3207, allocations: 8 kB / 0.5062 GB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00118/0.3219, allocations: 285.6 kB / 0.5065 GB, free: 5.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001878/0.3238, allocations: 259.6 kB / 0.5067 GB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008685/0.3325, allocations: 3.769 MB / 0.5104 GB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001933/0.3345, allocations: 83.98 kB / 0.5105 GB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003067/0.3348, allocations: 48 kB / 0.5105 GB, free: 1.445 MB / 350.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.002949/0.3378, allocations: 0.8467 MB / 0.5113 GB, free: 0.5859 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006614/0.3385, allocations: 138.3 kB / 0.5115 GB, free: 460 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006939/0.3392, allocations: 169.3 kB / 0.5116 GB, free: 288 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.371e-05/0.3392, allocations: 19.98 kB / 0.5117 GB, free: 268 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.331e-05/0.3393, allocations: 4 kB / 0.5117 GB, free: 264 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.752e-05/0.3393, allocations: 3.984 kB / 0.5117 GB, free: 260 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01428/0.3536, allocations: 4.278 MB / 0.5158 GB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.354e-05/0.3537, allocations: 0 / 0.5158 GB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00161/0.3553, allocations: 191.8 kB / 0.516 GB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009484/0.3563, allocations: 277.1 kB / 0.5163 GB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001947/0.3565, allocations: 43.97 kB / 0.5163 GB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007988/0.3645, allocations: 3.695 MB / 0.5199 GB, free: 7.559 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.925e-06/0.3646, allocations: 3.984 kB / 0.5199 GB, free: 7.555 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008875/0.3735, allocations: 2.851 MB / 0.5227 GB, free: 4.676 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001358/0.3749, allocations: 359.6 kB / 0.5231 GB, free: 4.305 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006804/0.3756, allocations: 55.97 kB / 0.5231 GB, free: 4.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001458/0.3771, allocations: 71.88 kB / 0.5232 GB, free: 4.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005366/0.3776, allocations: 136.7 kB / 0.5233 GB, free: 4.047 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001615/0.3778, allocations: 39.97 kB / 0.5234 GB, free: 4.008 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002623/0.3804, allocations: 0.8617 MB / 0.5242 GB, free: 3.137 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.3805, allocations: 0 / 0.5242 GB, free: 3.137 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00298/0.3835, allocations: 440.1 kB / 0.5246 GB, free: 2.707 MB / 366.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.0004849/0.384, allocations: 158 kB / 0.5248 GB, free: 2.543 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006024/0.39, allocations: 1.824 MB / 0.5266 GB, free: 0.707 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.958e-06/0.39, allocations: 0 / 0.5266 GB, free: 0.707 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.305/0.6951, allocations: 1.148 MB / 0.5277 GB, free: 69.81 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002923/0.6981, allocations: 287.5 kB / 0.5279 GB, free: 69.8 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01381/0.7119, allocations: 5.613 MB / 0.5334 GB, free: 67.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003332/0.7153, allocations: 1.998 MB / 0.5354 GB, free: 66.59 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007869/0.7161, allocations: 89.97 kB / 0.5355 GB, free: 66.58 MB / 366.1 MB Notification: Performance of SimCode: time 1.894e-06/0.7161, allocations: 1.188 kB / 0.5355 GB, free: 66.58 MB / 366.1 MB Notification: Performance of Templates: time 0.0794/0.7955, allocations: 36.45 MB / 0.5711 GB, free: 40.31 MB / 366.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)