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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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: "" <> buildModelFMU(HanserModelica.Electrical.StarPolygon,fileNamePrefix="HanserModelica_HanserModelica_Electrical_StarPolygon",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Electrical.StarPolygon,fileNamePrefix="HanserModelica_HanserModelica_Electrical_StarPolygon",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000961/0.0009611, allocations: 99.16 kB / 15.05 MB, free: 1.105 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.318/1.318, allocations: 223.2 MB / 238.9 MB, free: 5.496 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.001069/0.001069, allocations: 189 kB / 290.2 MB, free: 2.188 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03229/0.03229, allocations: 8.795 MB / 350.1 MB, free: 4.684 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005883/0.0005885, allocations: 9.438 kB / 413.2 MB, free: 42.93 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09161/0.09223, allocations: 52.56 MB / 465.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.003716/0.09599, allocations: 3.338 MB / 469.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001603/0.09762, allocations: 1.083 MB / 470.2 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002112/0.09785, allocations: 23.88 kB / 470.2 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002579/0.09811, allocations: 143.2 kB / 470.3 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005481/0.09867, allocations: 227.3 kB / 470.5 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002397/0.09892, allocations: 115.8 kB / 470.7 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001419/0.1003, allocations: 1.481 MB / 472.1 MB, free: 7 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001694/0.1021, allocations: 1.729 MB / 473.9 MB, free: 5.234 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008359/0.1029, allocations: 0.7628 MB / 474.6 MB, free: 4.469 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009759/0.1039, allocations: 0.9375 MB / 475.6 MB, free: 3.527 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001757/0.1041, allocations: 128 kB / 475.7 MB, free: 3.402 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002681/0.1043, allocations: 143.9 kB / 475.8 MB, free: 3.262 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004705/0.1048, allocations: 0.5764 MB / 476.4 MB, free: 2.684 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003848/0.1052, allocations: 488.5 kB / 476.9 MB, free: 2.199 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002609/0.1078, allocations: 3.195 MB / 480.1 MB, free: 14.99 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1078, allocations: 0 / 480.1 MB, free: 14.99 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.1079, allocations: 0 / 480.1 MB, free: 14.99 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.248e-05/0.108, allocations: 4 kB / 480.1 MB, free: 14.99 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.004256/0.1122, allocations: 2.465 MB / 482.5 MB, free: 12.46 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.1123, allocations: 12.03 kB / 482.6 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003806/0.1127, allocations: 332.8 kB / 482.9 MB, free: 12.12 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004373/0.1131, allocations: 268.8 kB / 483.1 MB, free: 11.85 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002321/0.1154, allocations: 1.42 MB / 484.6 MB, free: 10.37 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001246/0.1156, allocations: 184.5 kB / 484.7 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002885/0.1159, allocations: 231.9 kB / 485 MB, free: 9.961 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00457/0.1204, allocations: 3.159 MB / 488.1 MB, free: 6.723 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.401e-05/0.1205, allocations: 7.938 kB / 488.1 MB, free: 6.715 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001987/0.1207, allocations: 103.9 kB / 488.2 MB, free: 6.613 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.878e-05/0.1208, allocations: 52 kB / 488.3 MB, free: 6.562 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004146/0.1249, allocations: 2.664 MB / 491 MB, free: 3.883 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01236/0.1373, allocations: 7.975 MB / 498.9 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002994/0.1403, allocations: 3.092 MB / 0.4903 GB, free: 8.309 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.663e-05/0.1404, allocations: 13 kB / 0.4903 GB, free: 8.297 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001437/0.1418, allocations: 0.9882 MB / 0.4912 GB, free: 7.281 MB / 334.1 MB Notification: Performance of pre-optimization done (n=122): time 2.695e-06/0.1418, allocations: 0 / 0.4912 GB, free: 7.281 MB / 334.1 MB Notification: Performance of matching and sorting (n=127): time 0.007804/0.1497, allocations: 4.513 MB / 0.4956 GB, free: 2.715 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001551/0.1498, allocations: 205.2 kB / 0.4958 GB, free: 2.473 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001845/0.1517, allocations: 1.219 MB / 0.497 GB, free: 1.234 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.63e-05/0.1518, allocations: 53.7 kB / 0.4971 GB, free: 1.176 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009164/0.1527, allocations: 0.955 MB / 0.498 GB, free: 212 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003637/0.1531, allocations: 434 kB / 0.4984 GB, free: 15.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.67e-05/0.1532, allocations: 28 kB / 0.4984 GB, free: 15.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.1533, allocations: 361.7 kB / 0.4988 GB, free: 15.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00102/0.1544, allocations: 0.6739 MB / 0.4995 GB, free: 14.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001225/0.1556, allocations: 0.9817 MB / 0.5004 GB, free: 13.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001167/0.1568, allocations: 0.8148 MB / 0.5012 GB, free: 12.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.1568, allocations: 4 kB / 0.5012 GB, free: 12.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.003145/0.1599, allocations: 2.038 MB / 0.5032 GB, free: 10.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.712e-05/0.16, allocations: 11.95 kB / 0.5032 GB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.256e-05/0.16, allocations: 8 kB / 0.5032 GB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006012/0.1606, allocations: 282.4 kB / 0.5035 GB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009821/0.1616, allocations: 267.6 kB / 0.5037 GB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004341/0.166, allocations: 3.789 MB / 0.5074 GB, free: 6.266 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008927/0.1669, allocations: 96.22 kB / 0.5075 GB, free: 6.172 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.6e-05/0.167, allocations: 48 kB / 0.5076 GB, free: 6.125 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,$PRE.rootMeanSquare[5].mean.y_last,rootMeanSquare[5].mean.y_last,$PRE.rootMeanSquare[4].mean.y_last,rootMeanSquare[4].mean.y_last,$PRE.rootMeanSquare[3].mean.y_last,rootMeanSquare[3].mean.y_last,$PRE.rootMeanSquare[2].mean.y_last,rootMeanSquare[2].mean.y_last,$PRE.rootMeanSquare[1].mean.y_last,rootMeanSquare[1].mean.y_last,switch.control[1],switch.control[2],switch.control[3],switch.control[4],switch.control[5]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001317/0.1683, allocations: 0.8434 MB / 0.5084 GB, free: 5.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000196/0.1685, allocations: 134.4 kB / 0.5085 GB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002674/0.1688, allocations: 173.3 kB / 0.5087 GB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.088e-05/0.1688, allocations: 12.06 kB / 0.5087 GB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.206e-05/0.1688, allocations: 11.98 kB / 0.5087 GB, free: 4.941 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.043e-05/0.1688, allocations: 3.984 kB / 0.5087 GB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006674/0.1755, allocations: 4.294 MB / 0.5129 GB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.017e-06/0.1755, allocations: 4 kB / 0.5129 GB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007999/0.1764, allocations: 199.6 kB / 0.5131 GB, free: 372 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005981/0.177, allocations: 273.3 kB / 0.5134 GB, free: 96 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.285e-05/0.1771, allocations: 39.97 kB / 0.5134 GB, free: 56 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004535/0.1816, allocations: 3.747 MB / 0.5171 GB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.1816, allocations: 64 / 0.5171 GB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00442/0.186, allocations: 2.933 MB / 0.5199 GB, free: 9.188 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008348/0.1869, allocations: 367.4 kB / 0.5203 GB, free: 8.809 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001914/0.1871, allocations: 47.92 kB / 0.5203 GB, free: 8.762 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006212/0.1877, allocations: 79.94 kB / 0.5204 GB, free: 8.684 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002712/0.188, allocations: 128.8 kB / 0.5205 GB, free: 8.559 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.351e-05/0.1881, allocations: 43.97 kB / 0.5206 GB, free: 8.516 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001329/0.1894, allocations: 0.8539 MB / 0.5214 GB, free: 7.652 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1894, allocations: 0 / 0.5214 GB, free: 7.652 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001416/0.1908, allocations: 432 kB / 0.5218 GB, free: 7.23 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004685/0.1955, allocations: 3.884 MB / 0.5256 GB, free: 3.277 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003089/0.1987, allocations: 1.844 MB / 0.5274 GB, free: 1.422 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/0.1987, allocations: 0 / 0.5274 GB, free: 1.422 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001738/0.2004, allocations: 1.093 MB / 0.5285 GB, free: 320 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00136/0.2018, allocations: 275.4 kB / 0.5287 GB, free: 44 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1907/0.3925, allocations: 11.31 MB / 0.5398 GB, free: 60.82 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001828/0.3944, allocations: 2.061 MB / 0.5418 GB, free: 60.07 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001093/0.3955, allocations: 373.9 kB / 0.5422 GB, free: 60.03 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000834/0.3963, allocations: 0.7493 MB / 0.5429 GB, free: 60.02 MB / 366.1 MB Notification: Performance of SimCode: time 2.615e-06/0.3964, allocations: 0 / 0.5429 GB, free: 60.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04974/0.4461, allocations: 33.6 MB / 0.5757 GB, free: 35.92 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001501/0.4463, allocations: 181.7 kB / 0.5759 GB, free: 35.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.302/2.748, allocations: 0 / 0.5759 GB, free: 35.68 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Electrical_StarPolygon_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Electrical_StarPolygon.fmu > HanserModelica_HanserModelica.Electrical.StarPolygon.pipe 2>&1) Environment - environmentSimulation: