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: translateModel(HanserModelica.Electrical.StarPolygon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Electrical.StarPolygon") translateModel(HanserModelica.Electrical.StarPolygon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Electrical.StarPolygon") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001243/0.001243, 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.398/1.398, allocations: 222.9 MB / 239.2 MB, free: 4.609 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.001551/0.00155, allocations: 188.5 kB / 289.5 MB, free: 2.34 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03502/0.03502, allocations: 8.797 MB / 348.5 MB, free: 4.711 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001746/0.001746, allocations: 79.41 kB / 411.1 MB, free: 42.07 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1135, allocations: 51.56 MB / 462.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.006161/0.1197, allocations: 4.066 MB / 466.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002676/0.1224, allocations: 1.114 MB / 467.8 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004168/0.1229, allocations: 23.88 kB / 467.8 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000389/0.1233, allocations: 170.7 kB / 468 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008446/0.1242, allocations: 278.4 kB / 468.3 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003795/0.1246, allocations: 171.7 kB / 468.4 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002139/0.1267, allocations: 2.408 MB / 470.8 MB, free: 6.102 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00252/0.1292, allocations: 2.519 MB / 473.4 MB, free: 3.523 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001583/0.1308, allocations: 1.164 MB / 474.5 MB, free: 2.355 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001531/0.1324, allocations: 1.35 MB / 475.9 MB, free: 1 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003813/0.1328, allocations: 312 kB / 476.2 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005382/0.1333, allocations: 328 kB / 476.5 MB, free: 384 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007316/0.1341, allocations: 0.8454 MB / 477.3 MB, free: 15.53 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001639/0.1357, allocations: 1.412 MB / 478.8 MB, free: 14.11 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003496/0.1392, allocations: 3.996 MB / 482.8 MB, free: 10.1 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.613e-06/0.1392, allocations: 4 kB / 482.8 MB, free: 10.1 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1392, allocations: 0 / 482.8 MB, free: 10.1 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.495e-05/0.1393, allocations: 4 kB / 482.8 MB, free: 10.09 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.005676/0.145, allocations: 2.875 MB / 485.6 MB, free: 7.152 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.445e-05/0.1451, allocations: 8.031 kB / 485.6 MB, free: 7.145 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005818/0.1457, allocations: 273.8 kB / 485.9 MB, free: 6.875 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002115/0.1478, allocations: 1.455 MB / 487.4 MB, free: 5.359 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001239/0.1479, allocations: 176.9 kB / 487.5 MB, free: 5.184 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003233/0.1483, allocations: 240 kB / 487.8 MB, free: 4.949 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005002/0.1533, allocations: 3.182 MB / 491 MB, free: 1.688 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.525e-05/0.1533, allocations: 3.938 kB / 491 MB, free: 1.684 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000204/0.1536, allocations: 95.98 kB / 491.1 MB, free: 1.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.115e-05/0.1536, allocations: 56 kB / 491.1 MB, free: 1.535 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004378/0.158, allocations: 2.649 MB / 493.8 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01299/0.171, allocations: 7.905 MB / 0.4899 GB, free: 6.809 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002595/0.1736, allocations: 3.092 MB / 0.4929 GB, free: 3.367 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001486/0.1751, allocations: 1.029 MB / 0.4939 GB, free: 2.336 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.554e-05/0.1752, allocations: 17.47 kB / 0.4939 GB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001406/0.1766, allocations: 0.9783 MB / 0.4949 GB, free: 1.309 MB / 334.1 MB Notification: Performance of pre-optimization done (n=122): time 3.396e-06/0.1766, allocations: 3.938 kB / 0.4949 GB, free: 1.305 MB / 334.1 MB Notification: Performance of matching and sorting (n=127): time 0.007539/0.1842, allocations: 4.473 MB / 0.4993 GB, free: 12.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/0.1843, allocations: 209.2 kB / 0.4995 GB, free: 12.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001707/0.186, allocations: 1.223 MB / 0.5007 GB, free: 11.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.439e-05/0.1861, allocations: 53.7 kB / 0.5007 GB, free: 11.24 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000894/0.187, allocations: 0.9627 MB / 0.5017 GB, free: 10.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003385/0.1874, allocations: 429.9 kB / 0.5021 GB, free: 9.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003624/0.1878, allocations: 238.9 kB / 0.5023 GB, free: 9.598 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.1879, allocations: 357.9 kB / 0.5026 GB, free: 9.242 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001108/0.189, allocations: 0.67 MB / 0.5033 GB, free: 8.574 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001297/0.1903, allocations: 0.9817 MB / 0.5043 GB, free: 7.477 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002331/0.1927, allocations: 1.647 MB / 0.5059 GB, free: 5.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-06/0.1927, allocations: 3.984 kB / 0.5059 GB, free: 5.727 MB / 350.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.003194/0.1959, allocations: 2.039 MB / 0.5079 GB, free: 3.676 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.066e-05/0.1959, allocations: 15.98 kB / 0.5079 GB, free: 3.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.196, allocations: 4 kB / 0.5079 GB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005914/0.1966, allocations: 285.6 kB / 0.5081 GB, free: 3.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009831/0.1975, allocations: 267.6 kB / 0.5084 GB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004741/0.2023, allocations: 4.079 MB / 0.5124 GB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001048/0.2034, allocations: 87.86 kB / 0.5125 GB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.658e-05/0.2035, allocations: 44 kB / 0.5125 GB, free: 14.77 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.001752/0.2052, allocations: 0.8547 MB / 0.5133 GB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003501/0.2056, allocations: 130.4 kB / 0.5135 GB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003449/0.2059, allocations: 173.3 kB / 0.5136 GB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.514e-05/0.2059, allocations: 12 kB / 0.5136 GB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.275e-05/0.206, allocations: 7.938 kB / 0.5137 GB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.595e-05/0.206, allocations: 3.984 kB / 0.5137 GB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006931/0.2129, allocations: 4.282 MB / 0.5178 GB, free: 9.223 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.213, allocations: 3.938 kB / 0.5178 GB, free: 9.219 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007884/0.2138, allocations: 191.7 kB / 0.518 GB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005787/0.2144, allocations: 277.3 kB / 0.5183 GB, free: 8.758 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.143e-05/0.2145, allocations: 43.97 kB / 0.5183 GB, free: 8.715 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004598/0.2191, allocations: 4.02 MB / 0.5223 GB, free: 4.551 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.2191, allocations: 0 / 0.5223 GB, free: 4.551 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004276/0.2234, allocations: 2.843 MB / 0.525 GB, free: 1.672 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009358/0.2243, allocations: 359.4 kB / 0.5254 GB, free: 1.301 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001971/0.2246, allocations: 51.97 kB / 0.5254 GB, free: 1.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006444/0.2252, allocations: 75.92 kB / 0.5255 GB, free: 1.176 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002995/0.2255, allocations: 128.8 kB / 0.5256 GB, free: 1.051 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.316e-05/0.2256, allocations: 39.97 kB / 0.5257 GB, free: 1.012 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001366/0.227, allocations: 0.858 MB / 0.5265 GB, free: 148 kB / 366.1 MB Notification: Performance of sort global known variables: time 2.013e-06/0.227, allocations: 0 / 0.5265 GB, free: 148 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.2679/0.4949, allocations: 451.8 kB / 0.5269 GB, free: 67.68 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.0002885/0.4952, allocations: 152 kB / 0.5271 GB, free: 67.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004644/0.4999, allocations: 2.564 MB / 0.5296 GB, free: 67.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/0.4999, allocations: 3.625 kB / 0.5296 GB, free: 67.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001844/0.5018, allocations: 1.084 MB / 0.5306 GB, free: 67.31 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001727/0.5035, allocations: 306.2 kB / 0.5309 GB, free: 67.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008401/0.5119, allocations: 4.62 MB / 0.5354 GB, free: 65.82 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001922/0.5139, allocations: 2.015 MB / 0.5374 GB, free: 65.07 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001332/0.5152, allocations: 370.9 kB / 0.5378 GB, free: 65.04 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002873/0.5155, allocations: 88.78 kB / 0.5379 GB, free: 65.03 MB / 366.1 MB Notification: Performance of SimCode: time 7.61e-07/0.5156, allocations: 1.094 kB / 0.5379 GB, free: 65.03 MB / 366.1 MB Notification: Performance of Templates: time 0.03826/0.5538, allocations: 20.87 MB / 0.5582 GB, free: 51.83 MB / 366.1 MB make -j1 -f HanserModelica_HanserModelica.Electrical.StarPolygon.makefile (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 & ./HanserModelica_HanserModelica.Electrical.StarPolygon -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.Electrical.StarPolygon.pipe 2>&1)