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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001356/0.001356, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.49/1.49, allocations: 230.6 MB / 252.6 MB, free: 8.312 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001573/0.001573, allocations: 203.3 kB / 309.2 MB, free: 3.16 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.04164/0.04164, allocations: 8.922 MB / 374.6 MB, free: 1.91 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002566/0.002566, allocations: 84.25 kB / 0.4892 GB, free: 7.375 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3102/0.3127, allocations: 55.62 MB / 0.5435 GB, free: 26.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.004906/0.3177, allocations: 4.157 MB / 0.5476 GB, free: 23.89 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002859/0.3205, allocations: 1.194 MB / 0.5487 GB, free: 23.04 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006807/0.3212, allocations: 34.59 kB / 0.5488 GB, free: 23.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005713/0.3218, allocations: 174.3 kB / 0.5489 GB, free: 22.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001354/0.3231, allocations: 299.4 kB / 0.5492 GB, free: 22.75 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006475/0.3238, allocations: 186 kB / 0.5494 GB, free: 22.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002983/0.3267, allocations: 2.448 MB / 0.5518 GB, free: 21.44 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002091/0.3288, allocations: 1.308 MB / 0.5531 GB, free: 20.74 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001868/0.3307, allocations: 1.203 MB / 0.5542 GB, free: 20.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002809/0.3335, allocations: 1.386 MB / 0.5556 GB, free: 19.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007686/0.3343, allocations: 319.4 kB / 0.5559 GB, free: 19.49 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008972/0.3352, allocations: 329.5 kB / 0.5562 GB, free: 19.48 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000746/0.3359, allocations: 0.8557 MB / 0.557 GB, free: 19 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001713/0.3376, allocations: 1.428 MB / 0.5584 GB, free: 18.08 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005928/0.3436, allocations: 4.094 MB / 0.5624 GB, free: 16.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.307e-06/0.3436, allocations: 0.75 kB / 0.5624 GB, free: 16.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3436, allocations: 4.562 kB / 0.5624 GB, free: 16.59 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001764/0.3438, allocations: 0 / 0.5624 GB, free: 16.59 MB / 382.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.01483/0.3586, allocations: 4.032 MB / 0.5664 GB, free: 14.53 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.6e-05/0.3587, allocations: 11.2 kB / 0.5664 GB, free: 14.53 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001585/0.3602, allocations: 332.4 kB / 0.5667 GB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002613/0.3629, allocations: 340.9 kB / 0.567 GB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005752/0.3686, allocations: 1.513 MB / 0.5685 GB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000291/0.3689, allocations: 170.4 kB / 0.5687 GB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009988/0.3699, allocations: 236 kB / 0.5689 GB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.011/0.3809, allocations: 3.192 MB / 0.572 GB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.032e-05/0.381, allocations: 1.375 kB / 0.572 GB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003943/0.3814, allocations: 96.62 kB / 0.5721 GB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.517e-05/0.3815, allocations: 58.98 kB / 0.5722 GB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008406/0.3899, allocations: 2.646 MB / 0.5748 GB, free: 10.15 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02095/0.4108, allocations: 7.785 MB / 0.5824 GB, free: 4.883 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00315/0.414, allocations: 1.507 MB / 0.5838 GB, free: 3.469 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00235/0.4163, allocations: 1.01 MB / 0.5848 GB, free: 2.457 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.134e-05/0.4164, allocations: 16.98 kB / 0.5848 GB, free: 2.441 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001914/0.4183, allocations: 0.9761 MB / 0.5858 GB, free: 1.43 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 4.508e-06/0.4183, allocations: 0 / 0.5858 GB, free: 1.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=127): time 0.01477/0.4331, allocations: 4.501 MB / 0.5902 GB, free: 12.89 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002128/0.4333, allocations: 197.2 kB / 0.5904 GB, free: 12.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00329/0.4366, allocations: 1.288 MB / 0.5916 GB, free: 11.36 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003767/0.437, allocations: 61.69 kB / 0.5917 GB, free: 11.29 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001506/0.4385, allocations: 0.993 MB / 0.5927 GB, free: 10.29 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007815/0.4393, allocations: 456.2 kB / 0.5931 GB, free: 9.836 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006283/0.4399, allocations: 242.9 kB / 0.5933 GB, free: 9.594 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002603/0.4402, allocations: 357.9 kB / 0.5937 GB, free: 9.238 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001887/0.442, allocations: 0.6739 MB / 0.5943 GB, free: 8.562 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002459/0.4445, allocations: 0.9901 MB / 0.5953 GB, free: 7.465 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004427/0.4489, allocations: 1.654 MB / 0.5969 GB, free: 5.715 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.927e-06/0.4489, allocations: 4 kB / 0.5969 GB, free: 5.711 MB / 398.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.005842/0.4548, allocations: 2.051 MB / 0.5989 GB, free: 3.648 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.691e-05/0.4548, allocations: 13.66 kB / 0.5989 GB, free: 3.637 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.369e-05/0.4548, allocations: 8 kB / 0.5989 GB, free: 3.629 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009304/0.4558, allocations: 300.9 kB / 0.5992 GB, free: 3.332 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001531/0.4573, allocations: 271.5 kB / 0.5995 GB, free: 3.066 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006406/0.4637, allocations: 4.04 MB / 0.6034 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001145/0.4649, allocations: 83.98 kB / 0.6035 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001158/0.465, allocations: 47.98 kB / 0.6035 GB, free: 14.78 MB / 414.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[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 (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 {(3,22,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001656/0.4666, allocations: 0.8471 MB / 0.6044 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003406/0.467, allocations: 143.1 kB / 0.6045 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004059/0.4674, allocations: 177.9 kB / 0.6047 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.399e-05/0.4674, allocations: 19.94 kB / 0.6047 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-05/0.4674, allocations: 4 kB / 0.6047 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.501e-05/0.4674, allocations: 7.969 kB / 0.6047 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008676/0.4761, allocations: 4.268 MB / 0.6089 GB, free: 9.234 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/0.4761, allocations: 0 / 0.6089 GB, free: 9.234 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008758/0.477, allocations: 191.7 kB / 0.6091 GB, free: 9.047 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006537/0.4776, allocations: 285 kB / 0.6093 GB, free: 8.766 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001181/0.4778, allocations: 39.97 kB / 0.6094 GB, free: 8.727 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005486/0.4832, allocations: 3.96 MB / 0.6132 GB, free: 4.652 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.4832, allocations: 0 / 0.6132 GB, free: 4.652 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005041/0.4883, allocations: 2.858 MB / 0.616 GB, free: 1.762 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001146/0.4894, allocations: 314.9 kB / 0.6163 GB, free: 1.453 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002648/0.4897, allocations: 39.98 kB / 0.6164 GB, free: 1.414 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006723/0.4904, allocations: 71.94 kB / 0.6164 GB, free: 1.344 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003351/0.4907, allocations: 136.7 kB / 0.6166 GB, free: 1.211 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.397e-05/0.4908, allocations: 43.92 kB / 0.6166 GB, free: 1.168 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001438/0.4922, allocations: 0.8981 MB / 0.6175 GB, free: 268 kB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4922, allocations: 4 kB / 0.6175 GB, free: 264 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.001539/0.4938, allocations: 444 kB / 0.6179 GB, free: 15.82 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (rootMeanSquare[5].mean.x,rootMeanSquare[4].mean.x,rootMeanSquare[3].mean.x,rootMeanSquare[2].mean.x,rootMeanSquare[1].mean.x,inductorLoad.inductor[5].i,inductorLoad.inductor[4].i,inductorLoad.inductor[3].i,inductorLoad.inductor[2].i,inductorLoad.inductor[1].i) * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rootMeanSquare[5].mean.y_last,rootMeanSquare[4].mean.y_last,rootMeanSquare[3].mean.y_last,rootMeanSquare[2].mean.y_last,rootMeanSquare[1].mean.y_last,switch.control[5],switch.control[4],switch.control[3],switch.control[2],switch.control[1]) * 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.0051/0.4989, allocations: 3.466 MB / 0.6213 GB, free: 12.31 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003349/0.5022, allocations: 1.79 MB / 0.623 GB, free: 10.51 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.5022, allocations: 4 kB / 0.623 GB, free: 10.5 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001954/0.5042, allocations: 1.038 MB / 0.6241 GB, free: 9.453 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001647/0.5058, allocations: 324.5 kB / 0.6244 GB, free: 9.141 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0286/0.5344, allocations: 16.26 MB / 0.6402 GB, free: 8.469 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002136/0.5366, allocations: 2.05 MB / 0.6422 GB, free: 6.387 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00119/0.5377, allocations: 378.3 kB / 0.6426 GB, free: 6.012 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001107/0.5388, allocations: 0.7805 MB / 0.6434 GB, free: 5.234 MB / 446.1 MB Notification: Performance of SimCode: time 1.382e-06/0.5388, allocations: 0 / 0.6434 GB, free: 5.234 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0884/0.6273, allocations: 39.62 MB / 0.6821 GB, free: 13.96 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.86/14.48, allocations: 9.797 kB / 0.6821 GB, free: 13.95 MB / 494.1 MB " [Timeout remaining time 645] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.5985000859946] Failed to read output from testmodel.py, exit status != 0: 14.613488367001992 14.804739647 14.28314938 Calling exit ...