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.001288/0.001288, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.432/1.432, allocations: 230.6 MB / 252.7 MB, free: 14.27 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.001517/0.001517, allocations: 210.2 kB / 309.2 MB, free: 3.141 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.0598/0.0598, allocations: 8.917 MB / 374.6 MB, free: 6.598 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.002527/0.002527, allocations: 91.88 kB / 0.4891 GB, free: 44.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08657/0.0891, allocations: 55.6 MB / 0.5434 GB, free: 5.074 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.005852/0.09495, allocations: 3.78 MB / 0.5471 GB, free: 1.27 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00282/0.09777, allocations: 1.153 MB / 0.5483 GB, free: 116 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003504/0.09812, allocations: 31.75 kB / 0.5483 GB, free: 84 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004224/0.09854, allocations: 174.8 kB / 0.5485 GB, free: 15.91 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000911/0.09945, allocations: 298.4 kB / 0.5487 GB, free: 15.61 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004153/0.09987, allocations: 183.7 kB / 0.5489 GB, free: 15.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002585/0.1025, allocations: 2.447 MB / 0.5513 GB, free: 12.98 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001681/0.1041, allocations: 1.285 MB / 0.5526 GB, free: 11.63 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001666/0.1058, allocations: 1.203 MB / 0.5537 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002576/0.1084, allocations: 1.44 MB / 0.5551 GB, free: 8.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005774/0.109, allocations: 312 kB / 0.5554 GB, free: 8.676 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007066/0.1097, allocations: 328 kB / 0.5557 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008811/0.1105, allocations: 0.8492 MB / 0.5566 GB, free: 7.504 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00208/0.1126, allocations: 1.175 MB / 0.5577 GB, free: 6.324 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00517/0.1178, allocations: 4.115 MB / 0.5617 GB, free: 2.191 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.1178, allocations: 0 / 0.5617 GB, free: 2.191 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1178, allocations: 0 / 0.5617 GB, free: 2.191 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001096/0.1179, allocations: 3.938 kB / 0.5617 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.2066/0.3245, allocations: 4.021 MB / 0.5657 GB, free: 23.7 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.3245, allocations: 15.8 kB / 0.5657 GB, free: 23.7 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000439/0.325, allocations: 335.4 kB / 0.566 GB, free: 23.65 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008859/0.3259, allocations: 343.2 kB / 0.5663 GB, free: 23.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002714/0.3286, allocations: 1.511 MB / 0.5678 GB, free: 23.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001439/0.3287, allocations: 173.9 kB / 0.568 GB, free: 23.17 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003393/0.3291, allocations: 234 kB / 0.5682 GB, free: 23.17 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005463/0.3345, allocations: 3.314 MB / 0.5714 GB, free: 22.64 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.062e-05/0.3346, allocations: 4.5 kB / 0.5714 GB, free: 22.64 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001711/0.3347, allocations: 95.75 kB / 0.5715 GB, free: 22.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.894e-05/0.3348, allocations: 53.16 kB / 0.5716 GB, free: 22.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004342/0.3391, allocations: 2.65 MB / 0.5742 GB, free: 21.68 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01131/0.3504, allocations: 7.121 MB / 0.5811 GB, free: 18.38 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001968/0.3524, allocations: 1.498 MB / 0.5826 GB, free: 17.81 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001558/0.354, allocations: 1.008 MB / 0.5836 GB, free: 17.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.622e-05/0.354, allocations: 13.25 kB / 0.5836 GB, free: 17.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001343/0.3554, allocations: 1.11 MB / 0.5847 GB, free: 16.96 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 3.206e-06/0.3554, allocations: 4.016 kB / 0.5847 GB, free: 16.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=127): time 0.006876/0.3622, allocations: 4.494 MB / 0.5891 GB, free: 14.5 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.947e-05/0.3623, allocations: 205.2 kB / 0.5893 GB, free: 14.28 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001437/0.3637, allocations: 1.288 MB / 0.5905 GB, free: 13.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.833e-05/0.3638, allocations: 52.7 kB / 0.5906 GB, free: 13.54 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005549/0.3644, allocations: 1 MB / 0.5915 GB, free: 12.68 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002198/0.3646, allocations: 447.8 kB / 0.592 GB, free: 12.3 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003073/0.3649, allocations: 244.7 kB / 0.5922 GB, free: 12.16 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.484e-05/0.365, allocations: 361.3 kB / 0.5925 GB, free: 11.82 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009201/0.3659, allocations: 0.6734 MB / 0.5932 GB, free: 11.48 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001356/0.3672, allocations: 1.113 MB / 0.5943 GB, free: 10.61 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002442/0.3697, allocations: 1.665 MB / 0.5959 GB, free: 9.586 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.319e-05/0.3697, allocations: 1.906 kB / 0.5959 GB, free: 9.586 MB / 382.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.003046/0.3727, allocations: 2.054 MB / 0.5979 GB, free: 8.258 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.3728, allocations: 8 kB / 0.5979 GB, free: 8.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/0.3728, allocations: 8.312 kB / 0.5979 GB, free: 8.242 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005257/0.3733, allocations: 297.3 kB / 0.5982 GB, free: 7.949 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009724/0.3743, allocations: 259.6 kB / 0.5985 GB, free: 7.695 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00363/0.3779, allocations: 3.979 MB / 0.6024 GB, free: 3.605 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000967/0.3789, allocations: 92.53 kB / 0.6024 GB, free: 3.516 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.997e-05/0.3789, allocations: 55.88 kB / 0.6025 GB, free: 3.461 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.001148/0.3801, allocations: 0.8521 MB / 0.6033 GB, free: 2.602 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000226/0.3803, allocations: 143.1 kB / 0.6035 GB, free: 2.461 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002601/0.3806, allocations: 184 kB / 0.6036 GB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.3806, allocations: 12 kB / 0.6037 GB, free: 2.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.823e-05/0.3806, allocations: 7.984 kB / 0.6037 GB, free: 2.262 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.908e-06/0.3806, allocations: 7.922 kB / 0.6037 GB, free: 2.254 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00702/0.3876, allocations: 4.08 MB / 0.6077 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.718e-06/0.3876, allocations: 4 kB / 0.6077 GB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000844/0.3885, allocations: 187.8 kB / 0.6078 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006885/0.3892, allocations: 284.1 kB / 0.6081 GB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001081/0.3893, allocations: 39.97 kB / 0.6081 GB, free: 13.63 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005366/0.3946, allocations: 3.907 MB / 0.612 GB, free: 9.613 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.3947, allocations: 4.031 kB / 0.612 GB, free: 9.609 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00471/0.3994, allocations: 2.85 MB / 0.6148 GB, free: 6.73 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001159/0.4005, allocations: 311 kB / 0.615 GB, free: 6.426 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002159/0.4007, allocations: 43.97 kB / 0.6151 GB, free: 6.383 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006534/0.4014, allocations: 68.12 kB / 0.6152 GB, free: 6.316 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003193/0.4017, allocations: 140.8 kB / 0.6153 GB, free: 6.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.829e-05/0.4018, allocations: 43.91 kB / 0.6153 GB, free: 6.137 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001284/0.4031, allocations: 0.9021 MB / 0.6162 GB, free: 5.227 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4031, allocations: 4 kB / 0.6162 GB, free: 5.223 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001443/0.4045, allocations: 440 kB / 0.6166 GB, free: 4.793 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.004716/0.4092, allocations: 3.47 MB / 0.62 GB, free: 1.281 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003216/0.4124, allocations: 1.798 MB / 0.6218 GB, free: 15.47 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.4125, allocations: 4.125 kB / 0.6218 GB, free: 15.46 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001828/0.4143, allocations: 1.038 MB / 0.6228 GB, free: 14.41 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001459/0.4157, allocations: 318 kB / 0.6231 GB, free: 14.12 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02488/0.4406, allocations: 16.24 MB / 0.639 GB, free: 13.47 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001801/0.4424, allocations: 1.47 MB / 0.6404 GB, free: 11.96 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001017/0.4434, allocations: 374.3 kB / 0.6408 GB, free: 11.59 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001055/0.4445, allocations: 0.7844 MB / 0.6415 GB, free: 10.8 MB / 430.1 MB Notification: Performance of SimCode: time 1.593e-06/0.4445, allocations: 0 / 0.6415 GB, free: 10.8 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08961/0.5341, allocations: 40.92 MB / 0.6815 GB, free: 2.27 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.39/12.93, allocations: 0 / 0.6815 GB, free: 2.27 MB / 462.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 & /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: 15.7323661246337] Failed to read output from testmodel.py, exit status != 0: 13.061799372080714 13.090872656 12.967934799 Calling exit ...