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.001224/0.001224, 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.477/1.477, allocations: 230.6 MB / 252.7 MB, free: 8.277 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.001695/0.001695, allocations: 206.3 kB / 309.2 MB, free: 3.172 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.04332/0.04332, allocations: 8.912 MB / 374.6 MB, free: 1.922 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.002558/0.002558, allocations: 84.3 kB / 0.4892 GB, free: 7.332 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3026/0.3052, allocations: 55.6 MB / 0.5435 GB, free: 26.83 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.004354/0.3095, allocations: 4.16 MB / 0.5476 GB, free: 23.91 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001955/0.3115, allocations: 1.202 MB / 0.5487 GB, free: 23.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002811/0.3118, allocations: 35.09 kB / 0.5488 GB, free: 23.04 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003838/0.3122, allocations: 175.9 kB / 0.5489 GB, free: 22.94 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008084/0.313, allocations: 292.9 kB / 0.5492 GB, free: 22.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003608/0.3133, allocations: 194.4 kB / 0.5494 GB, free: 22.65 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001736/0.3151, allocations: 2.449 MB / 0.5518 GB, free: 21.44 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001304/0.3164, allocations: 1.307 MB / 0.5531 GB, free: 20.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001345/0.3177, allocations: 1.203 MB / 0.5543 GB, free: 20.19 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001709/0.3194, allocations: 1.388 MB / 0.5556 GB, free: 19.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003483/0.3198, allocations: 318.1 kB / 0.5559 GB, free: 19.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004853/0.3203, allocations: 330.2 kB / 0.5562 GB, free: 19.49 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005209/0.3208, allocations: 0.8575 MB / 0.5571 GB, free: 19 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001102/0.3219, allocations: 1.43 MB / 0.5585 GB, free: 18.08 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003947/0.3258, allocations: 4.092 MB / 0.5625 GB, free: 16.6 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.3258, allocations: 0 / 0.5625 GB, free: 16.6 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.3258, allocations: 0 / 0.5625 GB, free: 16.6 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001084/0.3259, allocations: 1.25 kB / 0.5625 GB, free: 16.6 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.007174/0.3331, allocations: 4.032 MB / 0.5664 GB, free: 14.54 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.144e-05/0.3332, allocations: 10.47 kB / 0.5664 GB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000483/0.3337, allocations: 332.4 kB / 0.5667 GB, free: 14.35 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001117/0.3348, allocations: 337.8 kB / 0.567 GB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003434/0.3382, allocations: 1.515 MB / 0.5685 GB, free: 13.4 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000166/0.3384, allocations: 172.8 kB / 0.5687 GB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000391/0.3388, allocations: 234.1 kB / 0.5689 GB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005978/0.3447, allocations: 3.188 MB / 0.572 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.323e-05/0.3448, allocations: 1.375 kB / 0.572 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002028/0.345, allocations: 99.23 kB / 0.5721 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.19e-05/0.345, allocations: 55 kB / 0.5722 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004236/0.3493, allocations: 2.65 MB / 0.5748 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01342/0.3627, allocations: 7.782 MB / 0.5824 GB, free: 4.844 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001909/0.3646, allocations: 1.517 MB / 0.5838 GB, free: 3.414 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00148/0.3661, allocations: 1.006 MB / 0.5848 GB, free: 2.406 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.739e-05/0.3661, allocations: 16.98 kB / 0.5848 GB, free: 2.391 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001278/0.3674, allocations: 0.9763 MB / 0.5858 GB, free: 1.379 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 3.426e-06/0.3674, allocations: 0 / 0.5858 GB, free: 1.379 MB / 382.1 MB Notification: Performance of matching and sorting (n=127): time 0.009351/0.3768, allocations: 4.501 MB / 0.5902 GB, free: 12.84 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002033/0.377, allocations: 205.2 kB / 0.5904 GB, free: 12.6 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003158/0.3801, allocations: 1.288 MB / 0.5916 GB, free: 11.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002053/0.3803, allocations: 57.7 kB / 0.5917 GB, free: 11.23 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001543/0.3819, allocations: 0.993 MB / 0.5927 GB, free: 10.23 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006763/0.3826, allocations: 452.2 kB / 0.5931 GB, free: 9.785 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006175/0.3832, allocations: 238.9 kB / 0.5933 GB, free: 9.547 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003065/0.3835, allocations: 357.9 kB / 0.5937 GB, free: 9.191 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001891/0.3854, allocations: 0.6739 MB / 0.5943 GB, free: 8.516 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002315/0.3877, allocations: 0.9901 MB / 0.5953 GB, free: 7.418 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004235/0.3919, allocations: 1.654 MB / 0.5969 GB, free: 5.668 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.436e-06/0.3919, allocations: 0 / 0.5969 GB, free: 5.668 MB / 398.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.004497/0.3964, allocations: 2.062 MB / 0.5989 GB, free: 3.594 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.898e-05/0.3965, allocations: 8 kB / 0.5989 GB, free: 3.586 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.205e-05/0.3965, allocations: 11.94 kB / 0.5989 GB, free: 3.574 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007122/0.3972, allocations: 296.9 kB / 0.5992 GB, free: 3.281 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001055/0.3983, allocations: 259.6 kB / 0.5995 GB, free: 3.027 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005632/0.4039, allocations: 4.042 MB / 0.6034 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001241/0.4051, allocations: 95.91 kB / 0.6035 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001121/0.4052, allocations: 44 kB / 0.6035 GB, free: 14.73 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.002234/0.4075, allocations: 0.8471 MB / 0.6044 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004029/0.4079, allocations: 147.1 kB / 0.6045 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004837/0.4084, allocations: 169.9 kB / 0.6047 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.632e-05/0.4084, allocations: 20.22 kB / 0.6047 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.064e-05/0.4084, allocations: 4 kB / 0.6047 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.626e-05/0.4084, allocations: 7.969 kB / 0.6047 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008116/0.4165, allocations: 4.268 MB / 0.6089 GB, free: 9.191 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.184e-05/0.4166, allocations: 12.05 kB / 0.6089 GB, free: 9.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008214/0.4174, allocations: 183.8 kB / 0.6091 GB, free: 9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006043/0.418, allocations: 276.9 kB / 0.6093 GB, free: 8.727 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.842e-05/0.4181, allocations: 43.97 kB / 0.6094 GB, free: 8.684 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005496/0.4236, allocations: 3.949 MB / 0.6132 GB, free: 4.617 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.4236, allocations: 4.031 kB / 0.6132 GB, free: 4.613 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005184/0.4288, allocations: 2.861 MB / 0.616 GB, free: 1.719 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001009/0.4298, allocations: 307 kB / 0.6163 GB, free: 1.418 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000221/0.43, allocations: 51.97 kB / 0.6164 GB, free: 1.367 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000646/0.4306, allocations: 67.94 kB / 0.6164 GB, free: 1.301 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003394/0.431, allocations: 141 kB / 0.6166 GB, free: 1.164 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.348e-05/0.4311, allocations: 39.92 kB / 0.6166 GB, free: 1.125 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001466/0.4325, allocations: 0.9059 MB / 0.6175 GB, free: 216 kB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4325, allocations: 0 / 0.6175 GB, free: 216 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.001625/0.4342, allocations: 444 kB / 0.6179 GB, free: 15.78 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.005034/0.4392, allocations: 3.458 MB / 0.6213 GB, free: 12.27 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003731/0.4429, allocations: 1.797 MB / 0.623 GB, free: 10.46 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.285e-06/0.4429, allocations: 1 kB / 0.623 GB, free: 10.46 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002114/0.445, allocations: 1.042 MB / 0.6241 GB, free: 9.406 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001769/0.4468, allocations: 319.5 kB / 0.6244 GB, free: 9.098 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02774/0.4746, allocations: 16.26 MB / 0.6402 GB, free: 8.422 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002106/0.4767, allocations: 2.046 MB / 0.6422 GB, free: 6.344 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001028/0.4777, allocations: 370.4 kB / 0.6426 GB, free: 5.977 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001119/0.4788, allocations: 0.7843 MB / 0.6434 GB, free: 5.195 MB / 446.1 MB Notification: Performance of SimCode: time 1.463e-06/0.4788, allocations: 0 / 0.6434 GB, free: 5.195 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1011/0.5799, allocations: 39.63 MB / 0.6821 GB, free: 13.91 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.07/14.65, allocations: 6.328 kB / 0.6821 GB, free: 13.91 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 & /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 sys.exit(0), Time elapsed: 17.82069192198105] Failed to read output from testmodel.py, exit status != 0: 14.774617279879749 15.035244319 14.461895341 Calling exit ...