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.0008011/0.0008012, allocations: 91.53 kB / 15.36 MB, free: 0.7383 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.328/1.328, allocations: 223.3 MB / 239.4 MB, free: 5.523 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.000951/0.0009507, allocations: 183.6 kB / 290.6 MB, free: 2.195 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03256/0.03256, allocations: 8.796 MB / 350.5 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003774/0.0003776, allocations: 12.44 kB / 413.9 MB, free: 42.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09387/0.09427, allocations: 52.56 MB / 466.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.004367/0.09868, allocations: 3.676 MB / 470.2 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00212/0.1008, allocations: 1.098 MB / 471.3 MB, free: 8.234 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003229/0.1012, allocations: 23.88 kB / 471.3 MB, free: 8.211 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002989/0.1015, allocations: 135.1 kB / 471.4 MB, free: 8.078 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006615/0.1022, allocations: 258.8 kB / 471.7 MB, free: 7.824 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000369/0.1025, allocations: 143.8 kB / 471.8 MB, free: 7.684 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002277/0.1048, allocations: 2.568 MB / 474.4 MB, free: 5.105 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002238/0.1071, allocations: 2.158 MB / 476.5 MB, free: 2.887 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001131/0.1082, allocations: 0.8091 MB / 477.3 MB, free: 2.074 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001633/0.1099, allocations: 1.085 MB / 478.4 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002104/0.1101, allocations: 132 kB / 478.6 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003392/0.1104, allocations: 136 kB / 478.7 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005438/0.111, allocations: 0.6111 MB / 479.3 MB, free: 112 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001525/0.1125, allocations: 1.175 MB / 480.5 MB, free: 14.92 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003903/0.1164, allocations: 3.745 MB / 484.2 MB, free: 11.16 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.1165, allocations: 0 / 484.2 MB, free: 11.16 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.026e-06/0.1165, allocations: 0 / 484.2 MB, free: 11.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001402/0.1166, allocations: 0 / 484.2 MB, free: 11.16 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.005805/0.1224, allocations: 2.442 MB / 486.7 MB, free: 8.656 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.598e-05/0.1225, allocations: 8.031 kB / 486.7 MB, free: 8.648 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009048/0.1234, allocations: 337 kB / 487 MB, free: 8.309 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006594/0.1241, allocations: 277.7 kB / 487.3 MB, free: 8.035 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00238/0.1265, allocations: 1.463 MB / 488.7 MB, free: 6.512 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001565/0.1267, allocations: 176.9 kB / 488.9 MB, free: 6.336 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003796/0.127, allocations: 231.9 kB / 489.1 MB, free: 6.109 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006076/0.1331, allocations: 3.213 MB / 492.3 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.901e-05/0.1332, allocations: 4 kB / 492.3 MB, free: 2.812 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002152/0.1334, allocations: 92 kB / 492.4 MB, free: 2.723 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-05/0.1335, allocations: 56 kB / 492.5 MB, free: 2.668 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004788/0.1383, allocations: 2.687 MB / 495.2 MB, free: 15.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01298/0.1513, allocations: 7.967 MB / 0.4914 GB, free: 7.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003009/0.1543, allocations: 3.104 MB / 0.4944 GB, free: 4.387 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001642/0.156, allocations: 1.072 MB / 0.4954 GB, free: 3.312 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.818e-05/0.1561, allocations: 13 kB / 0.4954 GB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001643/0.1577, allocations: 0.9959 MB / 0.4964 GB, free: 2.273 MB / 334.1 MB Notification: Performance of pre-optimization done (n=122): time 2.785e-06/0.1577, allocations: 0 / 0.4964 GB, free: 2.273 MB / 334.1 MB Notification: Performance of matching and sorting (n=127): time 0.008309/0.1661, allocations: 4.55 MB / 0.5009 GB, free: 13.67 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001314/0.1662, allocations: 205.2 kB / 0.5011 GB, free: 13.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001674/0.1679, allocations: 1.223 MB / 0.5022 GB, free: 12.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001166/0.168, allocations: 57.69 kB / 0.5023 GB, free: 12.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000872/0.1689, allocations: 0.9589 MB / 0.5032 GB, free: 11.15 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004011/0.1693, allocations: 429.8 kB / 0.5036 GB, free: 10.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001687/0.1695, allocations: 125.6 kB / 0.5038 GB, free: 10.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001908/0.1697, allocations: 357.9 kB / 0.5041 GB, free: 10.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001157/0.1709, allocations: 0.6817 MB / 0.5048 GB, free: 9.555 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001457/0.1723, allocations: 0.9934 MB / 0.5057 GB, free: 8.449 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002479/0.1748, allocations: 1.682 MB / 0.5074 GB, free: 6.672 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.497e-06/0.1748, allocations: 4 kB / 0.5074 GB, free: 6.668 MB / 350.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.003724/0.1786, allocations: 2.073 MB / 0.5094 GB, free: 4.578 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.823e-05/0.1786, allocations: 8 kB / 0.5094 GB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.732e-05/0.1786, allocations: 12.31 kB / 0.5094 GB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006603/0.1793, allocations: 282.2 kB / 0.5097 GB, free: 4.281 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/0.1804, allocations: 263.6 kB / 0.51 GB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004711/0.1851, allocations: 3.781 MB / 0.5136 GB, free: 108 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001059/0.1862, allocations: 95.98 kB / 0.5137 GB, free: 12 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.837e-05/0.1863, allocations: 48.05 kB / 0.5138 GB, free: 15.96 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.001554/0.1878, allocations: 0.8519 MB / 0.5146 GB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002234/0.1881, allocations: 134.4 kB / 0.5147 GB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003647/0.1884, allocations: 173.3 kB / 0.5149 GB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.111e-05/0.1885, allocations: 12 kB / 0.5149 GB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.443e-05/0.1885, allocations: 4 kB / 0.5149 GB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.245e-05/0.1885, allocations: 7.922 kB / 0.5149 GB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007298/0.1958, allocations: 4.321 MB / 0.5192 GB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/0.1958, allocations: 4.156 kB / 0.5192 GB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000865/0.1967, allocations: 191.8 kB / 0.5193 GB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005783/0.1973, allocations: 281 kB / 0.5196 GB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001655/0.1975, allocations: 47.95 kB / 0.5197 GB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004933/0.2024, allocations: 3.708 MB / 0.5233 GB, free: 6.016 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.2025, allocations: 12.03 kB / 0.5233 GB, free: 6.004 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004748/0.2072, allocations: 2.894 MB / 0.5261 GB, free: 3.078 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008949/0.2081, allocations: 367.4 kB / 0.5265 GB, free: 2.699 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001827/0.2083, allocations: 47.97 kB / 0.5265 GB, free: 2.652 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006385/0.209, allocations: 75.94 kB / 0.5266 GB, free: 2.578 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002836/0.2093, allocations: 132.8 kB / 0.5267 GB, free: 2.449 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.584e-05/0.2093, allocations: 47.91 kB / 0.5268 GB, free: 2.402 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001284/0.2106, allocations: 0.8578 MB / 0.5276 GB, free: 1.535 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2106, allocations: 0 / 0.5276 GB, free: 1.535 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001409/0.2121, allocations: 440 kB / 0.528 GB, free: 1.105 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.2063/0.4183, allocations: 3.491 MB / 0.5314 GB, free: 65.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002681/0.4211, allocations: 1.853 MB / 0.5332 GB, free: 65.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/0.4211, allocations: 0 / 0.5332 GB, free: 65.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001653/0.4228, allocations: 1.104 MB / 0.5343 GB, free: 65.7 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00171/0.4245, allocations: 287.5 kB / 0.5346 GB, free: 65.69 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02521/0.4497, allocations: 18.02 MB / 0.5522 GB, free: 59.56 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001256/0.451, allocations: 2.014 MB / 0.5541 GB, free: 58.39 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000928/0.4519, allocations: 378.2 kB / 0.5545 GB, free: 58.25 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00073/0.4527, allocations: 0.753 MB / 0.5552 GB, free: 57.57 MB / 366.1 MB Notification: Performance of SimCode: time 7.02e-07/0.4527, allocations: 0 / 0.5552 GB, free: 57.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04735/0.5, allocations: 34.91 MB / 0.5893 GB, free: 24.08 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001619/0.5002, allocations: 207.7 kB / 0.5895 GB, free: 23.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.461/2.961, allocations: 0 / 0.5895 GB, free: 23.82 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)