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.001189/0.001189, allocations: 115.3 kB / 15.34 MB, free: 0.5117 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.347/1.347, allocations: 222.9 MB / 239 MB, free: 4.742 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.001625/0.001625, allocations: 196.2 kB / 289.3 MB, free: 2.477 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03272/0.03272, allocations: 8.795 MB / 348.2 MB, free: 4.863 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 73.53 kB / 410.6 MB, free: 42.32 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1048, allocations: 51.57 MB / 462.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.006033/0.1108, allocations: 4.08 MB / 466.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002226/0.1131, allocations: 1.094 MB / 467.3 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002873/0.1134, allocations: 27.88 kB / 467.3 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004187/0.1139, allocations: 135.1 kB / 467.5 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007582/0.1147, allocations: 254.7 kB / 467.7 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003882/0.1151, allocations: 143.9 kB / 467.9 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002148/0.1172, allocations: 2.424 MB / 470.3 MB, free: 6.598 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002791/0.12, allocations: 2.511 MB / 472.8 MB, free: 4.027 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001756/0.1218, allocations: 1.164 MB / 474 MB, free: 2.859 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001721/0.1235, allocations: 1.386 MB / 475.4 MB, free: 1.469 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003612/0.1239, allocations: 320 kB / 475.7 MB, free: 1.156 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005012/0.1244, allocations: 328 kB / 476 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007196/0.1251, allocations: 0.8415 MB / 476.8 MB, free: 15.99 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001874/0.127, allocations: 1.42 MB / 478.2 MB, free: 14.56 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003726/0.1308, allocations: 3.988 MB / 482.2 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.426e-06/0.1308, allocations: 0 / 482.2 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.1308, allocations: 0 / 482.2 MB, free: 10.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.25e-05/0.1309, allocations: 0 / 482.2 MB, free: 10.57 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.005498/0.1364, allocations: 2.875 MB / 485.1 MB, free: 7.625 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.1365, allocations: 12.03 kB / 485.1 MB, free: 7.613 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000555/0.137, allocations: 273.8 kB / 485.4 MB, free: 7.344 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002129/0.1392, allocations: 1.459 MB / 486.8 MB, free: 5.824 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001421/0.1393, allocations: 168.9 kB / 487 MB, free: 5.656 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003401/0.1397, allocations: 248 kB / 487.3 MB, free: 5.414 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005036/0.1447, allocations: 3.178 MB / 490.4 MB, free: 2.156 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.059e-05/0.1448, allocations: 7.938 kB / 490.4 MB, free: 2.148 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002302/0.145, allocations: 99.98 kB / 490.5 MB, free: 2.051 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.135e-05/0.1451, allocations: 60 kB / 490.6 MB, free: 1.992 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00407/0.1491, allocations: 2.641 MB / 493.2 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0119/0.1611, allocations: 7.908 MB / 0.4894 GB, free: 7.27 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002824/0.1639, allocations: 3.096 MB / 0.4924 GB, free: 3.824 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001464/0.1654, allocations: 1.033 MB / 0.4934 GB, free: 2.789 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.771e-05/0.1655, allocations: 13.47 kB / 0.4934 GB, free: 2.777 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001447/0.1669, allocations: 0.9774 MB / 0.4944 GB, free: 1.77 MB / 334.1 MB Notification: Performance of pre-optimization done (n=122): time 4.138e-06/0.167, allocations: 3.984 kB / 0.4944 GB, free: 1.766 MB / 334.1 MB Notification: Performance of matching and sorting (n=127): time 0.00766/0.1746, allocations: 4.468 MB / 0.4988 GB, free: 13.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001214/0.1748, allocations: 209.2 kB / 0.499 GB, free: 13 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001644/0.1764, allocations: 1.223 MB / 0.5002 GB, free: 11.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.3e-05/0.1765, allocations: 53.7 kB / 0.5002 GB, free: 11.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007957/0.1773, allocations: 0.9588 MB / 0.5011 GB, free: 10.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003109/0.1777, allocations: 433.9 kB / 0.5016 GB, free: 10.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003372/0.178, allocations: 238.9 kB / 0.5018 GB, free: 10.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.1781, allocations: 361.9 kB / 0.5021 GB, free: 9.695 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009678/0.1791, allocations: 0.6583 MB / 0.5028 GB, free: 9.039 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001192/0.1803, allocations: 0.9817 MB / 0.5037 GB, free: 7.941 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002239/0.1826, allocations: 1.647 MB / 0.5053 GB, free: 6.199 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.1826, allocations: 4 kB / 0.5053 GB, free: 6.195 MB / 350.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.003252/0.1858, allocations: 2.042 MB / 0.5073 GB, free: 4.137 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.802e-05/0.1859, allocations: 8 kB / 0.5074 GB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.697e-05/0.1859, allocations: 12.22 kB / 0.5074 GB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006154/0.1865, allocations: 285.9 kB / 0.5076 GB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009652/0.1875, allocations: 263.6 kB / 0.5079 GB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00455/0.1921, allocations: 4.081 MB / 0.5119 GB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001068/0.1932, allocations: 91.86 kB / 0.512 GB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.23e-05/0.1933, allocations: 48.06 kB / 0.512 GB, free: 15.22 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.001588/0.1949, allocations: 0.839 MB / 0.5128 GB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002247/0.1951, allocations: 134.4 kB / 0.513 GB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002995/0.1954, allocations: 173.3 kB / 0.5131 GB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/0.1954, allocations: 12 kB / 0.5131 GB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.559e-05/0.1954, allocations: 12 kB / 0.5131 GB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.053e-05/0.1955, allocations: 7.984 kB / 0.5131 GB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006294/0.2018, allocations: 4.274 MB / 0.5173 GB, free: 9.684 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.807e-06/0.2018, allocations: 7.938 kB / 0.5173 GB, free: 9.676 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007993/0.2026, allocations: 195.8 kB / 0.5175 GB, free: 9.484 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005613/0.2032, allocations: 273.2 kB / 0.5178 GB, free: 9.215 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.985e-05/0.2033, allocations: 43.97 kB / 0.5178 GB, free: 9.172 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004419/0.2077, allocations: 4.016 MB / 0.5217 GB, free: 5.012 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.2077, allocations: 4.031 kB / 0.5217 GB, free: 5.008 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004335/0.2121, allocations: 2.839 MB / 0.5245 GB, free: 2.141 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000768/0.2129, allocations: 367.4 kB / 0.5249 GB, free: 1.762 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002233/0.2131, allocations: 43.97 kB / 0.5249 GB, free: 1.719 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006115/0.2137, allocations: 71.92 kB / 0.525 GB, free: 1.648 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003018/0.214, allocations: 140.8 kB / 0.5251 GB, free: 1.512 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.495e-05/0.2141, allocations: 43.97 kB / 0.5252 GB, free: 1.469 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001242/0.2153, allocations: 0.8539 MB / 0.526 GB, free: 0.6055 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2154, allocations: 0 / 0.526 GB, free: 0.6055 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001436/0.2168, allocations: 444 kB / 0.5264 GB, free: 176 kB / 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.0002562/0.2171, allocations: 159 kB / 0.5266 GB, free: 4 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.2013/0.4184, allocations: 2.555 MB / 0.5291 GB, free: 69.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.987e-06/0.4185, allocations: 1.438 kB / 0.5291 GB, free: 69.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001649/0.4201, allocations: 1.088 MB / 0.5301 GB, free: 69.36 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001604/0.4217, allocations: 307.8 kB / 0.5304 GB, free: 69.34 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00798/0.4297, allocations: 5.601 MB / 0.5359 GB, free: 66.89 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001961/0.4317, allocations: 2.019 MB / 0.5379 GB, free: 66.13 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001173/0.4329, allocations: 366.1 kB / 0.5382 GB, free: 66.1 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003107/0.4332, allocations: 90.61 kB / 0.5383 GB, free: 66.09 MB / 366.1 MB Notification: Performance of SimCode: time 5.82e-07/0.4332, allocations: 4 kB / 0.5383 GB, free: 66.09 MB / 366.1 MB Notification: Performance of Templates: time 0.03037/0.4636, allocations: 20.6 MB / 0.5584 GB, free: 52.46 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)