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.001452/0.001452, allocations: 102.2 kB / 16.35 MB, free: 5.875 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.455/1.455, allocations: 222.9 MB / 240 MB, free: 4.512 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.001306/0.001306, allocations: 184.5 kB / 290.3 MB, free: 2.23 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03555/0.03554, allocations: 8.801 MB / 349.3 MB, free: 4.586 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 79.06 kB / 412.5 MB, free: 41.82 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07921/0.08071, allocations: 51.57 MB / 464.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.005215/0.08597, allocations: 4.06 MB / 468.1 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00199/0.08799, allocations: 1.11 MB / 469.3 MB, free: 8.414 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002373/0.08824, allocations: 23.88 kB / 469.3 MB, free: 8.391 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003353/0.08859, allocations: 174.7 kB / 469.4 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006675/0.08928, allocations: 270.4 kB / 469.7 MB, free: 7.953 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003077/0.0896, allocations: 167.8 kB / 469.9 MB, free: 7.789 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002108/0.09172, allocations: 2.439 MB / 472.3 MB, free: 5.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002312/0.09405, allocations: 2.51 MB / 474.8 MB, free: 2.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001236/0.0953, allocations: 1.168 MB / 476 MB, free: 1.598 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001499/0.09681, allocations: 1.358 MB / 477.4 MB, free: 240 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003401/0.09716, allocations: 312 kB / 477.7 MB, free: 15.93 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004285/0.0976, allocations: 324 kB / 478 MB, free: 15.61 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006335/0.09824, allocations: 0.8492 MB / 478.8 MB, free: 14.76 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001335/0.09958, allocations: 1.419 MB / 480.2 MB, free: 13.34 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002966/0.1026, allocations: 4.031 MB / 484.3 MB, free: 9.293 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1026, allocations: 0 / 484.3 MB, free: 9.293 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1026, allocations: 0 / 484.3 MB, free: 9.293 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.087e-05/0.1026, allocations: 0 / 484.3 MB, free: 9.293 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.004986/0.1076, allocations: 2.875 MB / 487.1 MB, free: 6.352 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.1077, allocations: 8.031 kB / 487.2 MB, free: 6.344 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005062/0.1082, allocations: 277.7 kB / 487.4 MB, free: 6.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002834/0.111, allocations: 1.49 MB / 488.9 MB, free: 4.52 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001899/0.1112, allocations: 180.9 kB / 489.1 MB, free: 4.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003503/0.1116, allocations: 244 kB / 489.3 MB, free: 4.102 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005199/0.1168, allocations: 3.186 MB / 492.5 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.236e-05/0.1169, allocations: 0 / 492.5 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002623/0.1171, allocations: 99.94 kB / 492.6 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-05/0.1172, allocations: 56 kB / 492.7 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004278/0.1215, allocations: 2.645 MB / 495.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0125/0.134, allocations: 7.795 MB / 0.4913 GB, free: 6.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002738/0.1367, allocations: 3.088 MB / 0.4943 GB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001548/0.1383, allocations: 1.037 MB / 0.4953 GB, free: 1.594 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.981e-05/0.1384, allocations: 13 kB / 0.4954 GB, free: 1.582 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001388/0.1398, allocations: 0.9788 MB / 0.4963 GB, free: 0.5703 MB / 334.1 MB Notification: Performance of pre-optimization done (n=122): time 2.615e-06/0.1398, allocations: 4 kB / 0.4963 GB, free: 0.5664 MB / 334.1 MB Notification: Performance of matching and sorting (n=127): time 0.007307/0.1471, allocations: 4.464 MB / 0.5007 GB, free: 12.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.416e-05/0.1472, allocations: 205.2 kB / 0.5009 GB, free: 11.81 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001516/0.1487, allocations: 1.231 MB / 0.5021 GB, free: 10.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.573e-05/0.1488, allocations: 53.7 kB / 0.5021 GB, free: 10.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007499/0.1496, allocations: 0.9627 MB / 0.5031 GB, free: 9.527 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003071/0.1499, allocations: 421.9 kB / 0.5035 GB, free: 9.109 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003429/0.1503, allocations: 242.8 kB / 0.5037 GB, free: 8.863 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.1504, allocations: 357.9 kB / 0.504 GB, free: 8.508 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009986/0.1514, allocations: 0.67 MB / 0.5047 GB, free: 7.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001263/0.1527, allocations: 0.9778 MB / 0.5057 GB, free: 6.746 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002223/0.1549, allocations: 1.654 MB / 0.5073 GB, free: 4.992 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.1549, allocations: 0 / 0.5073 GB, free: 4.992 MB / 350.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.003113/0.1581, allocations: 2.046 MB / 0.5093 GB, free: 2.934 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.1581, allocations: 8 kB / 0.5093 GB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/0.1581, allocations: 8 kB / 0.5093 GB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005923/0.1587, allocations: 281.7 kB / 0.5095 GB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000984/0.1597, allocations: 263.6 kB / 0.5098 GB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004609/0.1643, allocations: 4.074 MB / 0.5138 GB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007862/0.1651, allocations: 87.98 kB / 0.5139 GB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.658e-05/0.1652, allocations: 48 kB / 0.5139 GB, free: 14.04 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.001167/0.1664, allocations: 0.8507 MB / 0.5147 GB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001837/0.1666, allocations: 134.4 kB / 0.5149 GB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002944/0.1669, allocations: 173.3 kB / 0.515 GB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.1669, allocations: 15.98 kB / 0.515 GB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-05/0.1669, allocations: 7.938 kB / 0.5151 GB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.337e-06/0.1669, allocations: 3.984 kB / 0.5151 GB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006484/0.1734, allocations: 4.253 MB / 0.5192 GB, free: 8.516 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.1734, allocations: 7.875 kB / 0.5192 GB, free: 8.508 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008078/0.1743, allocations: 187.8 kB / 0.5194 GB, free: 8.324 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005508/0.1748, allocations: 277.3 kB / 0.5197 GB, free: 8.051 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.666e-05/0.1749, allocations: 43.97 kB / 0.5197 GB, free: 8.008 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004482/0.1794, allocations: 4.013 MB / 0.5236 GB, free: 3.855 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.1794, allocations: 0 / 0.5236 GB, free: 3.855 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003975/0.1834, allocations: 2.845 MB / 0.5264 GB, free: 0.9766 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007565/0.1842, allocations: 367.6 kB / 0.5268 GB, free: 0.5977 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002073/0.1844, allocations: 47.97 kB / 0.5268 GB, free: 0.5508 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006482/0.1851, allocations: 71.88 kB / 0.5269 GB, free: 492 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002417/0.1853, allocations: 132.8 kB / 0.527 GB, free: 360 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.397e-05/0.1854, allocations: 39.98 kB / 0.527 GB, free: 320 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.1602/0.3456, allocations: 0.8639 MB / 0.5279 GB, free: 67.01 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.3457, allocations: 0 / 0.5279 GB, free: 67.01 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001794/0.3475, allocations: 437.4 kB / 0.5283 GB, free: 67.01 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.0003252/0.3478, allocations: 157.8 kB / 0.5284 GB, free: 66.92 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002885/0.3507, allocations: 1.837 MB / 0.5302 GB, free: 66.78 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.3507, allocations: 3.5 kB / 0.5302 GB, free: 66.78 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001653/0.3524, allocations: 1.086 MB / 0.5313 GB, free: 66.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001597/0.354, allocations: 298.3 kB / 0.5316 GB, free: 66.63 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007973/0.362, allocations: 4.573 MB / 0.5361 GB, free: 65.21 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002119/0.3641, allocations: 2.017 MB / 0.538 GB, free: 64.46 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001046/0.3652, allocations: 372.1 kB / 0.5384 GB, free: 64.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003287/0.3655, allocations: 90.61 kB / 0.5385 GB, free: 64.42 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3655, allocations: 0 / 0.5385 GB, free: 64.42 MB / 366.1 MB Notification: Performance of Templates: time 0.04769/0.4132, allocations: 20.88 MB / 0.5589 GB, free: 51.91 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 -s gbode -lv LOG_STATS > HanserModelica_HanserModelica.Electrical.StarPolygon.pipe 2>&1)