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.00828/0.00828, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.389/1.389, allocations: 222.9 MB / 239.4 MB, free: 4.547 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.001545/0.001545, allocations: 192.4 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.03592/0.03592, allocations: 8.784 MB / 348.6 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001649/0.001649, allocations: 83.86 kB / 463.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1257, allocations: 51.56 MB / 0.5034 GB, free: 9.484 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.005915/0.1317, allocations: 4.078 MB / 0.5074 GB, free: 5.387 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002553/0.1343, allocations: 1.098 MB / 0.5084 GB, free: 4.285 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006528/0.1349, allocations: 23.94 kB / 0.5085 GB, free: 4.262 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005397/0.1356, allocations: 170.6 kB / 0.5086 GB, free: 4.094 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00103/0.1366, allocations: 286.4 kB / 0.5089 GB, free: 3.812 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004226/0.137, allocations: 167.8 kB / 0.5091 GB, free: 3.648 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002117/0.1392, allocations: 2.42 MB / 0.5114 GB, free: 1.219 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002401/0.1416, allocations: 2.518 MB / 0.5139 GB, free: 14.64 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001318/0.1429, allocations: 1.176 MB / 0.515 GB, free: 13.46 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001476/0.1444, allocations: 1.35 MB / 0.5163 GB, free: 12.1 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003517/0.1447, allocations: 316 kB / 0.5167 GB, free: 11.79 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004404/0.1452, allocations: 316 kB / 0.517 GB, free: 11.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006799/0.1459, allocations: 0.8376 MB / 0.5178 GB, free: 10.64 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001478/0.1474, allocations: 1.427 MB / 0.5192 GB, free: 9.211 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003398/0.1508, allocations: 4.039 MB / 0.5231 GB, free: 5.16 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.79e-06/0.1508, allocations: 0 / 0.5231 GB, free: 5.16 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1508, allocations: 0 / 0.5231 GB, free: 5.16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.008e-05/0.1509, allocations: 0 / 0.5231 GB, free: 5.16 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.005138/0.156, allocations: 2.871 MB / 0.5259 GB, free: 2.227 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.1561, allocations: 12.03 kB / 0.5259 GB, free: 2.215 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000532/0.1566, allocations: 277.7 kB / 0.5262 GB, free: 1.941 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002263/0.1589, allocations: 1.498 MB / 0.5277 GB, free: 392 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001272/0.159, allocations: 176.9 kB / 0.5278 GB, free: 212 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.2628/0.4218, allocations: 235.2 kB / 0.528 GB, free: 23.28 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005523/0.4274, allocations: 3.186 MB / 0.5312 GB, free: 23.08 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.206e-05/0.4275, allocations: 5.719 kB / 0.5312 GB, free: 23.08 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001779/0.4277, allocations: 92.94 kB / 0.5312 GB, free: 23.08 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.614e-05/0.4277, allocations: 57.81 kB / 0.5313 GB, free: 23.08 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004055/0.4318, allocations: 2.649 MB / 0.5339 GB, free: 23.05 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01204/0.4438, allocations: 7.786 MB / 0.5415 GB, free: 21.43 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002661/0.4465, allocations: 3.082 MB / 0.5445 GB, free: 18.96 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001849/0.4484, allocations: 1.061 MB / 0.5455 GB, free: 18.64 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.246e-05/0.4485, allocations: 16.62 kB / 0.5456 GB, free: 18.63 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001541/0.45, allocations: 0.9809 MB / 0.5465 GB, free: 18.12 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 3.155e-06/0.45, allocations: 3.656 kB / 0.5465 GB, free: 18.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=127): time 0.007832/0.4579, allocations: 4.47 MB / 0.5509 GB, free: 15.62 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.486e-05/0.458, allocations: 203.5 kB / 0.5511 GB, free: 15.39 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001588/0.4596, allocations: 1.227 MB / 0.5523 GB, free: 14.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.96e-05/0.4597, allocations: 57.38 kB / 0.5523 GB, free: 14.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007245/0.4604, allocations: 0.9542 MB / 0.5533 GB, free: 13.86 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002395/0.4607, allocations: 435.2 kB / 0.5537 GB, free: 13.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003346/0.461, allocations: 240.2 kB / 0.5539 GB, free: 13.37 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.839e-05/0.4611, allocations: 364.9 kB / 0.5543 GB, free: 13.02 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000976/0.4621, allocations: 0.6617 MB / 0.5549 GB, free: 12.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001181/0.4633, allocations: 0.9886 MB / 0.5559 GB, free: 11.97 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0021/0.4654, allocations: 1.646 MB / 0.5575 GB, free: 10.94 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/0.4654, allocations: 4.906 kB / 0.5575 GB, free: 10.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.002693/0.4681, allocations: 2.043 MB / 0.5595 GB, free: 9.887 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.42e-05/0.4681, allocations: 7.812 kB / 0.5595 GB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/0.4681, allocations: 6.875 kB / 0.5595 GB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005335/0.4687, allocations: 297.3 kB / 0.5598 GB, free: 9.754 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008815/0.4696, allocations: 256.2 kB / 0.56 GB, free: 9.691 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003603/0.4732, allocations: 4.07 MB / 0.564 GB, free: 5.863 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007364/0.4739, allocations: 84 kB / 0.5641 GB, free: 5.781 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.677e-05/0.474, allocations: 51.98 kB / 0.5641 GB, free: 5.73 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.001133/0.4752, allocations: 0.8467 MB / 0.5649 GB, free: 4.879 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001506/0.4753, allocations: 130.5 kB / 0.5651 GB, free: 4.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002311/0.4756, allocations: 173.3 kB / 0.5652 GB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.4756, allocations: 15.19 kB / 0.5652 GB, free: 4.566 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.988e-05/0.4756, allocations: 4 kB / 0.5653 GB, free: 4.562 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/0.4756, allocations: 11.97 kB / 0.5653 GB, free: 4.551 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005029/0.4807, allocations: 4.252 MB / 0.5694 GB, free: 252 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.812e-06/0.4807, allocations: 0 / 0.5694 GB, free: 252 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006995/0.4814, allocations: 188.6 kB / 0.5696 GB, free: 64 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005965/0.482, allocations: 276.8 kB / 0.5699 GB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001214/0.4821, allocations: 43.97 kB / 0.5699 GB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004728/0.4869, allocations: 4.022 MB / 0.5738 GB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.4869, allocations: 0 / 0.5738 GB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004091/0.491, allocations: 2.854 MB / 0.5766 GB, free: 8.715 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006825/0.4917, allocations: 363.4 kB / 0.577 GB, free: 8.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002607/0.4919, allocations: 43.97 kB / 0.577 GB, free: 8.297 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006738/0.4926, allocations: 71.94 kB / 0.5771 GB, free: 8.227 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002634/0.4929, allocations: 136.8 kB / 0.5772 GB, free: 8.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.524e-05/0.493, allocations: 37.92 kB / 0.5772 GB, free: 8.055 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001284/0.4943, allocations: 0.8617 MB / 0.5781 GB, free: 7.184 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4943, allocations: 0 / 0.5781 GB, free: 7.184 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001513/0.4958, allocations: 440 kB / 0.5785 GB, free: 6.754 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.000224/0.496, allocations: 160 kB / 0.5787 GB, free: 6.59 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003029/0.4991, allocations: 1.84 MB / 0.5805 GB, free: 4.738 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/0.4991, allocations: 4 kB / 0.5805 GB, free: 4.734 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001644/0.5007, allocations: 1.088 MB / 0.5815 GB, free: 3.641 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001324/0.5021, allocations: 300.5 kB / 0.5818 GB, free: 3.371 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008015/0.5101, allocations: 4.574 MB / 0.5863 GB, free: 14.76 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002258/0.5124, allocations: 2.023 MB / 0.5882 GB, free: 12.7 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008819/0.5133, allocations: 370.3 kB / 0.5886 GB, free: 12.33 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003185/0.5136, allocations: 87.44 kB / 0.5887 GB, free: 12.25 MB / 398.1 MB Notification: Performance of SimCode: time 4.91e-07/0.5136, allocations: 0 / 0.5887 GB, free: 12.25 MB / 398.1 MB Notification: Performance of Templates: time 0.03685/0.5505, allocations: 21.23 MB / 0.6094 GB, free: 7.234 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)