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.001135/0.001134, allocations: 108 kB / 15.6 MB, free: 132 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.352/1.352, allocations: 222.9 MB / 239.3 MB, free: 4.594 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.001479/0.001479, allocations: 192.5 kB / 289.6 MB, free: 2.32 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03479/0.03479, allocations: 8.797 MB / 348.5 MB, free: 4.691 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001564/0.001564, allocations: 79.88 kB / 411.2 MB, free: 42.03 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1171, allocations: 51.56 MB / 462.7 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.005495/0.1227, allocations: 4.058 MB / 466.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002336/0.1251, allocations: 1.11 MB / 467.9 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003184/0.1254, allocations: 23.88 kB / 467.9 MB, free: 9 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003423/0.1258, allocations: 166.7 kB / 468.1 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008485/0.1267, allocations: 282.4 kB / 468.4 MB, free: 8.559 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003409/0.127, allocations: 171.7 kB / 468.5 MB, free: 8.391 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002442/0.1295, allocations: 2.409 MB / 471 MB, free: 5.973 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002518/0.132, allocations: 2.526 MB / 473.5 MB, free: 3.387 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001457/0.1335, allocations: 1.161 MB / 474.6 MB, free: 2.223 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001602/0.1351, allocations: 1.354 MB / 476 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004669/0.1356, allocations: 312 kB / 476.3 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005404/0.1361, allocations: 324 kB / 476.6 MB, free: 248 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007148/0.1368, allocations: 0.8492 MB / 477.5 MB, free: 15.39 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001669/0.1385, allocations: 1.419 MB / 478.9 MB, free: 13.96 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003606/0.1421, allocations: 3.984 MB / 482.9 MB, free: 9.969 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.1422, allocations: 0 / 482.9 MB, free: 9.969 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1422, allocations: 0 / 482.9 MB, free: 9.969 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.619e-05/0.1423, allocations: 0 / 482.9 MB, free: 9.969 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.005544/0.1478, allocations: 2.88 MB / 485.8 MB, free: 7.023 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.1479, allocations: 8.031 kB / 485.8 MB, free: 7.016 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000387/0.1483, allocations: 333 kB / 486.1 MB, free: 6.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004929/0.1488, allocations: 277.7 kB / 486.4 MB, free: 6.406 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002111/0.1509, allocations: 1.463 MB / 487.8 MB, free: 4.883 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001314/0.151, allocations: 176.9 kB / 488 MB, free: 4.707 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003137/0.1513, allocations: 235.8 kB / 488.2 MB, free: 4.477 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0047/0.1561, allocations: 3.186 MB / 491.4 MB, free: 1.211 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.57e-05/0.1561, allocations: 7.938 kB / 491.4 MB, free: 1.203 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002213/0.1563, allocations: 96 kB / 491.5 MB, free: 1.109 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-05/0.1564, allocations: 56 kB / 491.6 MB, free: 1.055 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004101/0.1605, allocations: 2.645 MB / 494.2 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01199/0.1725, allocations: 7.912 MB / 0.4904 GB, free: 6.324 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003148/0.1757, allocations: 3.084 MB / 0.4934 GB, free: 2.891 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001686/0.1774, allocations: 1.033 MB / 0.4944 GB, free: 1.855 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.89e-05/0.1775, allocations: 16.98 kB / 0.4944 GB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001501/0.179, allocations: 0.9727 MB / 0.4953 GB, free: 0.832 MB / 334.1 MB Notification: Performance of pre-optimization done (n=122): time 4.418e-06/0.179, allocations: 0 / 0.4953 GB, free: 0.832 MB / 334.1 MB Notification: Performance of matching and sorting (n=127): time 0.007851/0.1869, allocations: 4.464 MB / 0.4997 GB, free: 12.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/0.187, allocations: 209.2 kB / 0.4999 GB, free: 12.08 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001724/0.1888, allocations: 1.223 MB / 0.5011 GB, free: 10.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.967e-05/0.1889, allocations: 57.69 kB / 0.5011 GB, free: 10.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008139/0.1897, allocations: 0.9588 MB / 0.5021 GB, free: 9.801 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003362/0.19, allocations: 425.9 kB / 0.5025 GB, free: 9.379 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003906/0.1904, allocations: 242.8 kB / 0.5027 GB, free: 9.133 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.1906, allocations: 361.9 kB / 0.5031 GB, free: 8.773 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00109/0.1917, allocations: 0.6661 MB / 0.5037 GB, free: 8.109 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001324/0.193, allocations: 0.9778 MB / 0.5047 GB, free: 7.016 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002255/0.1953, allocations: 1.654 MB / 0.5063 GB, free: 5.262 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.333e-06/0.1953, allocations: 0 / 0.5063 GB, free: 5.262 MB / 350.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.003309/0.1986, allocations: 2.046 MB / 0.5083 GB, free: 3.203 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/0.1987, allocations: 8 kB / 0.5083 GB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/0.1987, allocations: 4 kB / 0.5083 GB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006021/0.1993, allocations: 290.5 kB / 0.5086 GB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001005/0.2003, allocations: 263.6 kB / 0.5088 GB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005022/0.2053, allocations: 4.09 MB / 0.5128 GB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009614/0.2063, allocations: 79.94 kB / 0.5129 GB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001202/0.2065, allocations: 51.98 kB / 0.5129 GB, free: 14.29 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.001322/0.2078, allocations: 0.8507 MB / 0.5138 GB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002912/0.2081, allocations: 134.4 kB / 0.5139 GB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004006/0.2085, allocations: 169.3 kB / 0.5141 GB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.139e-05/0.2085, allocations: 15.94 kB / 0.5141 GB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.516e-05/0.2085, allocations: 4 kB / 0.5141 GB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.463e-05/0.2086, allocations: 7.969 kB / 0.5141 GB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007146/0.2157, allocations: 4.286 MB / 0.5183 GB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.511e-06/0.2157, allocations: 0 / 0.5183 GB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008231/0.2166, allocations: 191.9 kB / 0.5185 GB, free: 8.555 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005429/0.2171, allocations: 269.2 kB / 0.5187 GB, free: 8.289 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.634e-05/0.2172, allocations: 39.97 kB / 0.5188 GB, free: 8.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00444/0.2217, allocations: 4.025 MB / 0.5227 GB, free: 4.082 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.2217, allocations: 3.984 kB / 0.5227 GB, free: 4.078 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004045/0.2258, allocations: 2.843 MB / 0.5255 GB, free: 1.199 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006304/0.2264, allocations: 363.4 kB / 0.5258 GB, free: 0.8242 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002381/0.2267, allocations: 51.97 kB / 0.5259 GB, free: 0.7734 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006677/0.2273, allocations: 71.94 kB / 0.5259 GB, free: 0.7031 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002614/0.2276, allocations: 132.8 kB / 0.5261 GB, free: 0.5742 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.399e-05/0.2277, allocations: 36.08 kB / 0.5261 GB, free: 0.5391 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.1482/0.3759, allocations: 0.866 MB / 0.5269 GB, free: 67.28 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.3759, allocations: 0.875 kB / 0.5269 GB, free: 67.28 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001586/0.3775, allocations: 439.1 kB / 0.5274 GB, free: 67.28 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.003732/0.3812, allocations: 3.445 MB / 0.5307 GB, free: 66.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004229/0.3855, allocations: 2.556 MB / 0.5332 GB, free: 66.39 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.3855, allocations: 1.094 kB / 0.5332 GB, free: 66.39 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001625/0.3871, allocations: 1.09 MB / 0.5343 GB, free: 66.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001405/0.3886, allocations: 302.5 kB / 0.5346 GB, free: 66.24 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02099/0.4096, allocations: 16.92 MB / 0.5511 GB, free: 60.54 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00125/0.4109, allocations: 2.034 MB / 0.5531 GB, free: 58.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008712/0.4117, allocations: 365.8 kB / 0.5534 GB, free: 58.47 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007071/0.4125, allocations: 0.7531 MB / 0.5542 GB, free: 57.71 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4125, allocations: 0 / 0.5542 GB, free: 57.71 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05611/0.4686, allocations: 36.6 MB / 0.5899 GB, free: 21.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.01/10.47, allocations: 10.11 kB / 0.5899 GB, free: 21.42 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 & 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)