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.001449/0.001449, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 222.9 MB / 239.2 MB, free: 4.605 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.001671/0.001671, allocations: 180.5 kB / 289.6 MB, free: 2.328 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0359/0.0359, allocations: 8.793 MB / 348.5 MB, free: 4.707 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001743/0.001743, allocations: 81.47 kB / 411.2 MB, free: 41.95 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0901/0.09186, allocations: 51.57 MB / 462.8 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.006248/0.09816, allocations: 4.049 MB / 466.8 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002697/0.1009, allocations: 1.114 MB / 467.9 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008264/0.1018, allocations: 27.88 kB / 467.9 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007415/0.1026, allocations: 166.6 kB / 468.1 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001368/0.104, allocations: 282.5 kB / 468.4 MB, free: 8.582 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006127/0.1046, allocations: 167.7 kB / 468.5 MB, free: 8.418 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00283/0.1074, allocations: 2.42 MB / 471 MB, free: 5.988 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003406/0.1109, allocations: 2.519 MB / 473.5 MB, free: 3.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002049/0.113, allocations: 1.161 MB / 474.6 MB, free: 2.246 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0022/0.1152, allocations: 1.354 MB / 476 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007967/0.116, allocations: 316 kB / 476.3 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001087/0.1171, allocations: 320 kB / 476.6 MB, free: 272 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001028/0.1181, allocations: 0.8493 MB / 477.5 MB, free: 15.41 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001923/0.1201, allocations: 1.419 MB / 478.9 MB, free: 13.98 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003632/0.1237, allocations: 3.98 MB / 482.9 MB, free: 9.996 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.1238, allocations: 4 kB / 482.9 MB, free: 9.992 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.1238, allocations: 4 kB / 482.9 MB, free: 9.988 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001177/0.1239, allocations: 0 / 482.9 MB, free: 9.988 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.006072/0.13, allocations: 2.88 MB / 485.8 MB, free: 7.043 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/0.13, allocations: 8.031 kB / 485.8 MB, free: 7.035 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004264/0.1305, allocations: 337 kB / 486.1 MB, free: 6.695 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005422/0.131, allocations: 273.7 kB / 486.4 MB, free: 6.426 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00216/0.1332, allocations: 1.463 MB / 487.8 MB, free: 4.902 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001304/0.1333, allocations: 172.9 kB / 488 MB, free: 4.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003219/0.1337, allocations: 239.8 kB / 488.2 MB, free: 4.496 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005171/0.1388, allocations: 3.186 MB / 491.4 MB, free: 1.23 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.781e-05/0.1389, allocations: 0 / 491.4 MB, free: 1.23 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002054/0.1391, allocations: 96 kB / 491.5 MB, free: 1.137 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-05/0.1392, allocations: 56 kB / 491.6 MB, free: 1.082 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004377/0.1436, allocations: 2.648 MB / 494.2 MB, free: 14.42 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01219/0.1558, allocations: 7.908 MB / 0.4904 GB, free: 6.352 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002749/0.1586, allocations: 3.089 MB / 0.4934 GB, free: 2.914 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00153/0.1601, allocations: 1.026 MB / 0.4944 GB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.926e-05/0.1602, allocations: 24.92 kB / 0.4944 GB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001408/0.1616, allocations: 0.9723 MB / 0.4953 GB, free: 0.8555 MB / 334.1 MB Notification: Performance of pre-optimization done (n=122): time 2.855e-06/0.1616, allocations: 0 / 0.4953 GB, free: 0.8555 MB / 334.1 MB Notification: Performance of matching and sorting (n=127): time 0.007686/0.1693, allocations: 4.464 MB / 0.4997 GB, free: 12.35 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/0.1695, allocations: 209.2 kB / 0.4999 GB, free: 12.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001624/0.1711, allocations: 1.223 MB / 0.5011 GB, free: 10.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000102/0.1712, allocations: 57.69 kB / 0.5012 GB, free: 10.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008947/0.1721, allocations: 0.9627 MB / 0.5021 GB, free: 9.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003593/0.1725, allocations: 425.9 kB / 0.5025 GB, free: 9.398 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003653/0.1729, allocations: 238.8 kB / 0.5027 GB, free: 9.156 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.173, allocations: 365.9 kB / 0.5031 GB, free: 8.793 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001027/0.1741, allocations: 0.6622 MB / 0.5037 GB, free: 8.133 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001236/0.1753, allocations: 0.9778 MB / 0.5047 GB, free: 7.039 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002281/0.1776, allocations: 1.654 MB / 0.5063 GB, free: 5.285 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.032e-06/0.1776, allocations: 4 kB / 0.5063 GB, free: 5.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.003169/0.1808, allocations: 2.042 MB / 0.5083 GB, free: 3.227 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.1808, allocations: 8 kB / 0.5083 GB, free: 3.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.403e-05/0.1808, allocations: 8 kB / 0.5083 GB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005888/0.1814, allocations: 286.3 kB / 0.5086 GB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000996/0.1824, allocations: 267.6 kB / 0.5088 GB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004634/0.1871, allocations: 4.078 MB / 0.5128 GB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008219/0.1879, allocations: 83.94 kB / 0.5129 GB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.01e-05/0.188, allocations: 48.22 kB / 0.5129 GB, free: 14.32 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.00127/0.1893, allocations: 0.8508 MB / 0.5138 GB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000203/0.1895, allocations: 134.4 kB / 0.5139 GB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002936/0.1898, allocations: 169.3 kB / 0.5141 GB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.164e-05/0.1898, allocations: 19.94 kB / 0.5141 GB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.551e-05/0.1899, allocations: 4 kB / 0.5141 GB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.176e-05/0.1899, allocations: 7.969 kB / 0.5141 GB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006226/0.1961, allocations: 4.278 MB / 0.5183 GB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.1961, allocations: 0 / 0.5183 GB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008347/0.197, allocations: 191.9 kB / 0.5185 GB, free: 8.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005461/0.1975, allocations: 281.1 kB / 0.5187 GB, free: 8.312 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.834e-05/0.1976, allocations: 47.95 kB / 0.5188 GB, free: 8.266 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004518/0.2022, allocations: 4.025 MB / 0.5227 GB, free: 4.098 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.2022, allocations: 0 / 0.5227 GB, free: 4.098 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004202/0.2064, allocations: 2.839 MB / 0.5255 GB, free: 1.223 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007263/0.2071, allocations: 367.4 kB / 0.5258 GB, free: 0.8438 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002666/0.2074, allocations: 43.97 kB / 0.5259 GB, free: 0.8008 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000703/0.2081, allocations: 71.94 kB / 0.5259 GB, free: 0.7305 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002929/0.2084, allocations: 136.8 kB / 0.5261 GB, free: 0.5977 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.533e-05/0.2085, allocations: 35.98 kB / 0.5261 GB, free: 0.5625 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.17/0.3785, allocations: 0.859 MB / 0.5269 GB, free: 67.32 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.162e-06/0.3785, allocations: 0.5 kB / 0.5269 GB, free: 67.32 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001781/0.3803, allocations: 443.2 kB / 0.5274 GB, free: 67.32 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.004242/0.3846, allocations: 3.448 MB / 0.5307 GB, free: 66.58 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004469/0.3891, allocations: 2.553 MB / 0.5332 GB, free: 66.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.141e-06/0.3891, allocations: 1.438 kB / 0.5332 GB, free: 66.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00183/0.3909, allocations: 1.082 MB / 0.5343 GB, free: 66.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0015/0.3924, allocations: 307.4 kB / 0.5346 GB, free: 66.28 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02393/0.4164, allocations: 16.92 MB / 0.5511 GB, free: 60.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001664/0.4181, allocations: 2.026 MB / 0.5531 GB, free: 58.86 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0009253/0.419, allocations: 367.3 kB / 0.5534 GB, free: 58.51 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007927/0.4198, allocations: 0.757 MB / 0.5542 GB, free: 57.75 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4199, allocations: 0 / 0.5542 GB, free: 57.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0634/0.4833, allocations: 36.61 MB / 0.5899 GB, free: 21.46 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.01/10.49, allocations: 11.77 kB / 0.5899 GB, free: 21.45 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)