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.001362/0.001362, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.51/1.51, allocations: 230.6 MB / 253.5 MB, free: 14.29 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.001524/0.001524, allocations: 212.2 kB / 310 MB, free: 3.094 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.04085/0.04085, allocations: 8.925 MB / 375.4 MB, free: 6.574 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Electrical.StarPolygon,fileNamePrefix="HanserModelica_HanserModelica_Electrical_StarPolygon",fmuType="cs",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.002405/0.002405, allocations: 75.89 kB / 0.4899 GB, free: 44.75 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08758/0.08999, allocations: 55.6 MB / 0.5442 GB, free: 5.051 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.005631/0.09562, allocations: 3.774 MB / 0.5479 GB, free: 1.254 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002298/0.09792, allocations: 1.141 MB / 0.549 GB, free: 112 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002799/0.0982, allocations: 35.75 kB / 0.549 GB, free: 76 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003932/0.09859, allocations: 182.6 kB / 0.5492 GB, free: 15.89 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008344/0.09942, allocations: 298.4 kB / 0.5495 GB, free: 15.6 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003915/0.09981, allocations: 183.7 kB / 0.5497 GB, free: 15.42 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002515/0.1023, allocations: 2.455 MB / 0.5521 GB, free: 12.96 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00158/0.1039, allocations: 1.301 MB / 0.5533 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001439/0.1053, allocations: 1.207 MB / 0.5545 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001896/0.1072, allocations: 1.389 MB / 0.5559 GB, free: 8.988 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004802/0.1077, allocations: 316 kB / 0.5562 GB, free: 8.68 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005875/0.1083, allocations: 328 kB / 0.5565 GB, free: 8.359 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000779/0.1091, allocations: 0.8531 MB / 0.5573 GB, free: 7.504 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001436/0.1105, allocations: 1.167 MB / 0.5585 GB, free: 6.332 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004613/0.1151, allocations: 4.126 MB / 0.5625 GB, free: 2.188 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.1151, allocations: 0 / 0.5625 GB, free: 2.188 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1151, allocations: 0 / 0.5625 GB, free: 2.188 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000114/0.1153, allocations: 0 / 0.5625 GB, free: 2.188 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.2218/0.3371, allocations: 4.02 MB / 0.5664 GB, free: 24.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.059e-05/0.3371, allocations: 15.89 kB / 0.5664 GB, free: 24.18 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.085e-05/0.3372, allocations: 59.56 kB / 0.5665 GB, free: 24.17 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004101/0.3376, allocations: 339.1 kB / 0.5668 GB, free: 24.12 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008857/0.3385, allocations: 343.3 kB / 0.5671 GB, free: 23.97 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002238/0.3407, allocations: 1.509 MB / 0.5686 GB, free: 23.65 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001373/0.3409, allocations: 177.8 kB / 0.5688 GB, free: 23.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003103/0.3412, allocations: 233.6 kB / 0.569 GB, free: 23.64 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005164/0.3464, allocations: 3.316 MB / 0.5722 GB, free: 22.79 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.502e-05/0.3464, allocations: 2.188 kB / 0.5722 GB, free: 22.79 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001853/0.3466, allocations: 93.52 kB / 0.5723 GB, free: 22.71 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.673e-05/0.3466, allocations: 56 kB / 0.5724 GB, free: 22.71 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004679/0.3513, allocations: 2.649 MB / 0.575 GB, free: 21.84 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01171/0.363, allocations: 7.12 MB / 0.5819 GB, free: 18.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002003/0.365, allocations: 1.502 MB / 0.5834 GB, free: 17.96 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001515/0.3665, allocations: 1.006 MB / 0.5844 GB, free: 17.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.39e-05/0.3666, allocations: 14.8 kB / 0.5844 GB, free: 17.66 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001333/0.3679, allocations: 1.111 MB / 0.5855 GB, free: 17.07 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 3.496e-06/0.3679, allocations: 0 / 0.5855 GB, free: 17.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=127): time 0.007011/0.3749, allocations: 4.499 MB / 0.5899 GB, free: 14.61 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.268e-05/0.375, allocations: 200.2 kB / 0.5901 GB, free: 14.39 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001475/0.3765, allocations: 1.287 MB / 0.5913 GB, free: 13.7 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.029e-05/0.3766, allocations: 56.34 kB / 0.5914 GB, free: 13.64 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005935/0.3772, allocations: 1.003 MB / 0.5923 GB, free: 12.79 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002156/0.3774, allocations: 444.9 kB / 0.5928 GB, free: 12.41 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003285/0.3777, allocations: 248.4 kB / 0.593 GB, free: 12.27 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.192e-05/0.3778, allocations: 357.9 kB / 0.5934 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008956/0.3787, allocations: 0.6725 MB / 0.594 GB, free: 11.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001183/0.3798, allocations: 1.121 MB / 0.5951 GB, free: 10.72 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001846/0.3817, allocations: 1.65 MB / 0.5967 GB, free: 9.703 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.3817, allocations: 2.75 kB / 0.5967 GB, free: 9.703 MB / 382.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.002707/0.3844, allocations: 2.053 MB / 0.5987 GB, free: 8.312 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.3844, allocations: 12 kB / 0.5987 GB, free: 8.301 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/0.3844, allocations: 4 kB / 0.5987 GB, free: 8.297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005704/0.385, allocations: 300.9 kB / 0.599 GB, free: 8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008979/0.3859, allocations: 259.6 kB / 0.5993 GB, free: 7.746 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003773/0.3897, allocations: 3.986 MB / 0.6032 GB, free: 3.652 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001042/0.3907, allocations: 83.88 kB / 0.6032 GB, free: 3.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.88e-05/0.3908, allocations: 48.89 kB / 0.6033 GB, free: 3.523 MB / 382.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.001284/0.3921, allocations: 0.8593 MB / 0.6041 GB, free: 2.656 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002531/0.3923, allocations: 143.1 kB / 0.6043 GB, free: 2.516 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002985/0.3926, allocations: 178.5 kB / 0.6044 GB, free: 2.336 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-06/0.3926, allocations: 12 kB / 0.6044 GB, free: 2.324 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.155e-05/0.3927, allocations: 7.625 kB / 0.6045 GB, free: 2.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.057e-05/0.3927, allocations: 7.922 kB / 0.6045 GB, free: 2.312 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006226/0.3989, allocations: 4.082 MB / 0.6085 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.536e-05/0.3989, allocations: 4 kB / 0.6085 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008291/0.3998, allocations: 195.8 kB / 0.6086 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006292/0.4004, allocations: 272.7 kB / 0.6089 GB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001126/0.4005, allocations: 43.97 kB / 0.6089 GB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004931/0.4054, allocations: 3.909 MB / 0.6128 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.177e-06/0.4054, allocations: 4.031 kB / 0.6128 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004423/0.4099, allocations: 2.854 MB / 0.6156 GB, free: 6.773 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007284/0.4106, allocations: 314.9 kB / 0.6159 GB, free: 6.465 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002066/0.4108, allocations: 44.17 kB / 0.6159 GB, free: 6.422 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006451/0.4114, allocations: 75.92 kB / 0.616 GB, free: 6.348 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002804/0.4117, allocations: 136.7 kB / 0.6161 GB, free: 6.215 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.199e-05/0.4118, allocations: 35.98 kB / 0.6161 GB, free: 6.18 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001258/0.4131, allocations: 0.9021 MB / 0.617 GB, free: 5.27 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4131, allocations: 0 / 0.617 GB, free: 5.27 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001391/0.4145, allocations: 444 kB / 0.6174 GB, free: 4.836 MB / 398.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.004789/0.4192, allocations: 3.465 MB / 0.6208 GB, free: 1.332 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003194/0.4224, allocations: 1.797 MB / 0.6226 GB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/0.4224, allocations: 4 kB / 0.6226 GB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001861/0.4243, allocations: 1.043 MB / 0.6236 GB, free: 14.46 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00154/0.4259, allocations: 308.2 kB / 0.6239 GB, free: 14.17 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02527/0.4511, allocations: 16.25 MB / 0.6398 GB, free: 13.52 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001819/0.4529, allocations: 1.474 MB / 0.6412 GB, free: 12.01 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001057/0.454, allocations: 370.4 kB / 0.6415 GB, free: 11.64 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00113/0.4551, allocations: 0.7883 MB / 0.6423 GB, free: 10.85 MB / 430.1 MB Notification: Performance of SimCode: time 1.633e-06/0.4551, allocations: 4 kB / 0.6423 GB, free: 10.85 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08247/0.5376, allocations: 40.84 MB / 0.6822 GB, free: 2.418 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.84/14.38, allocations: 13.52 kB / 0.6822 GB, free: 2.41 MB / 462.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Electrical_StarPolygon_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Electrical_StarPolygon.fmu > HanserModelica_HanserModelica.Electrical.StarPolygon.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.414745394024067] Failed to read output from testmodel.py, exit status != 0: 14.563648083945736 14.581002943 14.462577681 Calling exit ...