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.001143/0.001143, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.371/1.371, allocations: 222.9 MB / 238.9 MB, free: 4.754 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.001579/0.001578, allocations: 192.5 kB / 289.1 MB, free: 2.496 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03293/0.03293, allocations: 8.802 MB / 348.1 MB, free: 4.883 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002519/0.002519, allocations: 75.02 kB / 410.5 MB, free: 42.36 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1148, allocations: 51.57 MB / 462.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.005337/0.1201, allocations: 4.087 MB / 466.2 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002193/0.1224, allocations: 1.102 MB / 467.3 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002864/0.1227, allocations: 23.88 kB / 467.3 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003445/0.123, allocations: 139.1 kB / 467.4 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000702/0.1237, allocations: 262.7 kB / 467.7 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003116/0.1241, allocations: 143.8 kB / 467.8 MB, free: 9.004 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002297/0.1264, allocations: 2.564 MB / 470.4 MB, free: 6.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002404/0.1288, allocations: 2.174 MB / 472.6 MB, free: 4.195 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001525/0.1303, allocations: 0.9731 MB / 473.5 MB, free: 3.219 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001695/0.132, allocations: 1.296 MB / 474.8 MB, free: 1.918 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002842/0.1323, allocations: 200 kB / 475 MB, free: 1.723 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004604/0.1328, allocations: 204 kB / 475.2 MB, free: 1.523 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006125/0.1334, allocations: 0.7126 MB / 475.9 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001407/0.1348, allocations: 1.287 MB / 477.2 MB, free: 15.51 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003357/0.1382, allocations: 3.863 MB / 481.1 MB, free: 11.64 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.1382, allocations: 3.938 kB / 481.1 MB, free: 11.64 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1382, allocations: 3.938 kB / 481.1 MB, free: 11.63 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.262e-05/0.1383, allocations: 0 / 481.1 MB, free: 11.63 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.005509/0.1438, allocations: 2.867 MB / 484 MB, free: 8.699 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.1439, allocations: 12.03 kB / 484 MB, free: 8.688 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004139/0.1443, allocations: 337 kB / 484.3 MB, free: 8.348 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005491/0.1449, allocations: 281.7 kB / 484.6 MB, free: 8.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002102/0.147, allocations: 1.463 MB / 486 MB, free: 6.547 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001388/0.1471, allocations: 172.9 kB / 486.2 MB, free: 6.375 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003088/0.1475, allocations: 243.8 kB / 486.4 MB, free: 6.137 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004913/0.1524, allocations: 3.186 MB / 489.6 MB, free: 2.871 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.222e-05/0.1525, allocations: 7.938 kB / 489.6 MB, free: 2.863 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002105/0.1527, allocations: 92 kB / 489.7 MB, free: 2.773 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.829e-05/0.1527, allocations: 56 kB / 489.8 MB, free: 2.719 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00411/0.1568, allocations: 2.652 MB / 492.4 MB, free: 52 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01185/0.1687, allocations: 7.904 MB / 0.4886 GB, free: 7.988 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002752/0.1715, allocations: 3.081 MB / 0.4916 GB, free: 4.559 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001525/0.173, allocations: 1.033 MB / 0.4926 GB, free: 3.523 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.493e-05/0.1731, allocations: 16.98 kB / 0.4926 GB, free: 3.508 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001409/0.1745, allocations: 0.9839 MB / 0.4936 GB, free: 2.492 MB / 334.1 MB Notification: Performance of pre-optimization done (n=122): time 2.795e-06/0.1745, allocations: 0 / 0.4936 GB, free: 2.492 MB / 334.1 MB Notification: Performance of matching and sorting (n=127): time 0.007348/0.1819, allocations: 4.464 MB / 0.498 GB, free: 13.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/0.182, allocations: 197.2 kB / 0.4982 GB, free: 13.74 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001589/0.1836, allocations: 1.223 MB / 0.4993 GB, free: 12.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001/0.1837, allocations: 57.69 kB / 0.4994 GB, free: 12.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008529/0.1846, allocations: 0.9627 MB / 0.5003 GB, free: 11.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003342/0.1849, allocations: 429.9 kB / 0.5008 GB, free: 11.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003579/0.1853, allocations: 250.8 kB / 0.501 GB, free: 10.78 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.1854, allocations: 357.9 kB / 0.5013 GB, free: 10.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001036/0.1864, allocations: 0.6622 MB / 0.502 GB, free: 9.766 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001244/0.1877, allocations: 0.9778 MB / 0.5029 GB, free: 8.672 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002144/0.1899, allocations: 1.647 MB / 0.5045 GB, free: 6.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/0.1899, allocations: 4 kB / 0.5045 GB, free: 6.926 MB / 350.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.003321/0.1932, allocations: 2.046 MB / 0.5065 GB, free: 4.863 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/0.1932, allocations: 8 kB / 0.5066 GB, free: 4.855 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.502e-05/0.1933, allocations: 8 kB / 0.5066 GB, free: 4.848 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006031/0.1939, allocations: 286.5 kB / 0.5068 GB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009498/0.1948, allocations: 259.6 kB / 0.5071 GB, free: 4.312 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004373/0.1992, allocations: 3.77 MB / 0.5108 GB, free: 420 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008599/0.2001, allocations: 87.98 kB / 0.5108 GB, free: 332 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.133e-05/0.2002, allocations: 44 kB / 0.5109 GB, free: 288 kB / 350.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.001354/0.2015, allocations: 0.8467 MB / 0.5117 GB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002233/0.2018, allocations: 134.4 kB / 0.5118 GB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002916/0.2021, allocations: 173.3 kB / 0.512 GB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.989e-06/0.2021, allocations: 12 kB / 0.512 GB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.255e-05/0.2021, allocations: 4.188 kB / 0.512 GB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.2021, allocations: 3.984 kB / 0.512 GB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00625/0.2084, allocations: 4.286 MB / 0.5162 GB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.682e-06/0.2084, allocations: 0 / 0.5162 GB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008046/0.2092, allocations: 187.8 kB / 0.5164 GB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005538/0.2098, allocations: 281.2 kB / 0.5167 GB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.679e-05/0.2099, allocations: 47.91 kB / 0.5167 GB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004394/0.2143, allocations: 3.69 MB / 0.5203 GB, free: 6.395 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.755e-06/0.2143, allocations: 8.031 kB / 0.5203 GB, free: 6.387 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004539/0.2189, allocations: 2.843 MB / 0.5231 GB, free: 3.516 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007513/0.2196, allocations: 363.4 kB / 0.5234 GB, free: 3.141 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001864/0.2198, allocations: 43.97 kB / 0.5235 GB, free: 3.098 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005908/0.2204, allocations: 71.94 kB / 0.5235 GB, free: 3.027 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002913/0.2207, allocations: 132.8 kB / 0.5237 GB, free: 2.898 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.489e-05/0.2208, allocations: 48.09 kB / 0.5237 GB, free: 2.852 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001151/0.222, allocations: 0.8617 MB / 0.5246 GB, free: 1.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.222, allocations: 3.938 kB / 0.5246 GB, free: 1.977 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001375/0.2233, allocations: 440 kB / 0.525 GB, free: 1.547 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.1924/0.4158, allocations: 3.434 MB / 0.5283 GB, free: 66.89 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002699/0.4185, allocations: 1.827 MB / 0.5301 GB, free: 66.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.4185, allocations: 0 / 0.5301 GB, free: 66.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001596/0.4201, allocations: 1.084 MB / 0.5312 GB, free: 66.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001564/0.4217, allocations: 299.1 kB / 0.5315 GB, free: 66.6 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02524/0.447, allocations: 17.82 MB / 0.5489 GB, free: 60.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001304/0.4483, allocations: 2.027 MB / 0.5509 GB, free: 59.32 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001081/0.4494, allocations: 364.8 kB / 0.5512 GB, free: 59.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007384/0.4502, allocations: 0.7467 MB / 0.5519 GB, free: 58.52 MB / 366.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4502, allocations: 0 / 0.5519 GB, free: 58.52 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04836/0.4985, allocations: 35.48 MB / 0.5866 GB, free: 24.56 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001825/0.4988, allocations: 208.3 kB / 0.5868 GB, free: 24.3 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.343/2.842, allocations: 1.531 kB / 0.5868 GB, free: 24.3 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)