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.0008149/0.0008149, allocations: 72.45 kB / 19.17 MB, free: 0.7344 MB / 13.93 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 0.9054/0.9054, allocations: 177.1 MB / 199.4 MB, free: 5.926 MB / 186.7 MB " [Timeout remaining time 179] 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.001079/0.001079, allocations: 156.6 kB / 256 MB, free: 13.33 MB / 250.7 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.02218/0.02218, allocations: 6.663 MB / 319 MB, free: 26.76 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 445.4 MB, free: 37.64 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.666e-06/9.908e-06, allocations: 2.281 kB / 445.4 MB, free: 37.64 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.002616/0.002625, allocations: 3.787 MB / 449.2 MB, free: 33.83 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001025/0.003651, allocations: 1.153 MB / 450.3 MB, free: 32.68 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000162/0.003813, allocations: 35.75 kB / 450.4 MB, free: 32.64 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002178/0.004031, allocations: 178.6 kB / 450.5 MB, free: 32.46 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004904/0.004521, allocations: 314 kB / 450.8 MB, free: 32.16 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002054/0.004726, allocations: 187.5 kB / 451 MB, free: 31.97 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008826/0.005609, allocations: 2.524 MB / 453.6 MB, free: 29.44 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007387/0.006348, allocations: 1.289 MB / 454.8 MB, free: 28.09 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007523/0.0071, allocations: 1.755 MB / 456.6 MB, free: 26.33 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007056/0.007806, allocations: 1.282 MB / 457.9 MB, free: 25.05 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001769/0.007982, allocations: 316 kB / 458.2 MB, free: 24.74 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002651/0.008248, allocations: 331.9 kB / 458.5 MB, free: 24.41 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002943/0.008542, allocations: 0.8764 MB / 459.4 MB, free: 23.54 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004336/0.008975, allocations: 0.9978 MB / 460.4 MB, free: 22.54 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001405/0.01038, allocations: 4.16 MB / 464.5 MB, free: 18.36 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.01038, allocations: 0 / 464.5 MB, free: 18.36 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.01038, allocations: 0 / 464.5 MB, free: 18.36 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.249e-05/0.01041, allocations: 0 / 464.5 MB, free: 18.36 MB / 330.7 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.002748/0.01315, allocations: 3.994 MB / 468.5 MB, free: 14.3 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.213e-05/0.01319, allocations: 15.97 kB / 468.6 MB, free: 14.28 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002034/0.01339, allocations: 333 kB / 468.9 MB, free: 13.95 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004101/0.0138, allocations: 347.1 kB / 469.2 MB, free: 13.61 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001214/0.01501, allocations: 1.505 MB / 470.7 MB, free: 12.05 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.547e-05/0.01508, allocations: 172.9 kB / 470.9 MB, free: 11.88 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001664/0.01525, allocations: 236.4 kB / 471.1 MB, free: 11.65 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002516/0.01776, allocations: 3.308 MB / 474.4 MB, free: 8.234 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.663e-05/0.0178, allocations: 11.94 kB / 474.4 MB, free: 8.223 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001233/0.01792, allocations: 92 kB / 474.5 MB, free: 8.133 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.101e-05/0.01794, allocations: 52 kB / 474.6 MB, free: 8.082 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002263/0.0202, allocations: 2.652 MB / 477.2 MB, free: 5.414 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006277/0.02648, allocations: 7.126 MB / 484.4 MB, free: 14.12 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001379/0.02786, allocations: 1.498 MB / 485.9 MB, free: 12.65 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001046/0.02891, allocations: 1.006 MB / 486.9 MB, free: 11.65 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.795e-05/0.02896, allocations: 16.98 kB / 486.9 MB, free: 11.63 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009411/0.0299, allocations: 1.11 MB / 488 MB, free: 10.46 MB / 346.7 MB Notification: Performance of pre-optimization done (n=122): time 2.314e-06/0.0299, allocations: 0 / 488 MB, free: 10.46 MB / 346.7 MB Notification: Performance of matching and sorting (n=127): time 0.005349/0.03525, allocations: 4.493 MB / 492.5 MB, free: 5.934 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.245e-05/0.03534, allocations: 201.2 kB / 492.7 MB, free: 5.695 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001074/0.03641, allocations: 1.292 MB / 494 MB, free: 4.387 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.788e-05/0.03647, allocations: 57.69 kB / 494 MB, free: 4.324 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004759/0.03695, allocations: 1.001 MB / 495 MB, free: 3.312 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002125/0.03716, allocations: 440.2 kB / 495.5 MB, free: 2.879 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002162/0.03738, allocations: 242.9 kB / 495.7 MB, free: 2.633 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.051e-05/0.03747, allocations: 357.9 kB / 496 MB, free: 2.277 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006689/0.03814, allocations: 0.6777 MB / 496.7 MB, free: 1.602 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00112/0.03925, allocations: 1.119 MB / 497.8 MB, free: 340 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001449/0.0407, allocations: 1.654 MB / 499.5 MB, free: 14.58 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.097e-06/0.04071, allocations: 4 kB / 499.5 MB, free: 14.58 MB / 362.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.00197/0.04268, allocations: 2.059 MB / 0.4898 GB, free: 12.51 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.0427, allocations: 8.312 kB / 0.4898 GB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.04271, allocations: 12 kB / 0.4898 GB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004101/0.04312, allocations: 292.6 kB / 0.4901 GB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005447/0.04366, allocations: 263.6 kB / 0.4904 GB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003368/0.04703, allocations: 3.988 MB / 0.4943 GB, free: 7.844 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003899/0.04742, allocations: 83.92 kB / 0.4943 GB, free: 7.762 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.704e-05/0.04748, allocations: 51.98 kB / 0.4944 GB, free: 7.711 MB / 362.7 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.0008109/0.04829, allocations: 0.8432 MB / 0.4952 GB, free: 6.859 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001153/0.0484, allocations: 151.1 kB / 0.4953 GB, free: 6.711 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001693/0.04857, allocations: 177.9 kB / 0.4955 GB, free: 6.531 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.04858, allocations: 12 kB / 0.4955 GB, free: 6.52 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.564e-05/0.04859, allocations: 4 kB / 0.4955 GB, free: 6.516 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.04861, allocations: 11.91 kB / 0.4955 GB, free: 6.504 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004215/0.05282, allocations: 4.082 MB / 0.4995 GB, free: 2.348 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.606e-06/0.05282, allocations: 3.938 kB / 0.4995 GB, free: 2.344 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000411/0.05324, allocations: 183.8 kB / 0.4997 GB, free: 2.164 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003343/0.05357, allocations: 284.8 kB / 0.5 GB, free: 1.883 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.872e-05/0.05363, allocations: 43.97 kB / 0.5 GB, free: 1.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002826/0.05645, allocations: 3.9 MB / 0.5038 GB, free: 13.82 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.05646, allocations: 7.922 kB / 0.5038 GB, free: 13.81 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002631/0.05909, allocations: 2.842 MB / 0.5066 GB, free: 10.95 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003794/0.05947, allocations: 314.9 kB / 0.5069 GB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001058/0.05957, allocations: 47.97 kB / 0.507 GB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003223/0.0599, allocations: 63.94 kB / 0.507 GB, free: 10.53 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001649/0.06006, allocations: 136.8 kB / 0.5072 GB, free: 10.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.44e-05/0.0601, allocations: 47.97 kB / 0.5072 GB, free: 10.35 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007416/0.06085, allocations: 0.8982 MB / 0.5081 GB, free: 9.441 MB / 378.7 MB Notification: Performance of sort global known variables: time 4e-08/0.06085, allocations: 0 / 0.5081 GB, free: 9.441 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007979/0.06164, allocations: 444 kB / 0.5085 GB, free: 9.008 MB / 378.7 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.002788/0.06443, allocations: 3.464 MB / 0.5119 GB, free: 5.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001992/0.06642, allocations: 1.802 MB / 0.5136 GB, free: 3.691 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.06643, allocations: 4 kB / 0.5136 GB, free: 3.688 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001002/0.06743, allocations: 1.039 MB / 0.5147 GB, free: 2.633 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007841/0.06821, allocations: 320.8 kB / 0.515 GB, free: 2.316 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01547/0.08368, allocations: 16.21 MB / 0.5308 GB, free: 1.68 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009512/0.08463, allocations: 1.474 MB / 0.5322 GB, free: 164 kB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005387/0.08517, allocations: 370.4 kB / 0.5326 GB, free: 15.79 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006225/0.08579, allocations: 0.7893 MB / 0.5334 GB, free: 15 MB / 410.7 MB Notification: Performance of SimCode: time 1.473e-06/0.08579, allocations: 0 / 0.5334 GB, free: 15 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1749/0.2607, allocations: 40.9 MB / 0.5733 GB, free: 120.1 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.758/8.019, allocations: 5.969 kB / 0.5733 GB, free: 120.1 MB / 426.7 MB " [Timeout remaining time 652] (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: 9.977631875313818] Failed to read output from testmodel.py, exit status != 0: 8.116523790173233 8.123549063 8.111891898 Calling exit ...