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.0008364/0.0008362, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.375/1.375, allocations: 223.3 MB / 239.4 MB, free: 5.402 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.001375/0.001375, allocations: 180.5 kB / 290.6 MB, free: 2.074 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03375/0.03375, allocations: 8.802 MB / 350.5 MB, free: 4.574 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003964/0.0003964, allocations: 12.2 kB / 413.8 MB, free: 42.76 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1093, allocations: 52.56 MB / 466.4 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.005007/0.1143, allocations: 3.676 MB / 470 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002934/0.1173, allocations: 1.095 MB / 471.1 MB, free: 8.316 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006617/0.118, allocations: 27.88 kB / 471.2 MB, free: 8.289 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005107/0.1185, allocations: 135.1 kB / 471.3 MB, free: 8.156 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001246/0.1198, allocations: 250.8 kB / 471.5 MB, free: 7.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004968/0.1203, allocations: 147.8 kB / 471.7 MB, free: 7.766 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002871/0.1232, allocations: 2.572 MB / 474.3 MB, free: 5.184 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002963/0.1262, allocations: 2.158 MB / 476.4 MB, free: 2.965 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001513/0.1277, allocations: 0.8052 MB / 477.2 MB, free: 2.156 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00226/0.13, allocations: 1.081 MB / 478.3 MB, free: 1.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005351/0.1305, allocations: 132 kB / 478.4 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008179/0.1314, allocations: 136 kB / 478.6 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008261/0.1322, allocations: 0.6072 MB / 479.2 MB, free: 204 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002347/0.1346, allocations: 1.179 MB / 480.4 MB, free: 15 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003415/0.138, allocations: 3.745 MB / 484.1 MB, free: 11.25 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.138, allocations: 7.984 kB / 484.1 MB, free: 11.24 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.138, allocations: 0 / 484.1 MB, free: 11.24 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.644e-05/0.1381, allocations: 0 / 484.1 MB, free: 11.24 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.004158/0.1422, allocations: 2.438 MB / 486.5 MB, free: 8.738 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.1423, allocations: 8.031 kB / 486.5 MB, free: 8.73 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004761/0.1428, allocations: 281.7 kB / 486.8 MB, free: 8.453 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002019/0.1448, allocations: 1.459 MB / 488.3 MB, free: 6.934 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001583/0.145, allocations: 176.9 kB / 488.5 MB, free: 6.758 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003498/0.1453, allocations: 232.1 kB / 488.7 MB, free: 6.531 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004792/0.1501, allocations: 3.202 MB / 491.9 MB, free: 3.25 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.593e-05/0.1502, allocations: 7.938 kB / 491.9 MB, free: 3.242 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000205/0.1504, allocations: 92 kB / 492 MB, free: 3.152 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.002e-05/0.1504, allocations: 56 kB / 492 MB, free: 3.098 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004121/0.1546, allocations: 2.684 MB / 494.7 MB, free: 408 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01149/0.1661, allocations: 7.99 MB / 0.4909 GB, free: 8.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002815/0.1689, allocations: 3.096 MB / 0.494 GB, free: 4.805 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001638/0.1705, allocations: 1.072 MB / 0.495 GB, free: 3.73 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.086e-05/0.1706, allocations: 16.98 kB / 0.495 GB, free: 3.715 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001474/0.1721, allocations: 0.9958 MB / 0.496 GB, free: 2.688 MB / 334.1 MB Notification: Performance of pre-optimization done (n=122): time 2.915e-06/0.1721, allocations: 0 / 0.496 GB, free: 2.688 MB / 334.1 MB Notification: Performance of matching and sorting (n=127): time 0.007403/0.1795, allocations: 4.546 MB / 0.5004 GB, free: 14.08 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/0.1797, allocations: 209.2 kB / 0.5006 GB, free: 13.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001752/0.1814, allocations: 1.223 MB / 0.5018 GB, free: 12.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.726e-05/0.1815, allocations: 57.69 kB / 0.5019 GB, free: 12.53 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007642/0.1823, allocations: 0.9589 MB / 0.5028 GB, free: 11.56 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003667/0.1827, allocations: 433.8 kB / 0.5032 GB, free: 11.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001738/0.1829, allocations: 125.6 kB / 0.5033 GB, free: 11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.183, allocations: 357.9 kB / 0.5037 GB, free: 10.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001119/0.1841, allocations: 0.6817 MB / 0.5044 GB, free: 9.961 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001299/0.1855, allocations: 0.9895 MB / 0.5053 GB, free: 8.859 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002361/0.1878, allocations: 1.682 MB / 0.507 GB, free: 7.082 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.47e-05/0.1878, allocations: 4 kB / 0.507 GB, free: 7.078 MB / 350.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.003303/0.1912, allocations: 2.07 MB / 0.509 GB, free: 4.992 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.465e-05/0.1912, allocations: 11.94 kB / 0.509 GB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.659e-05/0.1912, allocations: 11.94 kB / 0.509 GB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006802/0.1919, allocations: 281.9 kB / 0.5093 GB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009978/0.1929, allocations: 263.6 kB / 0.5095 GB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004634/0.1976, allocations: 3.777 MB / 0.5132 GB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008372/0.1984, allocations: 99.98 kB / 0.5133 GB, free: 432 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000102/0.1985, allocations: 48 kB / 0.5134 GB, free: 384 kB / 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.001391/0.1999, allocations: 0.847 MB / 0.5142 GB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002265/0.2002, allocations: 134.4 kB / 0.5143 GB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003975/0.2006, allocations: 173.3 kB / 0.5145 GB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.257e-05/0.2006, allocations: 16 kB / 0.5145 GB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.269e-05/0.2006, allocations: 4 kB / 0.5145 GB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.112e-05/0.2007, allocations: 3.984 kB / 0.5145 GB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007015/0.2077, allocations: 4.325 MB / 0.5187 GB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.313e-06/0.2077, allocations: 4 kB / 0.5187 GB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007707/0.2085, allocations: 195.9 kB / 0.5189 GB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005382/0.209, allocations: 269.2 kB / 0.5192 GB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.818e-05/0.2091, allocations: 47.91 kB / 0.5192 GB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004223/0.2134, allocations: 3.718 MB / 0.5229 GB, free: 6.422 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.2134, allocations: 4.031 kB / 0.5229 GB, free: 6.418 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004136/0.2175, allocations: 2.894 MB / 0.5257 GB, free: 3.492 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006469/0.2182, allocations: 363.4 kB / 0.526 GB, free: 3.117 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002711/0.2185, allocations: 47.97 kB / 0.5261 GB, free: 3.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007247/0.2192, allocations: 79.94 kB / 0.5261 GB, free: 2.992 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002567/0.2195, allocations: 128.8 kB / 0.5263 GB, free: 2.867 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.263e-05/0.2195, allocations: 43.97 kB / 0.5263 GB, free: 2.824 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001219/0.2208, allocations: 0.8578 MB / 0.5272 GB, free: 1.957 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2208, allocations: 0 / 0.5272 GB, free: 1.957 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001419/0.2222, allocations: 448 kB / 0.5276 GB, free: 1.52 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.0002362/0.2225, allocations: 151.1 kB / 0.5277 GB, free: 1.363 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.1926/0.415, allocations: 1.852 MB / 0.5295 GB, free: 67.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.297e-06/0.4151, allocations: 0 / 0.5295 GB, free: 67.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001929/0.417, allocations: 1.105 MB / 0.5306 GB, free: 67.78 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001788/0.4188, allocations: 285.3 kB / 0.5309 GB, free: 67.77 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007744/0.4266, allocations: 5.706 MB / 0.5365 GB, free: 65.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001883/0.4285, allocations: 2.022 MB / 0.5384 GB, free: 64.53 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001053/0.4295, allocations: 371.8 kB / 0.5388 GB, free: 64.49 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002807/0.4298, allocations: 87.84 kB / 0.5389 GB, free: 64.48 MB / 366.1 MB Notification: Performance of SimCode: time 7.02e-07/0.4298, allocations: 1 kB / 0.5389 GB, free: 64.48 MB / 366.1 MB Notification: Performance of Templates: time 0.03041/0.4602, allocations: 19.52 MB / 0.5579 GB, free: 54.04 MB / 366.1 MB make -j1 -f HanserModelica_HanserModelica.Electrical.StarPolygon.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: