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.005474/0.005474, allocations: 96.53 kB / 15.73 MB, free: 6.043 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.411/1.411, allocations: 222.9 MB / 239.4 MB, free: 4.562 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.001642/0.001642, allocations: 184.4 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.03531/0.03531, allocations: 8.791 MB / 348.7 MB, free: 4.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 79.88 kB / 463.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.116, allocations: 51.56 MB / 0.5029 GB, free: 10.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.00621/0.1223, allocations: 4.07 MB / 0.5069 GB, free: 5.934 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002753/0.1251, allocations: 1.102 MB / 0.508 GB, free: 4.828 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000692/0.1259, allocations: 23.88 kB / 0.508 GB, free: 4.805 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005944/0.1265, allocations: 174.7 kB / 0.5081 GB, free: 4.633 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001421/0.1279, allocations: 290.4 kB / 0.5084 GB, free: 4.348 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006125/0.1285, allocations: 167.8 kB / 0.5086 GB, free: 4.184 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002926/0.1315, allocations: 2.432 MB / 0.511 GB, free: 1.742 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00286/0.1343, allocations: 2.514 MB / 0.5134 GB, free: 15.16 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002109/0.1365, allocations: 1.164 MB / 0.5146 GB, free: 14 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002681/0.1392, allocations: 1.366 MB / 0.5159 GB, free: 12.62 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008578/0.14, allocations: 312 kB / 0.5162 GB, free: 12.32 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008555/0.1409, allocations: 324 kB / 0.5165 GB, free: 12 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008362/0.1418, allocations: 0.8376 MB / 0.5173 GB, free: 11.16 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001847/0.1436, allocations: 1.423 MB / 0.5187 GB, free: 9.734 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004622/0.1482, allocations: 4.048 MB / 0.5227 GB, free: 5.672 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.1483, allocations: 0 / 0.5227 GB, free: 5.672 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1483, allocations: 0 / 0.5227 GB, free: 5.672 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001086/0.1484, allocations: 4 kB / 0.5227 GB, free: 5.668 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.006624/0.155, allocations: 2.938 MB / 0.5255 GB, free: 2.664 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.1551, allocations: 8.031 kB / 0.5255 GB, free: 2.656 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000549/0.1557, allocations: 340.9 kB / 0.5259 GB, free: 2.312 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005415/0.1562, allocations: 291.2 kB / 0.5261 GB, free: 2.027 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00284/0.1591, allocations: 1.503 MB / 0.5276 GB, free: 476 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000149/0.1592, allocations: 172.9 kB / 0.5278 GB, free: 300 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003503/0.1596, allocations: 239.9 kB / 0.528 GB, free: 60 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2228/0.3824, allocations: 3.18 MB / 0.5311 GB, free: 22.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.395e-05/0.3825, allocations: 1.781 kB / 0.5311 GB, free: 22.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000195/0.3827, allocations: 93.89 kB / 0.5312 GB, free: 22.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.761e-05/0.3827, allocations: 55.97 kB / 0.5312 GB, free: 22.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004915/0.3877, allocations: 2.65 MB / 0.5338 GB, free: 22.79 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01475/0.4024, allocations: 7.817 MB / 0.5415 GB, free: 21.25 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002663/0.4051, allocations: 3.082 MB / 0.5445 GB, free: 18.78 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001953/0.4071, allocations: 1.055 MB / 0.5455 GB, free: 18.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.154e-05/0.4072, allocations: 23.5 kB / 0.5455 GB, free: 18.45 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001475/0.4087, allocations: 0.972 MB / 0.5465 GB, free: 18 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 3.146e-06/0.4087, allocations: 1.422 kB / 0.5465 GB, free: 18 MB / 366.1 MB Notification: Performance of matching and sorting (n=127): time 0.007384/0.4161, allocations: 4.51 MB / 0.5509 GB, free: 15.55 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.388e-05/0.4162, allocations: 206 kB / 0.5511 GB, free: 15.32 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001564/0.4178, allocations: 1.228 MB / 0.5523 GB, free: 14.66 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.323e-05/0.4178, allocations: 52.86 kB / 0.5523 GB, free: 14.61 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006792/0.4185, allocations: 0.9798 MB / 0.5533 GB, free: 13.89 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002375/0.4188, allocations: 450.4 kB / 0.5537 GB, free: 13.51 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003242/0.4191, allocations: 239.7 kB / 0.5539 GB, free: 13.38 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.577e-05/0.4192, allocations: 358.4 kB / 0.5543 GB, free: 13.04 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009484/0.4201, allocations: 0.6682 MB / 0.5549 GB, free: 12.7 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00108/0.4212, allocations: 0.9893 MB / 0.5559 GB, free: 11.99 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002059/0.4233, allocations: 1.646 MB / 0.5575 GB, free: 10.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.4233, allocations: 2.469 kB / 0.5575 GB, free: 10.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.00288/0.4262, allocations: 2.052 MB / 0.5595 GB, free: 9.895 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.563e-05/0.4262, allocations: 6.875 kB / 0.5595 GB, free: 9.895 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.556e-05/0.4263, allocations: 8.25 kB / 0.5595 GB, free: 9.895 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006159/0.4269, allocations: 295.3 kB / 0.5598 GB, free: 9.762 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/0.4279, allocations: 269.7 kB / 0.5601 GB, free: 9.691 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00558/0.4335, allocations: 4.066 MB / 0.564 GB, free: 5.953 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001612/0.4352, allocations: 83.98 kB / 0.5641 GB, free: 5.871 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001199/0.4353, allocations: 48 kB / 0.5642 GB, free: 5.824 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.002255/0.4376, allocations: 0.8501 MB / 0.565 GB, free: 4.969 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003787/0.438, allocations: 139.2 kB / 0.5651 GB, free: 4.832 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004298/0.4384, allocations: 180.7 kB / 0.5653 GB, free: 4.656 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.387e-05/0.4385, allocations: 15.94 kB / 0.5653 GB, free: 4.641 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.799e-05/0.4385, allocations: 4 kB / 0.5653 GB, free: 4.637 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.431e-05/0.4385, allocations: 3.984 kB / 0.5653 GB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00971/0.4483, allocations: 4.255 MB / 0.5695 GB, free: 336 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.677e-06/0.4483, allocations: 4 kB / 0.5695 GB, free: 332 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001145/0.4494, allocations: 187.8 kB / 0.5697 GB, free: 144 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008118/0.4503, allocations: 272.9 kB / 0.5699 GB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001536/0.4504, allocations: 44.84 kB / 0.57 GB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006999/0.4575, allocations: 4.022 MB / 0.5739 GB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/0.4575, allocations: 4.031 kB / 0.5739 GB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006804/0.4643, allocations: 2.857 MB / 0.5767 GB, free: 8.789 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001449/0.4658, allocations: 372.1 kB / 0.577 GB, free: 8.406 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003616/0.4662, allocations: 43.97 kB / 0.5771 GB, free: 8.363 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001177/0.4674, allocations: 75.92 kB / 0.5772 GB, free: 8.289 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004749/0.4679, allocations: 132.8 kB / 0.5773 GB, free: 8.156 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001279/0.468, allocations: 39.97 kB / 0.5773 GB, free: 8.117 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001907/0.4699, allocations: 0.8578 MB / 0.5782 GB, free: 7.25 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4699, allocations: 0 / 0.5782 GB, free: 7.25 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002466/0.4724, allocations: 447.9 kB / 0.5786 GB, free: 6.812 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.007295/0.4797, allocations: 3.453 MB / 0.582 GB, free: 3.316 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005224/0.485, allocations: 1.844 MB / 0.5838 GB, free: 1.465 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/0.485, allocations: 0 / 0.5838 GB, free: 1.465 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0031/0.4881, allocations: 1.086 MB / 0.5848 GB, free: 380 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002834/0.491, allocations: 310.8 kB / 0.5851 GB, free: 88 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04194/0.5329, allocations: 15.91 MB / 0.6007 GB, free: 15.78 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003632/0.5366, allocations: 2.015 MB / 0.6026 GB, free: 13.72 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001873/0.5386, allocations: 366.3 kB / 0.603 GB, free: 13.36 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001893/0.5405, allocations: 0.757 MB / 0.6037 GB, free: 12.6 MB / 414.1 MB Notification: Performance of SimCode: time 1.162e-06/0.5405, allocations: 4 kB / 0.6037 GB, free: 12.6 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1109/0.6514, allocations: 37.38 MB / 0.6402 GB, free: 7.512 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.96/12.62, allocations: 7.641 kB / 0.6402 GB, free: 7.504 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)