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.004737/0.004737, allocations: 95.92 kB / 15.73 MB, free: 6.039 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.289/1.289, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.001278/0.001278, allocations: 192.5 kB / 289.7 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.03393/0.03393, allocations: 8.793 MB / 348.6 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 91.84 kB / 463.9 MB, free: 13.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08602/0.08743, allocations: 51.56 MB / 0.5034 GB, free: 9.508 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.004975/0.09244, allocations: 4.078 MB / 0.5074 GB, free: 5.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002052/0.09452, allocations: 1.098 MB / 0.5084 GB, free: 4.309 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000426/0.09497, allocations: 27.88 kB / 0.5085 GB, free: 4.281 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004047/0.09539, allocations: 166.7 kB / 0.5086 GB, free: 4.117 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009021/0.0963, allocations: 278.4 kB / 0.5089 GB, free: 3.844 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004134/0.09673, allocations: 171.7 kB / 0.5091 GB, free: 3.676 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002158/0.09889, allocations: 2.428 MB / 0.5114 GB, free: 1.238 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002744/0.1017, allocations: 2.51 MB / 0.5139 GB, free: 14.66 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001407/0.1031, allocations: 1.168 MB / 0.515 GB, free: 13.49 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001871/0.105, allocations: 1.354 MB / 0.5163 GB, free: 12.13 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006033/0.1056, allocations: 315.9 kB / 0.5166 GB, free: 11.82 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007671/0.1064, allocations: 324 kB / 0.5169 GB, free: 11.51 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009097/0.1073, allocations: 0.8454 MB / 0.5178 GB, free: 10.66 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002174/0.1095, allocations: 1.416 MB / 0.5192 GB, free: 9.238 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003967/0.1134, allocations: 4.056 MB / 0.5231 GB, free: 5.168 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1135, allocations: 0 / 0.5231 GB, free: 5.168 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1135, allocations: 0 / 0.5231 GB, free: 5.168 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001577/0.1136, allocations: 0 / 0.5231 GB, free: 5.168 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.005828/0.1195, allocations: 2.942 MB / 0.526 GB, free: 2.16 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.1195, allocations: 15.91 kB / 0.526 GB, free: 2.145 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005412/0.1201, allocations: 291.2 kB / 0.5263 GB, free: 1.859 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002148/0.1222, allocations: 1.503 MB / 0.5278 GB, free: 304 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001206/0.1224, allocations: 176.9 kB / 0.5279 GB, free: 124 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.1871/0.3095, allocations: 232.6 kB / 0.5281 GB, free: 23.33 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006341/0.3159, allocations: 3.182 MB / 0.5312 GB, free: 23.12 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.268e-05/0.316, allocations: 2.906 kB / 0.5313 GB, free: 23.12 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003155/0.3163, allocations: 93.16 kB / 0.5313 GB, free: 23.12 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-05/0.3164, allocations: 56.81 kB / 0.5314 GB, free: 23.12 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004672/0.321, allocations: 2.65 MB / 0.534 GB, free: 23.09 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01354/0.3346, allocations: 7.816 MB / 0.5416 GB, free: 21.47 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002438/0.3371, allocations: 3.081 MB / 0.5446 GB, free: 19 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001797/0.3389, allocations: 1.057 MB / 0.5457 GB, free: 18.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.893e-05/0.339, allocations: 19.73 kB / 0.5457 GB, free: 18.68 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001431/0.3404, allocations: 0.9822 MB / 0.5466 GB, free: 18.18 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 3.928e-06/0.3404, allocations: 0 / 0.5466 GB, free: 18.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=127): time 0.006854/0.3473, allocations: 4.506 MB / 0.551 GB, free: 15.72 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.631e-05/0.3474, allocations: 203.3 kB / 0.5512 GB, free: 15.49 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001578/0.349, allocations: 1.227 MB / 0.5524 GB, free: 14.83 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.711e-05/0.3491, allocations: 53.14 kB / 0.5525 GB, free: 14.78 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006396/0.3497, allocations: 0.9811 MB / 0.5534 GB, free: 14.05 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002461/0.35, allocations: 453.1 kB / 0.5539 GB, free: 13.68 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003333/0.3503, allocations: 244.7 kB / 0.5541 GB, free: 13.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.229e-05/0.3504, allocations: 356.9 kB / 0.5544 GB, free: 13.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009703/0.3514, allocations: 0.6689 MB / 0.5551 GB, free: 12.86 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001115/0.3525, allocations: 0.985 MB / 0.5561 GB, free: 12.15 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002037/0.3546, allocations: 1.653 MB / 0.5577 GB, free: 11.12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.757e-06/0.3546, allocations: 0 / 0.5577 GB, free: 11.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.002876/0.3575, allocations: 2.042 MB / 0.5597 GB, free: 10.06 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/0.3575, allocations: 12.58 kB / 0.5597 GB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.441e-05/0.3575, allocations: 7.688 kB / 0.5597 GB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005282/0.358, allocations: 292.9 kB / 0.56 GB, free: 9.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009296/0.359, allocations: 265.6 kB / 0.5602 GB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00363/0.3626, allocations: 4.069 MB / 0.5642 GB, free: 5.918 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008795/0.3635, allocations: 87.98 kB / 0.5643 GB, free: 5.832 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.347e-05/0.3636, allocations: 48 kB / 0.5643 GB, free: 5.785 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.001046/0.3647, allocations: 0.8363 MB / 0.5651 GB, free: 4.941 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002149/0.3649, allocations: 147.2 kB / 0.5653 GB, free: 4.797 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003177/0.3652, allocations: 181.2 kB / 0.5654 GB, free: 4.621 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-06/0.3652, allocations: 14.06 kB / 0.5655 GB, free: 4.609 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.454e-05/0.3653, allocations: 4 kB / 0.5655 GB, free: 4.605 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/0.3653, allocations: 3.984 kB / 0.5655 GB, free: 4.602 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005288/0.3706, allocations: 4.254 MB / 0.5696 GB, free: 300 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.3706, allocations: 0 / 0.5696 GB, free: 300 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007088/0.3713, allocations: 191.7 kB / 0.5698 GB, free: 108 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00054/0.3719, allocations: 272.9 kB / 0.5701 GB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.829e-05/0.372, allocations: 43.97 kB / 0.5701 GB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004382/0.3764, allocations: 4.023 MB / 0.574 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.3764, allocations: 3.828 kB / 0.574 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004191/0.3806, allocations: 2.863 MB / 0.5768 GB, free: 8.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006585/0.3813, allocations: 364.1 kB / 0.5772 GB, free: 8.375 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002517/0.3815, allocations: 51.97 kB / 0.5772 GB, free: 8.324 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000674/0.3822, allocations: 77.73 kB / 0.5773 GB, free: 8.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000244/0.3825, allocations: 120.8 kB / 0.5774 GB, free: 8.129 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.234e-05/0.3825, allocations: 43.97 kB / 0.5775 GB, free: 8.086 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00113/0.3837, allocations: 0.8656 MB / 0.5783 GB, free: 7.211 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3837, allocations: 0 / 0.5783 GB, free: 7.211 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001364/0.385, allocations: 440 kB / 0.5787 GB, free: 6.781 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.0002253/0.3853, allocations: 158.1 kB / 0.5789 GB, free: 6.621 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003094/0.3884, allocations: 1.845 MB / 0.5807 GB, free: 4.766 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.081e-06/0.3884, allocations: 4 kB / 0.5807 GB, free: 4.762 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001713/0.3901, allocations: 1.081 MB / 0.5817 GB, free: 3.672 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001355/0.3915, allocations: 307.2 kB / 0.582 GB, free: 3.395 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007344/0.3988, allocations: 4.652 MB / 0.5866 GB, free: 14.7 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001706/0.4006, allocations: 2.015 MB / 0.5885 GB, free: 12.65 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008794/0.4015, allocations: 370.3 kB / 0.5889 GB, free: 12.28 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000281/0.4018, allocations: 91.42 kB / 0.589 GB, free: 12.19 MB / 398.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4018, allocations: 0 / 0.589 GB, free: 12.19 MB / 398.1 MB Notification: Performance of Templates: time 0.03158/0.4333, allocations: 21.23 MB / 0.6097 GB, free: 7.18 MB / 414.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)