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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001437/0.001438, allocations: 174.3 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05629/0.05629, allocations: 8.726 MB / 16.79 MB, free: 3.379 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.604/1.604, allocations: 221.5 MB / 240.9 MB, free: 13.13 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009865/0.0009865, allocations: 90.69 kB / 293.8 MB, free: 7.227 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.059e-05/2.063e-05, allocations: 4 kB / 352.7 MB, free: 1.152 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1166, allocations: 52.55 MB / 405.3 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4218/0.5385, allocations: 84.33 MB / 489.6 MB, free: 2.762 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002169/0.5387, allocations: 72.33 kB / 489.7 MB, free: 2.727 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08264/0.6214, allocations: 33.72 MB / 0.5111 GB, free: 1.762 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.6214, allocations: 4 kB / 0.5111 GB, free: 1.758 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001134/0.6215, allocations: 55.94 kB / 0.5112 GB, free: 1.703 MB / 378.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.00431/0.6258, allocations: 2.282 MB / 0.5134 GB, free: 15.37 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.6259, allocations: 11.98 kB / 0.5134 GB, free: 15.36 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006013/0.6265, allocations: 292.7 kB / 0.5137 GB, free: 15.07 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002354/0.6289, allocations: 1.451 MB / 0.5151 GB, free: 13.55 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.826e-05/0.629, allocations: 72 kB / 0.5152 GB, free: 13.48 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002728/0.6292, allocations: 140 kB / 0.5153 GB, free: 13.35 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003449/0.6327, allocations: 2.207 MB / 0.5175 GB, free: 11.13 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004042/0.6368, allocations: 2.625 MB / 0.52 GB, free: 8.402 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.617e-05/0.6368, allocations: 7.906 kB / 0.52 GB, free: 8.395 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001692/0.637, allocations: 7.953 kB / 0.5201 GB, free: 8.387 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.101e-05/0.6371, allocations: 60 kB / 0.5201 GB, free: 8.328 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01259/0.6497, allocations: 7.518 MB / 0.5275 GB, free: 0.668 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002481/0.6522, allocations: 2.991 MB / 0.5304 GB, free: 13.33 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001298/0.6535, allocations: 0.9639 MB / 0.5313 GB, free: 12.36 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.508e-05/0.6536, allocations: 17.3 kB / 0.5313 GB, free: 12.34 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001242/0.6548, allocations: 0.9029 MB / 0.5322 GB, free: 11.41 MB / 410.7 MB Notification: Performance of pre-optimization done (n=122): time 3.396e-06/0.6549, allocations: 0 / 0.5322 GB, free: 11.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=127): time 0.00564/0.6605, allocations: 3.509 MB / 0.5356 GB, free: 7.855 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001258/0.6606, allocations: 205.2 kB / 0.5358 GB, free: 7.609 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001347/0.662, allocations: 0.9974 MB / 0.5368 GB, free: 6.594 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.878e-05/0.6621, allocations: 33.69 kB / 0.5368 GB, free: 6.555 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009556/0.6631, allocations: 0.9317 MB / 0.5378 GB, free: 5.609 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003681/0.6634, allocations: 421.8 kB / 0.5382 GB, free: 5.191 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.162e-05/0.6635, allocations: 0 / 0.5382 GB, free: 5.191 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.6637, allocations: 361.9 kB / 0.5385 GB, free: 4.832 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007593/0.6645, allocations: 0.5881 MB / 0.5391 GB, free: 4.246 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009678/0.6654, allocations: 0.8622 MB / 0.5399 GB, free: 3.285 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009044/0.6663, allocations: 0.7166 MB / 0.5406 GB, free: 2.574 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.6664, allocations: 4 kB / 0.5406 GB, free: 2.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.002686/0.6691, allocations: 1.8 MB / 0.5424 GB, free: 0.7578 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.6691, allocations: 8 kB / 0.5424 GB, free: 0.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.453e-05/0.6691, allocations: 4 kB / 0.5424 GB, free: 0.7461 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006019/0.6697, allocations: 268.8 kB / 0.5426 GB, free: 492 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009825/0.6707, allocations: 263.5 kB / 0.5429 GB, free: 228 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004304/0.675, allocations: 3.67 MB / 0.5465 GB, free: 12.45 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00107/0.6761, allocations: 67.98 kB / 0.5465 GB, free: 12.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.856e-05/0.6762, allocations: 41.69 kB / 0.5466 GB, free: 12.34 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rootMeanSquare[5].mean.y_last,rootMeanSquare[5].mean.y_last,$PRE.rootMeanSquare[4].mean.y_last,rootMeanSquare[4].mean.y_last,$PRE.rootMeanSquare[3].mean.y_last,rootMeanSquare[3].mean.y_last,$PRE.rootMeanSquare[2].mean.y_last,rootMeanSquare[2].mean.y_last,$PRE.rootMeanSquare[1].mean.y_last,rootMeanSquare[1].mean.y_last,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStep[4].y,booleanStep[5].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (134): * Single equations (assignments): 133 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003001/0.6765, allocations: 146.9 kB / 0.5467 GB, free: 12.19 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002383/0.6789, allocations: 1.573 MB / 0.5483 GB, free: 10.61 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002127/0.6792, allocations: 138.3 kB / 0.5484 GB, free: 10.47 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004202/0.6796, allocations: 157 kB / 0.5485 GB, free: 10.31 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-05/0.6796, allocations: 12 kB / 0.5486 GB, free: 10.3 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.837e-06/0.6796, allocations: 4 kB / 0.5486 GB, free: 10.3 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.3e-05/0.6797, allocations: 7.969 kB / 0.5486 GB, free: 10.29 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005731/0.6854, allocations: 3.841 MB / 0.5523 GB, free: 6.379 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.6854, allocations: 4.031 kB / 0.5523 GB, free: 6.375 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008071/0.6862, allocations: 191.8 kB / 0.5525 GB, free: 6.188 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005418/0.6868, allocations: 256.6 kB / 0.5527 GB, free: 5.934 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.722e-05/0.6869, allocations: 31.95 kB / 0.5528 GB, free: 5.902 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003905/0.6908, allocations: 3.583 MB / 0.5563 GB, free: 2.203 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/0.6908, allocations: 0 / 0.5563 GB, free: 2.203 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003592/0.6944, allocations: 2.681 MB / 0.5589 GB, free: 15.46 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007718/0.6952, allocations: 361.6 kB / 0.5592 GB, free: 15.09 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002024/0.6954, allocations: 31.97 kB / 0.5593 GB, free: 15.06 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006522/0.6961, allocations: 59.94 kB / 0.5593 GB, free: 15 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002544/0.6964, allocations: 133.1 kB / 0.5595 GB, free: 14.87 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.083e-05/0.6965, allocations: 47.91 kB / 0.5595 GB, free: 14.82 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001008/0.6975, allocations: 0.7634 MB / 0.5602 GB, free: 14.05 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6975, allocations: 0 / 0.5602 GB, free: 14.05 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001297/0.6988, allocations: 396 kB / 0.5606 GB, free: 13.66 MB / 442.7 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,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStep[4].y,booleanStep[5].y,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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003949/0.7027, allocations: 3.609 MB / 0.5641 GB, free: 9.984 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002598/0.7054, allocations: 1.654 MB / 0.5658 GB, free: 8.316 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.7054, allocations: 0 / 0.5658 GB, free: 8.316 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001519/0.7069, allocations: 0.9943 MB / 0.5667 GB, free: 7.312 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001427/0.7084, allocations: 239 kB / 0.567 GB, free: 7.086 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007691/0.7161, allocations: 4.405 MB / 0.5713 GB, free: 2.605 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001621/0.7177, allocations: 2.062 MB / 0.5733 GB, free: 0.5039 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0009455/0.7187, allocations: 357.7 kB / 0.5736 GB, free: 156 kB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.238/0.9567, allocations: 0.7571 MB / 0.5744 GB, free: 105 MB / 442.7 MB Notification: Performance of SimCode: time 1.974e-06/0.9568, allocations: 2.344 kB / 0.5744 GB, free: 105 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06788/1.025, allocations: 31.85 MB / 0.6055 GB, free: 103.9 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001466/1.025, allocations: 123.4 kB / 0.6056 GB, free: 103.7 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.967/3.992, allocations: 2.625 kB / 0.6056 GB, free: 103.7 MB / 442.7 MB (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/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Electrical_StarPolygon_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Electrical_StarPolygon.fmu > HanserModelica_HanserModelica.Electrical.StarPolygon.pipe 2>&1)