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.001037/0.001037, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.247/1.247, allocations: 222.9 MB / 238.9 MB, free: 4.688 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.00117/0.001169, allocations: 200.4 kB / 289.1 MB, free: 2.434 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03231/0.03231, allocations: 8.789 MB / 348.1 MB, free: 4.914 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 74.31 kB / 410.4 MB, free: 42.39 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0858/0.08717, allocations: 51.57 MB / 462 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.004832/0.09204, allocations: 4.073 MB / 466 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001937/0.094, allocations: 1.114 MB / 467.1 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002422/0.09426, allocations: 23.88 kB / 467.2 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003023/0.09457, allocations: 139.1 kB / 467.3 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005843/0.09519, allocations: 250.8 kB / 467.5 MB, free: 9.301 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002591/0.09546, allocations: 147.8 kB / 467.7 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001738/0.09721, allocations: 2.588 MB / 470.3 MB, free: 6.559 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001835/0.09905, allocations: 2.174 MB / 472.5 MB, free: 4.324 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00088/0.09994, allocations: 0.9653 MB / 473.4 MB, free: 3.355 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001073/0.101, allocations: 1.284 MB / 474.7 MB, free: 2.066 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002364/0.1013, allocations: 200 kB / 474.9 MB, free: 1.871 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003564/0.1016, allocations: 204 kB / 475.1 MB, free: 1.672 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004613/0.1021, allocations: 0.7087 MB / 475.8 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001003/0.1031, allocations: 1.294 MB / 477.1 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002339/0.1055, allocations: 3.875 MB / 481 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.1055, allocations: 0 / 481 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.21e-07/0.1055, allocations: 0 / 481 MB, free: 11.77 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.208e-05/0.1055, allocations: 0 / 481 MB, free: 11.77 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.004349/0.1099, allocations: 2.875 MB / 483.9 MB, free: 8.832 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.255e-05/0.1099, allocations: 12.03 kB / 483.9 MB, free: 8.82 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005006/0.1104, allocations: 269.8 kB / 484.1 MB, free: 8.555 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001911/0.1124, allocations: 1.451 MB / 485.6 MB, free: 7.043 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001086/0.1125, allocations: 176.9 kB / 485.8 MB, free: 6.867 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003217/0.1128, allocations: 236 kB / 486 MB, free: 6.637 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004727/0.1175, allocations: 3.19 MB / 489.2 MB, free: 3.367 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.409e-05/0.1176, allocations: 4 kB / 489.2 MB, free: 3.363 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001999/0.1178, allocations: 92 kB / 489.3 MB, free: 3.273 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.782e-05/0.1179, allocations: 52 kB / 489.3 MB, free: 3.223 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003871/0.1217, allocations: 2.66 MB / 492 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01216/0.1339, allocations: 7.905 MB / 499.9 MB, free: 8.484 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002437/0.1364, allocations: 3.092 MB / 0.4912 GB, free: 5.043 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00141/0.1378, allocations: 1.029 MB / 0.4922 GB, free: 4.012 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.737e-05/0.1379, allocations: 16.98 kB / 0.4922 GB, free: 3.996 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001334/0.1392, allocations: 0.9802 MB / 0.4932 GB, free: 2.984 MB / 334.1 MB Notification: Performance of pre-optimization done (n=122): time 2.445e-06/0.1392, allocations: 0 / 0.4932 GB, free: 2.984 MB / 334.1 MB Notification: Performance of matching and sorting (n=127): time 0.006897/0.1461, allocations: 4.458 MB / 0.4975 GB, free: 14.47 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001244/0.1463, allocations: 205.2 kB / 0.4977 GB, free: 14.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001549/0.1479, allocations: 1.231 MB / 0.4989 GB, free: 12.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.361e-05/0.148, allocations: 57.64 kB / 0.499 GB, free: 12.92 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007556/0.1487, allocations: 0.9666 MB / 0.4999 GB, free: 11.94 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003049/0.149, allocations: 422 kB / 0.5003 GB, free: 11.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003277/0.1494, allocations: 242.8 kB / 0.5005 GB, free: 11.28 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.1495, allocations: 361.9 kB / 0.5009 GB, free: 10.92 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009325/0.1504, allocations: 0.6622 MB / 0.5015 GB, free: 10.26 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001111/0.1516, allocations: 0.9817 MB / 0.5025 GB, free: 9.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002053/0.1536, allocations: 1.651 MB / 0.5041 GB, free: 7.414 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.1536, allocations: 4 kB / 0.5041 GB, free: 7.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.002921/0.1566, allocations: 2.034 MB / 0.5061 GB, free: 5.359 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.1566, allocations: 8 kB / 0.5061 GB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.438e-05/0.1566, allocations: 12.25 kB / 0.5061 GB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005746/0.1572, allocations: 289.5 kB / 0.5064 GB, free: 5.055 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009329/0.1581, allocations: 263.6 kB / 0.5066 GB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003933/0.1621, allocations: 3.757 MB / 0.5103 GB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008844/0.163, allocations: 87.92 kB / 0.5104 GB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.002e-05/0.1631, allocations: 47.98 kB / 0.5104 GB, free: 0.7734 MB / 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.001311/0.1644, allocations: 0.8508 MB / 0.5113 GB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002991/0.1647, allocations: 130.4 kB / 0.5114 GB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003378/0.165, allocations: 173.3 kB / 0.5116 GB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.1651, allocations: 12 kB / 0.5116 GB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.148e-05/0.1651, allocations: 4 kB / 0.5116 GB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.191e-05/0.1651, allocations: 3.984 kB / 0.5116 GB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006374/0.1715, allocations: 4.278 MB / 0.5158 GB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.874e-06/0.1715, allocations: 8.047 kB / 0.5158 GB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007463/0.1723, allocations: 195.8 kB / 0.516 GB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005286/0.1728, allocations: 281.1 kB / 0.5162 GB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.388e-05/0.1729, allocations: 43.97 kB / 0.5163 GB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004004/0.1769, allocations: 3.687 MB / 0.5199 GB, free: 6.887 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.294e-06/0.1769, allocations: 4.031 kB / 0.5199 GB, free: 6.883 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003955/0.1809, allocations: 2.843 MB / 0.5226 GB, free: 4.012 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008416/0.1818, allocations: 363.4 kB / 0.523 GB, free: 3.637 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003692/0.1821, allocations: 51.91 kB / 0.523 GB, free: 3.586 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006377/0.1828, allocations: 75.92 kB / 0.5231 GB, free: 3.512 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002853/0.1831, allocations: 128.8 kB / 0.5232 GB, free: 3.387 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.73e-05/0.1832, allocations: 39.98 kB / 0.5233 GB, free: 3.348 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001112/0.1843, allocations: 0.8656 MB / 0.5241 GB, free: 2.473 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1843, allocations: 4 kB / 0.5241 GB, free: 2.469 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001277/0.1856, allocations: 436 kB / 0.5245 GB, free: 2.043 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.0002236/0.1858, allocations: 159.1 kB / 0.5247 GB, free: 1.875 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002846/0.1886, allocations: 1.82 MB / 0.5265 GB, free: 44 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.1887, allocations: 0 / 0.5265 GB, free: 44 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1824/0.3711, allocations: 1.086 MB / 0.5275 GB, free: 69.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00147/0.3726, allocations: 285.2 kB / 0.5278 GB, free: 69.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007195/0.3798, allocations: 5.601 MB / 0.5333 GB, free: 66.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001935/0.3818, allocations: 2.024 MB / 0.5352 GB, free: 65.97 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001434/0.3832, allocations: 366.9 kB / 0.5356 GB, free: 65.94 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002888/0.3835, allocations: 88.42 kB / 0.5357 GB, free: 65.93 MB / 366.1 MB Notification: Performance of SimCode: time 1.863e-06/0.3835, allocations: 1.469 kB / 0.5357 GB, free: 65.93 MB / 366.1 MB Notification: Performance of Templates: time 0.03348/0.417, allocations: 19.87 MB / 0.5551 GB, free: 54.96 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)