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.001151/0.001152, allocations: 103.9 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.42/1.42, allocations: 222.9 MB / 240 MB, free: 4.508 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.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03424/0.03424, allocations: 8.801 MB / 349.3 MB, free: 4.594 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001644/0.001645, allocations: 81.78 kB / 412.5 MB, free: 41.68 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1252, allocations: 51.56 MB / 464.1 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.005826/0.131, allocations: 4.062 MB / 468.1 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002382/0.1335, allocations: 1.114 MB / 469.3 MB, free: 8.309 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003111/0.1338, allocations: 23.94 kB / 469.3 MB, free: 8.285 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003878/0.1342, allocations: 170.6 kB / 469.4 MB, free: 8.117 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008294/0.135, allocations: 274.4 kB / 469.7 MB, free: 7.848 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003986/0.1355, allocations: 163.8 kB / 469.9 MB, free: 7.688 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002158/0.1376, allocations: 2.432 MB / 472.3 MB, free: 5.246 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002502/0.1401, allocations: 2.518 MB / 474.8 MB, free: 2.668 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001596/0.1417, allocations: 1.168 MB / 476 MB, free: 1.496 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001578/0.1433, allocations: 1.358 MB / 477.4 MB, free: 136 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003668/0.1437, allocations: 316 kB / 477.7 MB, free: 15.82 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004525/0.1442, allocations: 316 kB / 478 MB, free: 15.51 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006981/0.1449, allocations: 0.8454 MB / 478.8 MB, free: 14.67 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001571/0.1465, allocations: 1.427 MB / 480.2 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003326/0.1498, allocations: 4.027 MB / 484.3 MB, free: 9.195 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.1498, allocations: 0 / 484.3 MB, free: 9.195 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.1498, allocations: 0 / 484.3 MB, free: 9.195 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.75e-05/0.1499, allocations: 0 / 484.3 MB, free: 9.195 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.005419/0.1553, allocations: 2.883 MB / 487.2 MB, free: 6.246 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.1554, allocations: 8.031 kB / 487.2 MB, free: 6.238 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005922/0.156, allocations: 277.7 kB / 487.4 MB, free: 5.965 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002833/0.1588, allocations: 1.487 MB / 488.9 MB, free: 4.418 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001661/0.159, allocations: 180.9 kB / 489.1 MB, free: 4.238 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003485/0.1594, allocations: 240 kB / 489.3 MB, free: 4.004 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005117/0.1645, allocations: 3.186 MB / 492.5 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.923e-05/0.1646, allocations: 4 kB / 492.5 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001991/0.1648, allocations: 95.98 kB / 492.6 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-05/0.1648, allocations: 52 kB / 492.7 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004342/0.1692, allocations: 2.652 MB / 495.3 MB, free: 13.92 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01322/0.1824, allocations: 7.787 MB / 0.4913 GB, free: 5.977 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00287/0.1853, allocations: 3.104 MB / 0.4943 GB, free: 2.523 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001474/0.1868, allocations: 1.029 MB / 0.4953 GB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.943e-05/0.1869, allocations: 12.98 kB / 0.4954 GB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001432/0.1883, allocations: 0.984 MB / 0.4963 GB, free: 472 kB / 334.1 MB Notification: Performance of pre-optimization done (n=122): time 3.506e-06/0.1883, allocations: 0 / 0.4963 GB, free: 472 kB / 334.1 MB Notification: Performance of matching and sorting (n=127): time 0.007523/0.1959, allocations: 4.462 MB / 0.5007 GB, free: 11.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001279/0.196, allocations: 209.2 kB / 0.5009 GB, free: 11.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001654/0.1977, allocations: 1.227 MB / 0.5021 GB, free: 10.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.633e-05/0.1978, allocations: 53.7 kB / 0.5021 GB, free: 10.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008938/0.1987, allocations: 0.9588 MB / 0.5031 GB, free: 9.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003402/0.199, allocations: 425.9 kB / 0.5035 GB, free: 9.008 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003533/0.1994, allocations: 246.8 kB / 0.5037 GB, free: 8.758 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.1995, allocations: 361.9 kB / 0.5041 GB, free: 8.398 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009724/0.2005, allocations: 0.6583 MB / 0.5047 GB, free: 7.742 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001215/0.2017, allocations: 0.9817 MB / 0.5057 GB, free: 6.645 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002183/0.2039, allocations: 1.647 MB / 0.5073 GB, free: 4.898 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/0.204, allocations: 4 kB / 0.5073 GB, free: 4.895 MB / 350.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.003055/0.207, allocations: 2.042 MB / 0.5093 GB, free: 2.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.2071, allocations: 8 kB / 0.5093 GB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/0.2071, allocations: 8 kB / 0.5093 GB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005976/0.2077, allocations: 293.7 kB / 0.5096 GB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009461/0.2086, allocations: 259.6 kB / 0.5098 GB, free: 2.281 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004547/0.2132, allocations: 4.07 MB / 0.5138 GB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008832/0.2141, allocations: 87.98 kB / 0.5139 GB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.185e-05/0.2142, allocations: 44 kB / 0.5139 GB, free: 13.95 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.001416/0.2156, allocations: 0.8468 MB / 0.5147 GB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001802/0.2158, allocations: 130.4 kB / 0.5149 GB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002943/0.2161, allocations: 177.3 kB / 0.515 GB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.2161, allocations: 16 kB / 0.515 GB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.497e-05/0.2161, allocations: 7.938 kB / 0.515 GB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/0.2162, allocations: 3.984 kB / 0.515 GB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0066/0.2228, allocations: 4.253 MB / 0.5192 GB, free: 8.426 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.026e-05/0.2228, allocations: 11.94 kB / 0.5192 GB, free: 8.414 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008306/0.2236, allocations: 195.7 kB / 0.5194 GB, free: 8.223 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005891/0.2242, allocations: 273.3 kB / 0.5197 GB, free: 7.953 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.71e-05/0.2243, allocations: 43.97 kB / 0.5197 GB, free: 7.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004782/0.2291, allocations: 4.013 MB / 0.5236 GB, free: 3.758 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.2292, allocations: 4.062 kB / 0.5236 GB, free: 3.754 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004147/0.2333, allocations: 2.845 MB / 0.5264 GB, free: 0.875 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008317/0.2342, allocations: 363.6 kB / 0.5268 GB, free: 0.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001835/0.2343, allocations: 43.97 kB / 0.5268 GB, free: 468 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006332/0.235, allocations: 79.88 kB / 0.5269 GB, free: 388 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002771/0.2353, allocations: 128.8 kB / 0.527 GB, free: 260 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.33e-05/0.2354, allocations: 39.97 kB / 0.527 GB, free: 220 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.2362/0.4716, allocations: 0.8559 MB / 0.5279 GB, free: 67.04 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.01e-07/0.4716, allocations: 1.844 kB / 0.5279 GB, free: 67.04 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001949/0.4736, allocations: 440.9 kB / 0.5283 GB, free: 67.04 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.000219/0.4738, allocations: 161.6 kB / 0.5284 GB, free: 66.95 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002704/0.4765, allocations: 1.833 MB / 0.5302 GB, free: 66.81 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.054e-06/0.4765, allocations: 6.875 kB / 0.5302 GB, free: 66.81 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001617/0.4781, allocations: 1.082 MB / 0.5313 GB, free: 66.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001344/0.4795, allocations: 308.5 kB / 0.5316 GB, free: 66.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007891/0.4874, allocations: 4.573 MB / 0.5361 GB, free: 65.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002041/0.4895, allocations: 2.014 MB / 0.538 GB, free: 64.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001111/0.4906, allocations: 371.5 kB / 0.5384 GB, free: 64.46 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002926/0.4909, allocations: 89.61 kB / 0.5385 GB, free: 64.46 MB / 366.1 MB Notification: Performance of SimCode: time 8.61e-07/0.4909, allocations: 0 / 0.5385 GB, free: 64.46 MB / 366.1 MB Notification: Performance of Templates: time 0.03655/0.5275, allocations: 20.88 MB / 0.5589 GB, free: 51.89 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 cvode -lv LOG_STATS > HanserModelica_HanserModelica.Electrical.StarPolygon.pipe 2>&1)