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.007149/0.007149, allocations: 104.6 kB / 15.74 MB, free: 6.492 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.402/1.402, allocations: 222.9 MB / 239.4 MB, free: 4.391 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.001357/0.001357, allocations: 192.4 kB / 289.7 MB, free: 2.109 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03381/0.03381, allocations: 8.798 MB / 348.6 MB, free: 4.566 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 79.88 kB / 463.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1161, allocations: 51.57 MB / 0.5034 GB, free: 9.422 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.005185/0.1213, allocations: 4.064 MB / 0.5074 GB, free: 5.336 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002338/0.1237, allocations: 1.102 MB / 0.5084 GB, free: 4.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002856/0.124, allocations: 27.94 kB / 0.5085 GB, free: 4.203 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003706/0.1244, allocations: 178.6 kB / 0.5086 GB, free: 4.027 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000755/0.1252, allocations: 290.4 kB / 0.5089 GB, free: 3.742 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003338/0.1255, allocations: 163.8 kB / 0.5091 GB, free: 3.582 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002115/0.1277, allocations: 2.428 MB / 0.5114 GB, free: 1.145 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002669/0.1303, allocations: 2.518 MB / 0.5139 GB, free: 14.56 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001757/0.1321, allocations: 1.172 MB / 0.515 GB, free: 13.39 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002119/0.1342, allocations: 1.354 MB / 0.5164 GB, free: 12.03 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005436/0.1348, allocations: 320 kB / 0.5167 GB, free: 11.71 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006794/0.1355, allocations: 320 kB / 0.517 GB, free: 11.4 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009303/0.1364, allocations: 0.8338 MB / 0.5178 GB, free: 10.57 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002167/0.1386, allocations: 1.431 MB / 0.5192 GB, free: 9.129 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004436/0.1431, allocations: 4.027 MB / 0.5231 GB, free: 5.09 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1431, allocations: 0 / 0.5231 GB, free: 5.09 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.1431, allocations: 3.938 kB / 0.5231 GB, free: 5.086 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001051/0.1432, allocations: 0 / 0.5231 GB, free: 5.086 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.006176/0.1494, allocations: 2.881 MB / 0.5259 GB, free: 2.145 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/0.1495, allocations: 12.03 kB / 0.5259 GB, free: 2.133 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005861/0.15, allocations: 269.8 kB / 0.5262 GB, free: 1.867 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002558/0.1526, allocations: 1.502 MB / 0.5277 GB, free: 312 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000138/0.1528, allocations: 172.9 kB / 0.5278 GB, free: 136 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.2754/0.4282, allocations: 232.1 kB / 0.5281 GB, free: 23.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006305/0.4345, allocations: 3.186 MB / 0.5312 GB, free: 23.56 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.753e-05/0.4346, allocations: 6.406 kB / 0.5312 GB, free: 23.56 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002051/0.4348, allocations: 91.27 kB / 0.5313 GB, free: 23.56 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.619e-05/0.4349, allocations: 54.84 kB / 0.5313 GB, free: 23.56 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004838/0.4397, allocations: 2.655 MB / 0.5339 GB, free: 23.53 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01722/0.457, allocations: 7.79 MB / 0.5415 GB, free: 21.68 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003174/0.4602, allocations: 3.08 MB / 0.5445 GB, free: 19.2 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002045/0.4623, allocations: 1.062 MB / 0.5456 GB, free: 18.88 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.045e-05/0.4624, allocations: 16.2 kB / 0.5456 GB, free: 18.88 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001512/0.4639, allocations: 0.9775 MB / 0.5465 GB, free: 18.35 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 6.051e-06/0.4639, allocations: 0 / 0.5465 GB, free: 18.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=127): time 0.008961/0.4729, allocations: 4.483 MB / 0.5509 GB, free: 15.84 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001361/0.4731, allocations: 196.5 kB / 0.5511 GB, free: 15.61 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002291/0.4754, allocations: 1.227 MB / 0.5523 GB, free: 14.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001542/0.4756, allocations: 53.2 kB / 0.5523 GB, free: 14.9 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001022/0.4766, allocations: 0.9584 MB / 0.5533 GB, free: 14.08 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003806/0.477, allocations: 430.2 kB / 0.5537 GB, free: 13.72 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004427/0.4774, allocations: 248.6 kB / 0.5539 GB, free: 13.58 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.4775, allocations: 357.2 kB / 0.5543 GB, free: 13.24 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00119/0.4787, allocations: 0.6655 MB / 0.5549 GB, free: 12.9 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001286/0.48, allocations: 0.9857 MB / 0.5559 GB, free: 12.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002216/0.4823, allocations: 1.651 MB / 0.5575 GB, free: 11.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.794e-06/0.4823, allocations: 0 / 0.5575 GB, free: 11.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.003381/0.4857, allocations: 2.041 MB / 0.5595 GB, free: 10.11 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.053e-05/0.4858, allocations: 13.09 kB / 0.5595 GB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.446e-05/0.4858, allocations: 8.875 kB / 0.5595 GB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008837/0.4867, allocations: 292.9 kB / 0.5598 GB, free: 9.977 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001059/0.4878, allocations: 261.9 kB / 0.56 GB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00405/0.4918, allocations: 4.063 MB / 0.564 GB, free: 5.977 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001094/0.4929, allocations: 87.98 kB / 0.5641 GB, free: 5.891 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.658e-05/0.493, allocations: 46.42 kB / 0.5641 GB, free: 5.848 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.001557/0.4946, allocations: 0.8527 MB / 0.565 GB, free: 4.988 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002488/0.4948, allocations: 130.4 kB / 0.5651 GB, free: 4.859 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002678/0.4951, allocations: 173.3 kB / 0.5653 GB, free: 4.688 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.268e-06/0.4951, allocations: 15.98 kB / 0.5653 GB, free: 4.672 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.54e-05/0.4952, allocations: 4 kB / 0.5653 GB, free: 4.668 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/0.4952, allocations: 7.984 kB / 0.5653 GB, free: 4.66 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005742/0.5009, allocations: 4.256 MB / 0.5694 GB, free: 364 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.501, allocations: 0 / 0.5694 GB, free: 364 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006991/0.5017, allocations: 196.8 kB / 0.5696 GB, free: 168 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005414/0.5022, allocations: 264.8 kB / 0.5699 GB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001313/0.5024, allocations: 43.97 kB / 0.5699 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004715/0.5071, allocations: 4.029 MB / 0.5739 GB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.5071, allocations: 0 / 0.5739 GB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004687/0.5118, allocations: 2.849 MB / 0.5766 GB, free: 8.824 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009017/0.5127, allocations: 363.4 kB / 0.577 GB, free: 8.449 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000191/0.5129, allocations: 47.97 kB / 0.577 GB, free: 8.402 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006496/0.5136, allocations: 71.94 kB / 0.5771 GB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00031/0.5139, allocations: 128.9 kB / 0.5772 GB, free: 8.203 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.551e-05/0.514, allocations: 39.92 kB / 0.5773 GB, free: 8.164 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001252/0.5153, allocations: 0.8656 MB / 0.5781 GB, free: 7.289 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5153, allocations: 3.094 kB / 0.5781 GB, free: 7.289 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001623/0.5169, allocations: 444 kB / 0.5785 GB, free: 6.855 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.0002414/0.5172, allocations: 154.6 kB / 0.5787 GB, free: 6.699 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003182/0.5203, allocations: 1.836 MB / 0.5805 GB, free: 4.848 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/0.5204, allocations: 4 kB / 0.5805 GB, free: 4.844 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001685/0.5221, allocations: 1.093 MB / 0.5815 GB, free: 3.746 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001401/0.5235, allocations: 300 kB / 0.5818 GB, free: 3.477 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008047/0.5315, allocations: 4.578 MB / 0.5863 GB, free: 14.87 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001722/0.5333, allocations: 2.015 MB / 0.5883 GB, free: 12.81 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001138/0.5345, allocations: 370.3 kB / 0.5886 GB, free: 12.45 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002726/0.5347, allocations: 95.25 kB / 0.5887 GB, free: 12.36 MB / 398.1 MB Notification: Performance of SimCode: time 1.973e-06/0.5348, allocations: 0 / 0.5887 GB, free: 12.36 MB / 398.1 MB Notification: Performance of Templates: time 0.03818/0.5729, allocations: 21.23 MB / 0.6094 GB, free: 7.34 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)