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.001376/0.001376, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.68/1.68, allocations: 230.6 MB / 253.4 MB, free: 14.42 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.002258/0.002258, allocations: 224.8 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.04248/0.04248, allocations: 8.917 MB / 375.4 MB, free: 6.719 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.00248/0.00248, allocations: 79.88 kB / 0.49 GB, free: 44.88 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1145, allocations: 55.62 MB / 0.5443 GB, free: 5.172 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.00702/0.1215, allocations: 4.157 MB / 0.5483 GB, free: 0.9883 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003218/0.1248, allocations: 1.196 MB / 0.5495 GB, free: 15.79 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005475/0.1253, allocations: 35.75 kB / 0.5495 GB, free: 15.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004811/0.1258, allocations: 170.7 kB / 0.5497 GB, free: 15.59 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001087/0.1269, allocations: 306.4 kB / 0.55 GB, free: 15.29 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005099/0.1274, allocations: 183.6 kB / 0.5502 GB, free: 15.11 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002819/0.1302, allocations: 2.455 MB / 0.5526 GB, free: 12.64 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001779/0.132, allocations: 1.305 MB / 0.5538 GB, free: 11.27 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001837/0.1338, allocations: 1.207 MB / 0.555 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002446/0.1363, allocations: 1.389 MB / 0.5564 GB, free: 8.668 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006789/0.1369, allocations: 316 kB / 0.5567 GB, free: 8.359 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008709/0.1378, allocations: 328 kB / 0.557 GB, free: 8.039 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009541/0.1388, allocations: 0.8492 MB / 0.5578 GB, free: 7.188 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002473/0.1412, allocations: 1.435 MB / 0.5592 GB, free: 5.746 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004665/0.1459, allocations: 4.091 MB / 0.5632 GB, free: 1.637 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.355e-05/0.1459, allocations: 8 kB / 0.5632 GB, free: 1.629 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1459, allocations: 4 kB / 0.5632 GB, free: 1.625 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001379/0.1461, allocations: 0 / 0.5632 GB, free: 1.625 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.3109/0.457, allocations: 4.018 MB / 0.5671 GB, free: 23.86 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.611e-05/0.4571, allocations: 13 kB / 0.5672 GB, free: 23.86 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001429/0.4572, allocations: 60.5 kB / 0.5672 GB, free: 23.85 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000934/0.4581, allocations: 341.4 kB / 0.5675 GB, free: 23.8 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001826/0.46, allocations: 337.9 kB / 0.5679 GB, free: 23.65 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005125/0.4651, allocations: 1.511 MB / 0.5693 GB, free: 23.37 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003087/0.4654, allocations: 174.7 kB / 0.5695 GB, free: 23.36 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001042/0.4664, allocations: 235.3 kB / 0.5697 GB, free: 23.36 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01225/0.4787, allocations: 3.19 MB / 0.5728 GB, free: 22.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.535e-05/0.4788, allocations: 2.094 kB / 0.5729 GB, free: 22.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004048/0.4792, allocations: 94.11 kB / 0.5729 GB, free: 22.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001542/0.4793, allocations: 55.62 kB / 0.573 GB, free: 22.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01094/0.4903, allocations: 2.651 MB / 0.5756 GB, free: 21.56 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02494/0.5152, allocations: 7.78 MB / 0.5832 GB, free: 18.07 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003139/0.5183, allocations: 1.511 MB / 0.5847 GB, free: 17.34 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002067/0.5204, allocations: 1.005 MB / 0.5856 GB, free: 16.85 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.711e-05/0.5205, allocations: 13.47 kB / 0.5857 GB, free: 16.85 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002436/0.5229, allocations: 0.9879 MB / 0.5866 GB, free: 16.24 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 7.033e-06/0.523, allocations: 1.125 kB / 0.5866 GB, free: 16.24 MB / 382.1 MB Notification: Performance of matching and sorting (n=127): time 0.01153/0.5345, allocations: 4.492 MB / 0.591 GB, free: 13.79 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.92e-05/0.5346, allocations: 200.6 kB / 0.5912 GB, free: 13.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002793/0.5374, allocations: 1.286 MB / 0.5924 GB, free: 12.88 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002657/0.5376, allocations: 57.59 kB / 0.5925 GB, free: 12.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001222/0.5389, allocations: 0.9997 MB / 0.5935 GB, free: 11.96 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006764/0.5395, allocations: 453.1 kB / 0.5939 GB, free: 11.58 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006572/0.5402, allocations: 245.3 kB / 0.5941 GB, free: 11.45 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.5403, allocations: 357 kB / 0.5945 GB, free: 11.11 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001555/0.5419, allocations: 0.6728 MB / 0.5951 GB, free: 10.77 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001521/0.5434, allocations: 0.9903 MB / 0.5961 GB, free: 10.05 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002656/0.5461, allocations: 1.654 MB / 0.5977 GB, free: 9.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.012e-05/0.5461, allocations: 2.125 kB / 0.5977 GB, free: 9.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.004932/0.551, allocations: 2.053 MB / 0.5997 GB, free: 7.762 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.59e-05/0.551, allocations: 8 kB / 0.5997 GB, free: 7.754 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.504e-05/0.5511, allocations: 11.94 kB / 0.5998 GB, free: 7.742 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007956/0.5519, allocations: 300.9 kB / 0.6 GB, free: 7.445 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001127/0.553, allocations: 259.5 kB / 0.6003 GB, free: 7.191 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00452/0.5575, allocations: 4.046 MB / 0.6042 GB, free: 3.043 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001976/0.5595, allocations: 79.92 kB / 0.6043 GB, free: 2.965 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003383/0.5598, allocations: 51.98 kB / 0.6044 GB, free: 2.914 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.002247/0.5621, allocations: 0.8485 MB / 0.6052 GB, free: 2.059 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006188/0.5627, allocations: 143.1 kB / 0.6053 GB, free: 1.918 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005546/0.5632, allocations: 185.1 kB / 0.6055 GB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.169e-05/0.5633, allocations: 12 kB / 0.6055 GB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.362e-05/0.5633, allocations: 4 kB / 0.6055 GB, free: 1.719 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.56e-05/0.5633, allocations: 11.91 kB / 0.6055 GB, free: 1.707 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01049/0.5738, allocations: 4.268 MB / 0.6097 GB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.546e-05/0.5738, allocations: 4.031 kB / 0.6097 GB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009438/0.5748, allocations: 191.6 kB / 0.6099 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00074/0.5755, allocations: 280.7 kB / 0.6102 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001688/0.5757, allocations: 39.97 kB / 0.6102 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006346/0.582, allocations: 3.959 MB / 0.6141 GB, free: 8.82 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.582, allocations: 0 / 0.6141 GB, free: 8.82 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005875/0.5879, allocations: 2.861 MB / 0.6169 GB, free: 5.93 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001248/0.5892, allocations: 314.9 kB / 0.6172 GB, free: 5.621 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004821/0.5896, allocations: 43.98 kB / 0.6172 GB, free: 5.578 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009904/0.5906, allocations: 75.92 kB / 0.6173 GB, free: 5.504 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003821/0.591, allocations: 128.8 kB / 0.6174 GB, free: 5.379 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.716e-05/0.5911, allocations: 39.98 kB / 0.6174 GB, free: 5.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001858/0.593, allocations: 0.8981 MB / 0.6183 GB, free: 4.434 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.593, allocations: 0 / 0.6183 GB, free: 4.434 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002376/0.5953, allocations: 444 kB / 0.6187 GB, free: 4 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.005934/0.6013, allocations: 3.462 MB / 0.6221 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003963/0.6052, allocations: 1.797 MB / 0.6239 GB, free: 14.69 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/0.6052, allocations: 4 kB / 0.6239 GB, free: 14.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00225/0.6075, allocations: 1.039 MB / 0.6249 GB, free: 13.63 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002478/0.61, allocations: 322.1 kB / 0.6252 GB, free: 13.34 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0384/0.6484, allocations: 16.26 MB / 0.6411 GB, free: 12.68 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003464/0.6518, allocations: 2.046 MB / 0.6431 GB, free: 10.6 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001684/0.6535, allocations: 370.4 kB / 0.6434 GB, free: 10.23 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001617/0.6551, allocations: 0.7805 MB / 0.6442 GB, free: 9.449 MB / 430.1 MB Notification: Performance of SimCode: time 1.643e-06/0.6551, allocations: 3.938 kB / 0.6442 GB, free: 9.445 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1125/0.7676, allocations: 39.66 MB / 0.6829 GB, free: 2.098 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.2/15.97, allocations: 8.047 kB / 0.6829 GB, free: 2.09 MB / 462.1 MB " [Timeout remaining time 644] (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: 19.622957661980763] Failed to read output from testmodel.py, exit status != 0: 16.152563431067392 16.17753479 16.026882181 Calling exit ...