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.0.0+maint.om/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/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) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 222.9 MB / 239 MB, free: 4.676 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 188.5 kB / 289.3 MB, free: 2.434 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03435/0.03435, allocations: 8.802 MB / 348.2 MB, free: 4.832 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002376/0.002377, allocations: 76.84 kB / 410.7 MB, free: 42.28 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08181/0.08421, allocations: 51.56 MB / 462.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.004998/0.08925, allocations: 4.084 MB / 466.3 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001711/0.09098, allocations: 1.094 MB / 467.4 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002419/0.09124, allocations: 23.88 kB / 467.5 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003197/0.09157, allocations: 139.1 kB / 467.6 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006642/0.09225, allocations: 254.7 kB / 467.8 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002966/0.09256, allocations: 143.9 kB / 468 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001956/0.09453, allocations: 2.42 MB / 470.4 MB, free: 6.461 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002243/0.09678, allocations: 2.519 MB / 472.9 MB, free: 3.883 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001055/0.09785, allocations: 1.168 MB / 474.1 MB, free: 2.711 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00136/0.09922, allocations: 1.386 MB / 475.5 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003298/0.09956, allocations: 316 kB / 475.8 MB, free: 1.012 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004214/0.09999, allocations: 316 kB / 476.1 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006097/0.1006, allocations: 0.8571 MB / 476.9 MB, free: 15.84 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001254/0.1019, allocations: 1.419 MB / 478.4 MB, free: 14.42 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003032/0.1049, allocations: 3.988 MB / 482.4 MB, free: 10.42 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1049, allocations: 4 kB / 482.4 MB, free: 10.41 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.036e-06/0.1049, allocations: 4 kB / 482.4 MB, free: 10.41 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.391e-05/0.105, allocations: 0 / 482.4 MB, free: 10.41 MB / 318.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.005825/0.1108, allocations: 2.871 MB / 485.2 MB, free: 7.473 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.1109, allocations: 12.03 kB / 485.2 MB, free: 7.461 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003751/0.1113, allocations: 337 kB / 485.6 MB, free: 7.121 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005109/0.1118, allocations: 273.8 kB / 485.8 MB, free: 6.852 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002033/0.1138, allocations: 1.455 MB / 487.3 MB, free: 5.336 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001177/0.114, allocations: 180.9 kB / 487.5 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003002/0.1143, allocations: 235.8 kB / 487.7 MB, free: 4.926 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004719/0.119, allocations: 3.19 MB / 490.9 MB, free: 1.656 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.819e-05/0.1191, allocations: 0 / 490.9 MB, free: 1.656 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002049/0.1193, allocations: 95.98 kB / 491 MB, free: 1.562 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.978e-05/0.1193, allocations: 56 kB / 491 MB, free: 1.508 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003971/0.1233, allocations: 2.648 MB / 493.7 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01092/0.1342, allocations: 7.908 MB / 0.4898 GB, free: 6.777 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002519/0.1368, allocations: 3.088 MB / 0.4929 GB, free: 3.34 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001435/0.1382, allocations: 1.022 MB / 0.4939 GB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.349e-05/0.1383, allocations: 20.98 kB / 0.4939 GB, free: 2.297 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001373/0.1397, allocations: 0.9761 MB / 0.4948 GB, free: 1.289 MB / 334.1 MB Notification: Performance of pre-optimization done (n=122): time 3.016e-06/0.1397, allocations: 4 kB / 0.4948 GB, free: 1.285 MB / 334.1 MB Notification: Performance of matching and sorting (n=127): time 0.007098/0.1468, allocations: 4.46 MB / 0.4992 GB, free: 12.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000102/0.1469, allocations: 209.2 kB / 0.4994 GB, free: 12.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001479/0.1484, allocations: 1.223 MB / 0.5006 GB, free: 11.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.002e-05/0.1485, allocations: 53.7 kB / 0.5006 GB, free: 11.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007512/0.1493, allocations: 0.9627 MB / 0.5016 GB, free: 10.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000308/0.1496, allocations: 429.9 kB / 0.502 GB, free: 9.824 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003431/0.1499, allocations: 238.9 kB / 0.5022 GB, free: 9.582 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.1501, allocations: 357.9 kB / 0.5026 GB, free: 9.227 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009922/0.1511, allocations: 0.67 MB / 0.5032 GB, free: 8.559 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001152/0.1523, allocations: 0.9855 MB / 0.5042 GB, free: 7.457 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002098/0.1544, allocations: 1.651 MB / 0.5058 GB, free: 5.711 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.1544, allocations: 4 kB / 0.5058 GB, free: 5.707 MB / 350.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.002981/0.1574, allocations: 2.042 MB / 0.5078 GB, free: 3.648 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/0.1574, allocations: 8 kB / 0.5078 GB, free: 3.641 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/0.1574, allocations: 8 kB / 0.5078 GB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005823/0.158, allocations: 286.3 kB / 0.5081 GB, free: 3.352 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009877/0.159, allocations: 263.6 kB / 0.5083 GB, free: 3.094 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004483/0.1635, allocations: 4.081 MB / 0.5123 GB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008378/0.1644, allocations: 83.92 kB / 0.5124 GB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.15e-05/0.1644, allocations: 44 kB / 0.5124 GB, free: 14.75 MB / 366.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.001276/0.1657, allocations: 0.851 MB / 0.5133 GB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000193/0.1659, allocations: 130.4 kB / 0.5134 GB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000298/0.1662, allocations: 173.3 kB / 0.5135 GB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.06e-05/0.1663, allocations: 19.94 kB / 0.5136 GB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.056e-05/0.1663, allocations: 4 kB / 0.5136 GB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/0.1663, allocations: 3.984 kB / 0.5136 GB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005992/0.1723, allocations: 4.282 MB / 0.5178 GB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.229e-06/0.1723, allocations: 0 / 0.5178 GB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007943/0.1731, allocations: 191.9 kB / 0.5179 GB, free: 9.012 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005355/0.1737, allocations: 273.2 kB / 0.5182 GB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.853e-05/0.1738, allocations: 47.91 kB / 0.5182 GB, free: 8.695 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004197/0.178, allocations: 4.021 MB / 0.5222 GB, free: 4.531 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.178, allocations: 0 / 0.5222 GB, free: 4.531 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003867/0.1819, allocations: 2.847 MB / 0.5249 GB, free: 1.656 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005913/0.1825, allocations: 363.4 kB / 0.5253 GB, free: 1.281 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002003/0.1827, allocations: 39.98 kB / 0.5253 GB, free: 1.242 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000632/0.1833, allocations: 83.92 kB / 0.5254 GB, free: 1.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002634/0.1836, allocations: 128.8 kB / 0.5255 GB, free: 1.035 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.65e-05/0.1837, allocations: 39.97 kB / 0.5256 GB, free: 0.9961 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001041/0.1847, allocations: 0.8617 MB / 0.5264 GB, free: 128 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1847, allocations: 8 kB / 0.5264 GB, free: 120 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.1523/0.337, allocations: 431.1 kB / 0.5268 GB, free: 67.81 MB / 366.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.003896/0.3409, allocations: 3.445 MB / 0.5302 GB, free: 67.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004727/0.3457, allocations: 2.561 MB / 0.5327 GB, free: 66.92 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.3457, allocations: 3.969 kB / 0.5327 GB, free: 66.92 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001592/0.3473, allocations: 1.084 MB / 0.5338 GB, free: 66.79 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001406/0.3487, allocations: 307.5 kB / 0.5341 GB, free: 66.78 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02114/0.3699, allocations: 17.83 MB / 0.5515 GB, free: 60.13 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001145/0.371, allocations: 2.026 MB / 0.5534 GB, free: 58.39 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008346/0.3719, allocations: 369.8 kB / 0.5538 GB, free: 58.04 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006965/0.3726, allocations: 0.7531 MB / 0.5545 GB, free: 57.28 MB / 366.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3726, allocations: 0 / 0.5545 GB, free: 57.28 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04674/0.4193, allocations: 36.26 MB / 0.5899 GB, free: 21.39 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001355/0.4195, allocations: 204.7 kB / 0.5901 GB, free: 21.13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.343/2.762, allocations: 0 / 0.5901 GB, free: 21.13 MB / 366.1 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/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)