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.001295/0.001295, allocations: 103.6 kB / 18.95 MB, free: 2.812 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.525/1.525, allocations: 230.6 MB / 252.7 MB, free: 8.105 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.001561/0.001561, allocations: 201 kB / 309.2 MB, free: 2.949 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.04145/0.04145, allocations: 8.91 MB / 374.6 MB, free: 1.723 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.004339/0.004339, allocations: 83.88 kB / 0.4891 GB, free: 7.199 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3042/0.3086, allocations: 55.6 MB / 0.5434 GB, free: 26.6 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.00693/0.3155, allocations: 3.774 MB / 0.5471 GB, free: 24.09 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003546/0.319, allocations: 1.15 MB / 0.5482 GB, free: 23.29 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007525/0.3198, allocations: 34.22 kB / 0.5483 GB, free: 23.28 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006791/0.3205, allocations: 180.5 kB / 0.5484 GB, free: 23.17 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001607/0.3221, allocations: 297.3 kB / 0.5487 GB, free: 23 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007451/0.3228, allocations: 183.7 kB / 0.5489 GB, free: 22.89 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003115/0.3259, allocations: 2.445 MB / 0.5513 GB, free: 21.69 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002049/0.328, allocations: 1.279 MB / 0.5525 GB, free: 21.03 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001792/0.3298, allocations: 1.215 MB / 0.5537 GB, free: 20.46 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0026/0.3324, allocations: 1.431 MB / 0.5551 GB, free: 19.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006463/0.333, allocations: 313.6 kB / 0.5554 GB, free: 19.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008746/0.3339, allocations: 327.8 kB / 0.5557 GB, free: 19.76 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00071/0.3346, allocations: 0.8532 MB / 0.5566 GB, free: 19.28 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00135/0.336, allocations: 1.166 MB / 0.5577 GB, free: 18.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005182/0.3412, allocations: 4.124 MB / 0.5617 GB, free: 17.14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.3412, allocations: 0 / 0.5617 GB, free: 17.14 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.3412, allocations: 0 / 0.5617 GB, free: 17.14 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001469/0.3413, allocations: 4 kB / 0.5617 GB, free: 17.14 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.01026/0.3516, allocations: 4.022 MB / 0.5657 GB, free: 15.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/0.3516, allocations: 9.438 kB / 0.5657 GB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005585/0.3522, allocations: 336.1 kB / 0.566 GB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001379/0.3536, allocations: 341.7 kB / 0.5663 GB, free: 14.74 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003907/0.3575, allocations: 1.515 MB / 0.5678 GB, free: 13.94 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001828/0.3576, allocations: 176 kB / 0.568 GB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005411/0.3582, allocations: 234.6 kB / 0.5682 GB, free: 13.78 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008831/0.367, allocations: 3.314 MB / 0.5714 GB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.37e-05/0.3671, allocations: 2.75 kB / 0.5714 GB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003472/0.3675, allocations: 91.25 kB / 0.5715 GB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.467e-05/0.3675, allocations: 55 kB / 0.5716 GB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007758/0.3753, allocations: 2.651 MB / 0.5742 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01681/0.3921, allocations: 7.129 MB / 0.5811 GB, free: 5.898 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00169/0.3938, allocations: 1.5 MB / 0.5826 GB, free: 4.422 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001284/0.3951, allocations: 1.006 MB / 0.5836 GB, free: 3.414 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.997e-05/0.3951, allocations: 16.98 kB / 0.5836 GB, free: 3.398 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0012/0.3963, allocations: 1.105 MB / 0.5847 GB, free: 2.23 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 4.398e-06/0.3963, allocations: 4 kB / 0.5847 GB, free: 2.227 MB / 382.1 MB Notification: Performance of matching and sorting (n=127): time 0.008066/0.4044, allocations: 4.497 MB / 0.5891 GB, free: 13.69 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001544/0.4045, allocations: 205.2 kB / 0.5893 GB, free: 13.45 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002111/0.4067, allocations: 1.288 MB / 0.5905 GB, free: 12.14 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001669/0.4068, allocations: 57.7 kB / 0.5906 GB, free: 12.08 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00108/0.4079, allocations: 0.993 MB / 0.5915 GB, free: 11.08 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004608/0.4084, allocations: 456.2 kB / 0.592 GB, free: 10.63 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003976/0.4088, allocations: 238.9 kB / 0.5922 GB, free: 10.39 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001869/0.409, allocations: 357.9 kB / 0.5925 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001198/0.4101, allocations: 0.6739 MB / 0.5932 GB, free: 9.363 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001472/0.4116, allocations: 1.127 MB / 0.5943 GB, free: 8.098 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002511/0.4141, allocations: 1.647 MB / 0.5959 GB, free: 6.355 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.807e-06/0.4141, allocations: 4.062 kB / 0.5959 GB, free: 6.352 MB / 398.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.003549/0.4177, allocations: 2.063 MB / 0.5979 GB, free: 4.273 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.632e-05/0.4177, allocations: 8 kB / 0.5979 GB, free: 4.266 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.552e-05/0.4177, allocations: 11.94 kB / 0.598 GB, free: 4.254 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006477/0.4184, allocations: 298.7 kB / 0.5982 GB, free: 3.961 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009863/0.4194, allocations: 259.6 kB / 0.5985 GB, free: 3.707 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005083/0.4244, allocations: 3.986 MB / 0.6024 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001008/0.4255, allocations: 75.98 kB / 0.6025 GB, free: 15.53 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.026e-05/0.4255, allocations: 51.98 kB / 0.6025 GB, free: 15.48 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.001397/0.4269, allocations: 0.8471 MB / 0.6033 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002416/0.4272, allocations: 147.1 kB / 0.6035 GB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003064/0.4275, allocations: 177.9 kB / 0.6036 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.207e-05/0.4275, allocations: 15.94 kB / 0.6037 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.753e-05/0.4275, allocations: 4 kB / 0.6037 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/0.4275, allocations: 7.969 kB / 0.6037 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007203/0.4347, allocations: 4.086 MB / 0.6077 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.4347, allocations: 0 / 0.6077 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007931/0.4355, allocations: 195.8 kB / 0.6078 GB, free: 9.926 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005867/0.4361, allocations: 272.5 kB / 0.6081 GB, free: 9.656 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001013/0.4362, allocations: 47.97 kB / 0.6081 GB, free: 9.609 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005044/0.4413, allocations: 3.907 MB / 0.612 GB, free: 5.59 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.4413, allocations: 0 / 0.612 GB, free: 5.59 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004805/0.4461, allocations: 2.869 MB / 0.6148 GB, free: 2.688 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001029/0.4471, allocations: 307 kB / 0.6151 GB, free: 2.387 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000211/0.4473, allocations: 47.97 kB / 0.6151 GB, free: 2.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006279/0.4479, allocations: 67.94 kB / 0.6152 GB, free: 2.273 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002958/0.4482, allocations: 136.8 kB / 0.6153 GB, free: 2.141 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.072e-05/0.4483, allocations: 43.92 kB / 0.6153 GB, free: 2.098 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001419/0.4497, allocations: 0.8981 MB / 0.6162 GB, free: 1.191 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4497, allocations: 0 / 0.6162 GB, free: 1.191 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001621/0.4514, allocations: 448 kB / 0.6166 GB, free: 0.7539 MB / 414.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.0048/0.4562, allocations: 3.458 MB / 0.62 GB, free: 13.24 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003305/0.4595, allocations: 1.797 MB / 0.6218 GB, free: 11.43 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/0.4595, allocations: 4 kB / 0.6218 GB, free: 11.42 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001819/0.4613, allocations: 1.036 MB / 0.6228 GB, free: 10.38 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00161/0.4629, allocations: 326.8 kB / 0.6231 GB, free: 10.07 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02661/0.4895, allocations: 16.25 MB / 0.639 GB, free: 9.406 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001708/0.4912, allocations: 1.47 MB / 0.6404 GB, free: 7.895 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009859/0.4922, allocations: 374.4 kB / 0.6408 GB, free: 7.523 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001087/0.4933, allocations: 0.7844 MB / 0.6415 GB, free: 6.742 MB / 446.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4933, allocations: 0 / 0.6415 GB, free: 6.742 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08734/0.5806, allocations: 40.89 MB / 0.6815 GB, free: 14.28 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/13.1, allocations: 10.45 kB / 0.6815 GB, free: 14.27 MB / 494.1 MB " [Timeout remaining time 647] (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: 15.97962295403704] Failed to read output from testmodel.py, exit status != 0: 13.232077659107745 13.246783507 12.902196123 Calling exit ...