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.001709/0.001709, allocations: 114.7 kB / 17.16 MB, free: 5.895 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.623/1.623, allocations: 230.6 MB / 250.5 MB, free: 9.391 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.002475/0.002475, allocations: 213.1 kB / 306.7 MB, free: 4.352 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.04461/0.04461, allocations: 8.904 MB / 371.7 MB, free: 3.492 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.002891/0.002891, allocations: 79.89 kB / 496.4 MB, free: 9.883 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4033/0.4062, allocations: 55.57 MB / 0.5391 GB, free: 26.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.004952/0.4112, allocations: 4.13 MB / 0.5431 GB, free: 23.69 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002367/0.4135, allocations: 1.191 MB / 0.5443 GB, free: 22.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003406/0.4139, allocations: 35.28 kB / 0.5443 GB, free: 22.82 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003531/0.4142, allocations: 175.2 kB / 0.5445 GB, free: 22.72 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008048/0.415, allocations: 287.6 kB / 0.5447 GB, free: 22.55 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003607/0.4154, allocations: 180 kB / 0.5449 GB, free: 22.45 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00179/0.4172, allocations: 2.456 MB / 0.5473 GB, free: 21.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001731/0.4189, allocations: 1.881 MB / 0.5491 GB, free: 20.45 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001363/0.4203, allocations: 1.202 MB / 0.5503 GB, free: 19.89 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001511/0.4218, allocations: 1.385 MB / 0.5517 GB, free: 19.2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004608/0.4222, allocations: 317 kB / 0.552 GB, free: 19.2 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005953/0.4228, allocations: 329 kB / 0.5523 GB, free: 19.2 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006364/0.4235, allocations: 0.8468 MB / 0.5531 GB, free: 18.71 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001632/0.4251, allocations: 1.432 MB / 0.5545 GB, free: 17.79 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004532/0.4296, allocations: 4.102 MB / 0.5585 GB, free: 16.31 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.4296, allocations: 0 / 0.5585 GB, free: 16.31 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.4296, allocations: 0 / 0.5585 GB, free: 16.31 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001815/0.4298, allocations: 0 / 0.5585 GB, free: 16.31 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.008179/0.438, allocations: 2.974 MB / 0.5614 GB, free: 14.6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.855e-05/0.4381, allocations: 9.688 kB / 0.5614 GB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001018/0.4382, allocations: 60.41 kB / 0.5615 GB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005251/0.4387, allocations: 337.3 kB / 0.5618 GB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001174/0.4399, allocations: 341 kB / 0.5621 GB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002926/0.4428, allocations: 1.556 MB / 0.5637 GB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001858/0.443, allocations: 175.3 kB / 0.5638 GB, free: 13.3 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004067/0.4434, allocations: 238.9 kB / 0.564 GB, free: 13.22 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006242/0.4496, allocations: 3.183 MB / 0.5672 GB, free: 12.01 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.72e-05/0.4497, allocations: 11.28 kB / 0.5672 GB, free: 12 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002126/0.4499, allocations: 95.98 kB / 0.5673 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.631e-05/0.45, allocations: 56.7 kB / 0.5673 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004837/0.4548, allocations: 2.646 MB / 0.5699 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01335/0.4681, allocations: 7.862 MB / 0.5776 GB, free: 5.441 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002574/0.4707, allocations: 3.016 MB / 0.5805 GB, free: 2.746 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001599/0.4723, allocations: 1.003 MB / 0.5815 GB, free: 1.957 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.169e-05/0.4724, allocations: 21.44 kB / 0.5815 GB, free: 1.934 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00124/0.4736, allocations: 0.98 MB / 0.5825 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 2.865e-06/0.4736, allocations: 0 / 0.5825 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of matching and sorting (n=127): time 0.009224/0.4828, allocations: 4.498 MB / 0.5869 GB, free: 12.37 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000191/0.483, allocations: 209.1 kB / 0.5871 GB, free: 12.13 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002272/0.4853, allocations: 1.28 MB / 0.5883 GB, free: 10.83 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001299/0.4854, allocations: 57.7 kB / 0.5884 GB, free: 10.77 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001154/0.4866, allocations: 0.9969 MB / 0.5894 GB, free: 9.762 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004247/0.487, allocations: 448.2 kB / 0.5898 GB, free: 9.32 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003972/0.4874, allocations: 242.9 kB / 0.59 GB, free: 9.074 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001956/0.4876, allocations: 357.9 kB / 0.5904 GB, free: 8.719 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001178/0.4888, allocations: 0.6661 MB / 0.591 GB, free: 8.055 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001433/0.4902, allocations: 0.9934 MB / 0.592 GB, free: 6.945 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002571/0.4928, allocations: 1.658 MB / 0.5936 GB, free: 5.188 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.4928, allocations: 4 kB / 0.5936 GB, free: 5.184 MB / 398.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.003688/0.4965, allocations: 2.055 MB / 0.5956 GB, free: 3.117 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.108e-05/0.4965, allocations: 8 kB / 0.5956 GB, free: 3.109 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.659e-05/0.4965, allocations: 4 kB / 0.5956 GB, free: 3.105 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006833/0.4972, allocations: 293.8 kB / 0.5959 GB, free: 2.816 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001079/0.4983, allocations: 263.5 kB / 0.5961 GB, free: 2.559 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005293/0.5036, allocations: 4.074 MB / 0.6001 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00115/0.5047, allocations: 75.94 kB / 0.6002 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001017/0.5048, allocations: 51.98 kB / 0.6002 GB, free: 14.21 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[5],switch.control[4],switch.control[3],switch.control[2],switch.control[1]) * 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 {(2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001638/0.5065, allocations: 0.8508 MB / 0.6011 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003243/0.5068, allocations: 139.4 kB / 0.6012 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004289/0.5072, allocations: 177.9 kB / 0.6014 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.059e-05/0.5073, allocations: 19.92 kB / 0.6014 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.7e-05/0.5073, allocations: 4 kB / 0.6014 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.58e-05/0.5073, allocations: 7.969 kB / 0.6014 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007344/0.5146, allocations: 4.266 MB / 0.6056 GB, free: 8.668 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.5146, allocations: 7.938 kB / 0.6056 GB, free: 8.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008567/0.5155, allocations: 187.9 kB / 0.6058 GB, free: 8.477 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006287/0.5161, allocations: 269 kB / 0.606 GB, free: 8.211 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001003/0.5162, allocations: 43.97 kB / 0.6061 GB, free: 8.168 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005186/0.5214, allocations: 4.024 MB / 0.61 GB, free: 4.004 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/0.5214, allocations: 4.031 kB / 0.61 GB, free: 4 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005025/0.5265, allocations: 2.854 MB / 0.6128 GB, free: 1.117 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009145/0.5274, allocations: 376.1 kB / 0.6131 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002976/0.5277, allocations: 43.98 kB / 0.6132 GB, free: 0.6875 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006771/0.5283, allocations: 71.92 kB / 0.6132 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003209/0.5287, allocations: 132.8 kB / 0.6134 GB, free: 500 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.004e-05/0.5287, allocations: 43.91 kB / 0.6134 GB, free: 456 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001458/0.5302, allocations: 0.9021 MB / 0.6143 GB, free: 15.54 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5302, allocations: 0 / 0.6143 GB, free: 15.54 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001637/0.5318, allocations: 443.9 kB / 0.6147 GB, free: 15.1 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (inductorLoad.inductor[1].i,inductorLoad.inductor[2].i,inductorLoad.inductor[3].i,inductorLoad.inductor[4].i,inductorLoad.inductor[5].i,rootMeanSquare[1].mean.x,rootMeanSquare[2].mean.x,rootMeanSquare[3].mean.x,rootMeanSquare[4].mean.x,rootMeanSquare[5].mean.x) * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,switch.control[1],switch.control[2],switch.control[3],switch.control[4],switch.control[5],rootMeanSquare[1].mean.y_last,rootMeanSquare[2].mean.y_last,rootMeanSquare[3].mean.y_last,rootMeanSquare[4].mean.y_last,rootMeanSquare[5].mean.y_last) * 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.005352/0.5372, allocations: 3.447 MB / 0.6181 GB, free: 11.6 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00394/0.5411, allocations: 1.79 MB / 0.6198 GB, free: 9.801 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.255e-06/0.5411, allocations: 8.062 kB / 0.6198 GB, free: 9.793 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001865/0.543, allocations: 1.03 MB / 0.6208 GB, free: 8.754 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001941/0.5449, allocations: 320.8 kB / 0.6212 GB, free: 8.441 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03006/0.575, allocations: 16.2 MB / 0.637 GB, free: 7.824 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002058/0.5771, allocations: 2.042 MB / 0.639 GB, free: 5.746 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001153/0.5782, allocations: 370.4 kB / 0.6393 GB, free: 5.379 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001131/0.5793, allocations: 0.7844 MB / 0.6401 GB, free: 4.594 MB / 446.1 MB Notification: Performance of SimCode: time 1.202e-06/0.5793, allocations: 0 / 0.6401 GB, free: 4.594 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0976/0.6769, allocations: 38.6 MB / 0.6778 GB, free: 14.34 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.88/14.56, allocations: 3.938 kB / 0.6778 GB, free: 14.34 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 os._exit(0), Time elapsed: 17.762476660020184] Failed to read output from testmodel.py, exit status != 0: 14.726155575015582 14.743218784 14.31004655 Calling exit ...