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: "" <> 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.007701/0.007701, allocations: 97.64 kB / 15.73 MB, free: 5.988 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.606/1.606, allocations: 222.9 MB / 239.4 MB, free: 4.559 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.001614/0.001614, allocations: 192.5 kB / 289.7 MB, free: 2.277 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03722/0.03722, allocations: 8.8 MB / 348.7 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002299/0.002299, allocations: 87.88 kB / 463.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1267, allocations: 51.55 MB / 0.5029 GB, free: 10.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.008881/0.1357, allocations: 4.077 MB / 0.5069 GB, free: 6.039 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003774/0.1395, allocations: 1.102 MB / 0.508 GB, free: 4.934 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005373/0.1401, allocations: 27.88 kB / 0.508 GB, free: 4.906 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005734/0.1407, allocations: 170.6 kB / 0.5081 GB, free: 4.738 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001332/0.1421, allocations: 274.5 kB / 0.5084 GB, free: 4.469 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005731/0.1427, allocations: 171.7 kB / 0.5086 GB, free: 4.301 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003884/0.1466, allocations: 2.424 MB / 0.5109 GB, free: 1.867 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003932/0.1505, allocations: 2.514 MB / 0.5134 GB, free: 15.29 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001763/0.1523, allocations: 1.172 MB / 0.5145 GB, free: 14.11 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002388/0.1547, allocations: 1.358 MB / 0.5159 GB, free: 12.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005482/0.1553, allocations: 316 kB / 0.5162 GB, free: 12.44 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006921/0.156, allocations: 327.9 kB / 0.5165 GB, free: 12.12 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008593/0.1569, allocations: 0.8299 MB / 0.5173 GB, free: 11.29 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001897/0.1588, allocations: 1.423 MB / 0.5187 GB, free: 9.859 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00453/0.1633, allocations: 4.052 MB / 0.5226 GB, free: 5.793 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1633, allocations: 0 / 0.5226 GB, free: 5.793 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1633, allocations: 0 / 0.5226 GB, free: 5.793 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.582e-05/0.1634, allocations: 4 kB / 0.5226 GB, free: 5.789 MB / 366.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.006603/0.1701, allocations: 2.938 MB / 0.5255 GB, free: 2.785 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.1701, allocations: 8.031 kB / 0.5255 GB, free: 2.777 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005288/0.1706, allocations: 333 kB / 0.5258 GB, free: 2.441 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006313/0.1713, allocations: 287.2 kB / 0.5261 GB, free: 2.16 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002642/0.1739, allocations: 1.511 MB / 0.5276 GB, free: 0.5898 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001777/0.1741, allocations: 172.9 kB / 0.5278 GB, free: 428 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003778/0.1745, allocations: 239.9 kB / 0.528 GB, free: 188 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2354/0.4099, allocations: 3.18 MB / 0.5311 GB, free: 22.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.247e-05/0.41, allocations: 4.125 kB / 0.5311 GB, free: 22.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000198/0.4102, allocations: 95.39 kB / 0.5312 GB, free: 22.73 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.53e-05/0.4103, allocations: 56.66 kB / 0.5312 GB, free: 22.73 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004263/0.4145, allocations: 2.649 MB / 0.5338 GB, free: 22.7 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01398/0.4285, allocations: 7.818 MB / 0.5415 GB, free: 21.26 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002979/0.4316, allocations: 3.081 MB / 0.5445 GB, free: 18.79 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001872/0.4335, allocations: 1.058 MB / 0.5455 GB, free: 18.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.153e-05/0.4336, allocations: 19.06 kB / 0.5455 GB, free: 18.46 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001476/0.4351, allocations: 0.9766 MB / 0.5465 GB, free: 18.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 3.186e-06/0.4351, allocations: 1.531 kB / 0.5465 GB, free: 18.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=127): time 0.00801/0.4431, allocations: 4.511 MB / 0.5509 GB, free: 15.58 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.458e-05/0.4432, allocations: 197.4 kB / 0.5511 GB, free: 15.36 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001709/0.4449, allocations: 1.231 MB / 0.5523 GB, free: 14.69 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001201/0.4451, allocations: 57.94 kB / 0.5523 GB, free: 14.64 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007643/0.4458, allocations: 0.9786 MB / 0.5533 GB, free: 13.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002837/0.4461, allocations: 447.4 kB / 0.5537 GB, free: 13.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003291/0.4465, allocations: 244.5 kB / 0.5539 GB, free: 13.41 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.395e-05/0.4465, allocations: 361.1 kB / 0.5543 GB, free: 13.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009453/0.4475, allocations: 0.669 MB / 0.5549 GB, free: 12.72 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001067/0.4486, allocations: 0.9857 MB / 0.5559 GB, free: 12.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002027/0.4506, allocations: 1.645 MB / 0.5575 GB, free: 10.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/0.4506, allocations: 3 kB / 0.5575 GB, free: 10.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.002942/0.4536, allocations: 2.052 MB / 0.5595 GB, free: 9.922 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.703e-05/0.4536, allocations: 10.53 kB / 0.5595 GB, free: 9.922 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.492e-05/0.4536, allocations: 7 kB / 0.5595 GB, free: 9.922 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006592/0.4543, allocations: 291.2 kB / 0.5598 GB, free: 9.793 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009724/0.4553, allocations: 267.6 kB / 0.5601 GB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00369/0.459, allocations: 4.074 MB / 0.564 GB, free: 6.016 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009289/0.4599, allocations: 79.94 kB / 0.5641 GB, free: 5.938 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.478e-05/0.46, allocations: 52.05 kB / 0.5642 GB, free: 5.887 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.001136/0.4612, allocations: 0.8428 MB / 0.565 GB, free: 5.039 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001815/0.4613, allocations: 139.1 kB / 0.5651 GB, free: 4.902 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002853/0.4616, allocations: 169.3 kB / 0.5653 GB, free: 4.734 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.245e-06/0.4617, allocations: 19.94 kB / 0.5653 GB, free: 4.715 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.618e-05/0.4617, allocations: 7.938 kB / 0.5653 GB, free: 4.707 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.4617, allocations: 11.97 kB / 0.5653 GB, free: 4.695 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005213/0.4669, allocations: 4.25 MB / 0.5695 GB, free: 404 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.4669, allocations: 4.031 kB / 0.5695 GB, free: 400 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007323/0.4677, allocations: 191.8 kB / 0.5697 GB, free: 208 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000519/0.4682, allocations: 268.8 kB / 0.5699 GB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.67e-05/0.4683, allocations: 47.95 kB / 0.57 GB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005004/0.4733, allocations: 4.024 MB / 0.5739 GB, free: 11.74 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.4734, allocations: 0 / 0.5739 GB, free: 11.74 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005219/0.4786, allocations: 2.861 MB / 0.5767 GB, free: 8.848 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000963/0.4796, allocations: 368.1 kB / 0.577 GB, free: 8.469 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002337/0.4798, allocations: 48.84 kB / 0.5771 GB, free: 8.422 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008731/0.4807, allocations: 67.94 kB / 0.5771 GB, free: 8.355 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003572/0.4811, allocations: 132.8 kB / 0.5773 GB, free: 8.223 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.13e-05/0.4812, allocations: 35.98 kB / 0.5773 GB, free: 8.188 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00141/0.4826, allocations: 0.8617 MB / 0.5782 GB, free: 7.316 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4826, allocations: 4 kB / 0.5782 GB, free: 7.312 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001752/0.4843, allocations: 439.9 kB / 0.5786 GB, free: 6.883 MB / 382.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.005337/0.4897, allocations: 3.458 MB / 0.582 GB, free: 3.379 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003698/0.4934, allocations: 1.839 MB / 0.5837 GB, free: 1.531 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.759e-06/0.4935, allocations: 4 kB / 0.5838 GB, free: 1.527 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002061/0.4955, allocations: 1.085 MB / 0.5848 GB, free: 444 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001944/0.4975, allocations: 310.6 kB / 0.5851 GB, free: 156 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03343/0.5309, allocations: 15.91 MB / 0.6006 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002117/0.5331, allocations: 2.023 MB / 0.6026 GB, free: 13.78 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001163/0.5343, allocations: 366.3 kB / 0.603 GB, free: 13.42 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001087/0.5354, allocations: 0.7531 MB / 0.6037 GB, free: 12.66 MB / 414.1 MB Notification: Performance of SimCode: time 5.01e-07/0.5354, allocations: 0 / 0.6037 GB, free: 12.66 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09315/0.6285, allocations: 37.38 MB / 0.6402 GB, free: 7.57 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.32/12.95, allocations: 11.58 kB / 0.6402 GB, free: 7.559 MB / 446.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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Electrical.StarPolygon_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_Electrical_StarPolygon.fmu > HanserModelica_HanserModelica.Electrical.StarPolygon.pipe 2>&1)