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.0008834/0.0008834, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.269/1.269, allocations: 223.3 MB / 240 MB, free: 5.523 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.0009653/0.0009653, allocations: 187.3 kB / 291.3 MB, free: 2.188 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03467/0.03467, allocations: 8.808 MB / 351.2 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003367/0.0003367, allocations: 17.38 kB / 414.5 MB, free: 42.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0636/0.06395, allocations: 52.56 MB / 467 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.003732/0.0677, allocations: 3.676 MB / 470.7 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001809/0.06952, allocations: 1.091 MB / 471.8 MB, free: 8.363 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002985/0.06984, allocations: 23.88 kB / 471.8 MB, free: 8.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002899/0.07014, allocations: 139.1 kB / 472 MB, free: 8.203 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006835/0.07083, allocations: 250.7 kB / 472.2 MB, free: 7.957 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003267/0.07117, allocations: 147.8 kB / 472.3 MB, free: 7.812 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002096/0.07328, allocations: 2.572 MB / 474.9 MB, free: 5.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002145/0.07543, allocations: 2.146 MB / 477.1 MB, free: 3.023 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008892/0.07633, allocations: 0.8129 MB / 477.9 MB, free: 2.207 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00128/0.07762, allocations: 1.081 MB / 479 MB, free: 1.121 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002323/0.07786, allocations: 128 kB / 479.1 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003408/0.07821, allocations: 140 kB / 479.2 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004735/0.07869, allocations: 0.5994 MB / 479.8 MB, free: 264 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001127/0.07983, allocations: 1.187 MB / 481 MB, free: 15.05 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002301/0.08214, allocations: 3.206 MB / 484.2 MB, free: 11.84 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.584e-06/0.08215, allocations: 0 / 484.2 MB, free: 11.84 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.12e-07/0.08216, allocations: 7.938 kB / 484.2 MB, free: 11.84 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.362e-05/0.08224, allocations: 0 / 484.2 MB, free: 11.84 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.004355/0.0866, allocations: 2.435 MB / 486.7 MB, free: 9.336 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.157e-05/0.08664, allocations: 16.03 kB / 486.7 MB, free: 9.32 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005482/0.0872, allocations: 273.8 kB / 486.9 MB, free: 9.051 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002006/0.08921, allocations: 1.463 MB / 488.4 MB, free: 7.527 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001154/0.08934, allocations: 176.9 kB / 488.6 MB, free: 7.352 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003279/0.08968, allocations: 236.1 kB / 488.8 MB, free: 7.121 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004698/0.09438, allocations: 3.209 MB / 492 MB, free: 3.832 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.594e-05/0.09444, allocations: 0 / 492 MB, free: 3.832 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002058/0.09465, allocations: 95.98 kB / 492.1 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.434e-05/0.09471, allocations: 60 kB / 492.2 MB, free: 3.68 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004055/0.09877, allocations: 2.676 MB / 494.8 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0106/0.1094, allocations: 7.979 MB / 0.491 GB, free: 8.852 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00257/0.112, allocations: 3.097 MB / 0.4941 GB, free: 5.406 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001596/0.1136, allocations: 1.076 MB / 0.4951 GB, free: 4.328 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.597e-05/0.1136, allocations: 13 kB / 0.4951 GB, free: 4.316 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001408/0.115, allocations: 0.9896 MB / 0.4961 GB, free: 3.297 MB / 334.1 MB Notification: Performance of pre-optimization done (n=122): time 3.777e-06/0.1151, allocations: 4 kB / 0.4961 GB, free: 3.293 MB / 334.1 MB Notification: Performance of matching and sorting (n=127): time 0.006946/0.122, allocations: 4.559 MB / 0.5005 GB, free: 14.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.039e-05/0.1221, allocations: 205.2 kB / 0.5007 GB, free: 14.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001406/0.1235, allocations: 1.223 MB / 0.5019 GB, free: 13.19 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.127e-05/0.1236, allocations: 53.7 kB / 0.502 GB, free: 13.13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006087/0.1242, allocations: 0.9588 MB / 0.5029 GB, free: 12.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002942/0.1245, allocations: 433.8 kB / 0.5033 GB, free: 11.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001536/0.1247, allocations: 121.6 kB / 0.5035 GB, free: 11.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.1248, allocations: 357.9 kB / 0.5038 GB, free: 11.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001062/0.1259, allocations: 0.6817 MB / 0.5045 GB, free: 10.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001257/0.1272, allocations: 0.9973 MB / 0.5054 GB, free: 9.461 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002274/0.1294, allocations: 1.674 MB / 0.5071 GB, free: 7.691 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.1295, allocations: 3.938 kB / 0.5071 GB, free: 7.688 MB / 350.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.003084/0.1325, allocations: 2.07 MB / 0.5091 GB, free: 5.602 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.1326, allocations: 11.98 kB / 0.5091 GB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.1326, allocations: 8 kB / 0.5091 GB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00057/0.1332, allocations: 281.9 kB / 0.5094 GB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/0.1342, allocations: 271.6 kB / 0.5096 GB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004229/0.1384, allocations: 3.788 MB / 0.5133 GB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007325/0.1392, allocations: 92 kB / 0.5134 GB, free: 1.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.003e-05/0.1393, allocations: 51.98 kB / 0.5135 GB, free: 0.9727 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.0009671/0.1403, allocations: 0.8467 MB / 0.5143 GB, free: 116 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001726/0.1404, allocations: 134.6 kB / 0.5144 GB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003508/0.1408, allocations: 173.3 kB / 0.5146 GB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/0.1408, allocations: 12 kB / 0.5146 GB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.295e-06/0.1408, allocations: 4 kB / 0.5146 GB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.241e-05/0.1408, allocations: 7.969 kB / 0.5146 GB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005995/0.1468, allocations: 4.325 MB / 0.5188 GB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.1469, allocations: 0 / 0.5188 GB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008451/0.1477, allocations: 195.8 kB / 0.519 GB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005327/0.1482, allocations: 273.2 kB / 0.5193 GB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.408e-05/0.1483, allocations: 43.97 kB / 0.5193 GB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004102/0.1525, allocations: 3.71 MB / 0.523 GB, free: 7.027 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.1525, allocations: 3.938 kB / 0.523 GB, free: 7.023 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004012/0.1565, allocations: 2.894 MB / 0.5258 GB, free: 4.098 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004734/0.157, allocations: 355.5 kB / 0.5261 GB, free: 3.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001795/0.1572, allocations: 47.97 kB / 0.5262 GB, free: 3.684 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006655/0.1578, allocations: 87.92 kB / 0.5263 GB, free: 3.598 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002381/0.1581, allocations: 136.8 kB / 0.5264 GB, free: 3.465 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.087e-05/0.1582, allocations: 39.98 kB / 0.5264 GB, free: 3.426 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009926/0.1592, allocations: 0.8617 MB / 0.5273 GB, free: 2.555 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1592, allocations: 4 kB / 0.5273 GB, free: 2.551 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001019/0.1602, allocations: 440 kB / 0.5277 GB, free: 2.121 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.00019/0.1604, allocations: 155 kB / 0.5278 GB, free: 1.961 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002725/0.1631, allocations: 1.859 MB / 0.5297 GB, free: 88 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.155e-06/0.1631, allocations: 0 / 0.5297 GB, free: 88 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1349/0.298, allocations: 1.164 MB / 0.5308 GB, free: 68.57 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001616/0.2997, allocations: 286.1 kB / 0.5311 GB, free: 68.56 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006199/0.3059, allocations: 5.725 MB / 0.5367 GB, free: 66.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001402/0.3073, allocations: 1.993 MB / 0.5386 GB, free: 65.28 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003265/0.3077, allocations: 94.86 kB / 0.5387 GB, free: 65.27 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3077, allocations: 3.938 kB / 0.5387 GB, free: 65.27 MB / 366.1 MB Notification: Performance of Templates: time 0.03057/0.3382, allocations: 36.15 MB / 0.574 GB, free: 38.85 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)