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/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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 182.6 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03744/0.03744, allocations: 8.794 MB / 25.52 MB, free: 3.754 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 222.9 MB / 251.3 MB, free: 7.281 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 101.9 kB / 303.6 MB, free: 14.52 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 80.2 kB / 366 MB, free: 184 kB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.224/0.2252, allocations: 51.55 MB / 417.5 MB, free: 20.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.003971/0.2292, allocations: 4.085 MB / 421.6 MB, free: 16.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001398/0.2306, allocations: 1.096 MB / 422.7 MB, free: 15.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002373/0.2309, allocations: 23.88 kB / 422.7 MB, free: 15.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002798/0.2312, allocations: 139.1 kB / 422.9 MB, free: 15.55 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00059/0.2318, allocations: 262.7 kB / 423.1 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002342/0.232, allocations: 147.9 kB / 423.3 MB, free: 15.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001338/0.2334, allocations: 2.596 MB / 425.9 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001505/0.2349, allocations: 2.185 MB / 428.1 MB, free: 10.29 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007893/0.2357, allocations: 0.9731 MB / 429 MB, free: 9.316 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001127/0.2368, allocations: 1.296 MB / 430.3 MB, free: 8.016 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002781/0.2371, allocations: 203.9 kB / 430.5 MB, free: 7.816 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003835/0.2375, allocations: 204 kB / 430.7 MB, free: 7.617 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004563/0.238, allocations: 0.7126 MB / 431.4 MB, free: 6.902 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001083/0.2391, allocations: 1.287 MB / 432.7 MB, free: 5.609 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001967/0.241, allocations: 3.867 MB / 436.6 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.2411, allocations: 0 / 436.6 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2411, allocations: 0 / 436.6 MB, free: 1.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.946e-05/0.2411, allocations: 0 / 436.6 MB, free: 1.73 MB / 298.7 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.004602/0.2457, allocations: 2.875 MB / 439.5 MB, free: 14.79 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.2458, allocations: 12.03 kB / 439.5 MB, free: 14.78 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004479/0.2462, allocations: 273.7 kB / 439.7 MB, free: 14.51 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002317/0.2485, allocations: 1.455 MB / 441.2 MB, free: 12.99 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001177/0.2487, allocations: 180.9 kB / 441.4 MB, free: 12.81 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002943/0.249, allocations: 236 kB / 441.6 MB, free: 12.58 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004544/0.2535, allocations: 3.182 MB / 444.8 MB, free: 9.32 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.48e-05/0.2536, allocations: 11.94 kB / 444.8 MB, free: 9.309 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001804/0.2538, allocations: 92 kB / 444.9 MB, free: 9.219 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.572e-05/0.2538, allocations: 52 kB / 444.9 MB, free: 9.168 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003819/0.2577, allocations: 2.648 MB / 447.6 MB, free: 6.504 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01277/0.2704, allocations: 7.901 MB / 455.5 MB, free: 14.45 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002418/0.2729, allocations: 3.092 MB / 458.6 MB, free: 11 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001412/0.2743, allocations: 1.033 MB / 459.6 MB, free: 9.965 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.588e-05/0.2744, allocations: 17.45 kB / 459.6 MB, free: 9.949 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00128/0.2757, allocations: 0.9815 MB / 460.6 MB, free: 8.938 MB / 330.7 MB Notification: Performance of pre-optimization done (n=122): time 3.256e-06/0.2757, allocations: 0 / 460.6 MB, free: 8.938 MB / 330.7 MB Notification: Performance of matching and sorting (n=127): time 0.006637/0.2823, allocations: 4.462 MB / 465.1 MB, free: 4.426 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.833e-05/0.2824, allocations: 209.2 kB / 465.3 MB, free: 4.18 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001422/0.2839, allocations: 1.223 MB / 466.5 MB, free: 2.938 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.116e-05/0.284, allocations: 57.69 kB / 466.6 MB, free: 2.875 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000681/0.2846, allocations: 0.9628 MB / 467.5 MB, free: 1.898 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002758/0.2849, allocations: 421.9 kB / 467.9 MB, free: 1.48 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003276/0.2853, allocations: 246.8 kB / 468.2 MB, free: 1.23 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.2854, allocations: 353.9 kB / 468.5 MB, free: 0.8789 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009446/0.2863, allocations: 0.67 MB / 469.2 MB, free: 216 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001155/0.2875, allocations: 0.9778 MB / 470.2 MB, free: 15.12 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002145/0.2897, allocations: 1.654 MB / 471.8 MB, free: 13.37 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/0.2897, allocations: 4 kB / 471.8 MB, free: 13.36 MB / 346.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.003014/0.2927, allocations: 2.042 MB / 473.9 MB, free: 11.3 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.693e-05/0.2927, allocations: 8 kB / 473.9 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.701e-05/0.2928, allocations: 16 kB / 473.9 MB, free: 11.28 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005855/0.2934, allocations: 284.9 kB / 474.2 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009647/0.2943, allocations: 259.6 kB / 474.4 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004333/0.2987, allocations: 3.763 MB / 478.2 MB, free: 6.852 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001112/0.2998, allocations: 87.98 kB / 478.3 MB, free: 6.766 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/0.2999, allocations: 51.94 kB / 478.3 MB, free: 6.715 MB / 346.7 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.001469/0.3014, allocations: 0.849 MB / 479.2 MB, free: 5.859 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002422/0.3017, allocations: 130.5 kB / 479.3 MB, free: 5.73 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003645/0.302, allocations: 173.3 kB / 479.5 MB, free: 5.559 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/0.302, allocations: 12 kB / 479.5 MB, free: 5.547 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.765e-05/0.3021, allocations: 7.984 kB / 479.5 MB, free: 5.539 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.3021, allocations: 3.984 kB / 479.5 MB, free: 5.535 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006264/0.3083, allocations: 4.282 MB / 483.8 MB, free: 1.176 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.3084, allocations: 0 / 483.8 MB, free: 1.176 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007713/0.3092, allocations: 183.8 kB / 484 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005378/0.3097, allocations: 280.8 kB / 484.2 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.633e-05/0.3098, allocations: 39.97 kB / 484.3 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004423/0.3142, allocations: 3.698 MB / 488 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.3143, allocations: 4.031 kB / 488 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2052/0.5194, allocations: 14.85 MB / 0.491 GB, free: 67.96 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008191/0.5203, allocations: 366.5 kB / 0.4914 GB, free: 67.87 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001887/0.5205, allocations: 45.53 kB / 0.4914 GB, free: 67.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000653/0.5212, allocations: 76.03 kB / 0.4915 GB, free: 67.87 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003152/0.5215, allocations: 132.2 kB / 0.4916 GB, free: 67.87 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.713e-05/0.5216, allocations: 42.52 kB / 0.4917 GB, free: 67.87 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001093/0.5227, allocations: 0.862 MB / 0.4925 GB, free: 67.76 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5227, allocations: 0.75 kB / 0.4925 GB, free: 67.76 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001653/0.5243, allocations: 0.5708 MB / 0.4931 GB, free: 67.76 MB / 362.7 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.0001892/0.5245, allocations: 159.8 kB / 0.4932 GB, free: 67.68 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002704/0.5273, allocations: 1.821 MB / 0.495 GB, free: 67.53 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.5273, allocations: 1.094 kB / 0.495 GB, free: 67.53 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001858/0.5291, allocations: 1.09 MB / 0.4961 GB, free: 67.38 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001368/0.5305, allocations: 295.9 kB / 0.4963 GB, free: 67.32 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008434/0.539, allocations: 6.683 MB / 0.5029 GB, free: 63.67 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00144/0.5404, allocations: 2.07 MB / 0.5049 GB, free: 62.68 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001063/0.5415, allocations: 387.3 kB / 0.5053 GB, free: 62.64 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002795/0.5418, allocations: 88 kB / 0.5053 GB, free: 62.63 MB / 362.7 MB Notification: Performance of SimCode: time 1.002e-06/0.5418, allocations: 0 / 0.5053 GB, free: 62.63 MB / 362.7 MB Notification: Performance of Templates: time 0.0288/0.5706, allocations: 23.59 MB / 0.5284 GB, free: 40.6 MB / 362.7 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)