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.00562/0.00562, allocations: 98.38 kB / 15.73 MB, free: 6.008 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.353/1.353, allocations: 222.9 MB / 239.4 MB, free: 4.512 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.00144/0.001439, allocations: 180.5 kB / 289.7 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0363/0.0363, allocations: 8.809 MB / 348.7 MB, free: 4.574 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002265/0.002265, allocations: 83.88 kB / 463.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09783/0.1001, allocations: 51.55 MB / 0.5029 GB, free: 9.945 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.00543/0.1056, allocations: 4.072 MB / 0.5069 GB, free: 5.852 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001943/0.1075, allocations: 1.106 MB / 0.508 GB, free: 4.742 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002327/0.1078, allocations: 27.88 kB / 0.508 GB, free: 4.715 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003539/0.1082, allocations: 166.6 kB / 0.5081 GB, free: 4.551 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007254/0.1089, allocations: 278.5 kB / 0.5084 GB, free: 4.277 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003415/0.1093, allocations: 171.7 kB / 0.5086 GB, free: 4.109 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002307/0.1116, allocations: 2.424 MB / 0.5109 GB, free: 1.676 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002591/0.1142, allocations: 2.518 MB / 0.5134 GB, free: 15.09 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001291/0.1155, allocations: 1.168 MB / 0.5145 GB, free: 13.92 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001621/0.1171, allocations: 1.358 MB / 0.5159 GB, free: 12.56 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003985/0.1175, allocations: 319.9 kB / 0.5162 GB, free: 12.25 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005282/0.1181, allocations: 316 kB / 0.5165 GB, free: 11.94 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007471/0.1188, allocations: 0.8376 MB / 0.5173 GB, free: 11.1 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001506/0.1203, allocations: 1.416 MB / 0.5187 GB, free: 9.676 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003805/0.1241, allocations: 4.064 MB / 0.5226 GB, free: 5.598 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.1242, allocations: 4 kB / 0.5226 GB, free: 5.594 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1242, allocations: 0 / 0.5226 GB, free: 5.594 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.201e-05/0.1242, allocations: 0 / 0.5226 GB, free: 5.594 MB / 366.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.005302/0.1295, allocations: 2.931 MB / 0.5255 GB, free: 2.598 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.1296, allocations: 19.91 kB / 0.5255 GB, free: 2.578 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000405/0.13, allocations: 333 kB / 0.5258 GB, free: 2.242 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005364/0.1306, allocations: 287.2 kB / 0.5261 GB, free: 1.961 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002198/0.1328, allocations: 1.503 MB / 0.5276 GB, free: 408 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001355/0.1329, allocations: 176.9 kB / 0.5278 GB, free: 228 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.1765/0.3094, allocations: 235.3 kB / 0.528 GB, free: 22.95 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004852/0.3143, allocations: 3.182 MB / 0.5311 GB, free: 22.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.082e-05/0.3143, allocations: 1.25 kB / 0.5311 GB, free: 22.75 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001842/0.3145, allocations: 99.27 kB / 0.5312 GB, free: 22.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.431e-05/0.3146, allocations: 55.12 kB / 0.5312 GB, free: 22.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003914/0.3185, allocations: 2.648 MB / 0.5338 GB, free: 22.72 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01064/0.3292, allocations: 7.824 MB / 0.5415 GB, free: 21.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002168/0.3314, allocations: 3.082 MB / 0.5445 GB, free: 18.71 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001626/0.333, allocations: 1.057 MB / 0.5455 GB, free: 18.39 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.231e-05/0.3331, allocations: 12.56 kB / 0.5455 GB, free: 18.39 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001256/0.3343, allocations: 0.9827 MB / 0.5465 GB, free: 17.93 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 2.745e-06/0.3344, allocations: 0.9688 kB / 0.5465 GB, free: 17.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=127): time 0.006528/0.3409, allocations: 4.499 MB / 0.5509 GB, free: 15.49 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.449e-05/0.341, allocations: 204.5 kB / 0.5511 GB, free: 15.26 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001338/0.3423, allocations: 1.231 MB / 0.5523 GB, free: 14.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.755e-05/0.3424, allocations: 57.61 kB / 0.5523 GB, free: 14.54 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005346/0.3429, allocations: 0.9818 MB / 0.5533 GB, free: 13.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002014/0.3431, allocations: 444.5 kB / 0.5537 GB, free: 13.45 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003063/0.3434, allocations: 245.5 kB / 0.5539 GB, free: 13.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.524e-05/0.3435, allocations: 357.4 kB / 0.5543 GB, free: 12.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008788/0.3444, allocations: 0.6647 MB / 0.5549 GB, free: 12.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001018/0.3454, allocations: 0.9888 MB / 0.5559 GB, free: 11.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001939/0.3474, allocations: 1.651 MB / 0.5575 GB, free: 10.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.3474, allocations: 3.469 kB / 0.5575 GB, free: 10.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.002637/0.35, allocations: 2.042 MB / 0.5595 GB, free: 9.836 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.3501, allocations: 7.75 kB / 0.5595 GB, free: 9.836 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.537e-05/0.3501, allocations: 7.062 kB / 0.5595 GB, free: 9.836 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005836/0.3507, allocations: 303.3 kB / 0.5598 GB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009106/0.3516, allocations: 263.3 kB / 0.5601 GB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003556/0.3552, allocations: 4.07 MB / 0.564 GB, free: 5.883 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007418/0.3559, allocations: 83.92 kB / 0.5641 GB, free: 5.801 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.732e-05/0.356, allocations: 48 kB / 0.5642 GB, free: 5.754 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.001122/0.3571, allocations: 0.8507 MB / 0.565 GB, free: 4.898 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001505/0.3573, allocations: 135.2 kB / 0.5651 GB, free: 4.766 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002621/0.3576, allocations: 175.3 kB / 0.5653 GB, free: 4.594 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.722e-06/0.3576, allocations: 16 kB / 0.5653 GB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.847e-05/0.3576, allocations: 4 kB / 0.5653 GB, free: 4.574 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/0.3576, allocations: 7.969 kB / 0.5653 GB, free: 4.566 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004878/0.3625, allocations: 4.252 MB / 0.5695 GB, free: 268 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.3625, allocations: 160 / 0.5695 GB, free: 268 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007051/0.3632, allocations: 199.7 kB / 0.5697 GB, free: 68 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005688/0.3638, allocations: 270.5 kB / 0.5699 GB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.946e-05/0.3639, allocations: 43.97 kB / 0.57 GB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004929/0.3688, allocations: 4.027 MB / 0.5739 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.3689, allocations: 0 / 0.5739 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004426/0.3733, allocations: 2.861 MB / 0.5767 GB, free: 8.715 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000636/0.3739, allocations: 368.1 kB / 0.577 GB, free: 8.336 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002016/0.3741, allocations: 47.97 kB / 0.5771 GB, free: 8.289 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000612/0.3748, allocations: 67.94 kB / 0.5771 GB, free: 8.223 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002718/0.375, allocations: 132.8 kB / 0.5773 GB, free: 8.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.993e-05/0.3751, allocations: 35.98 kB / 0.5773 GB, free: 8.055 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001188/0.3763, allocations: 0.8656 MB / 0.5782 GB, free: 7.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3763, allocations: 4 kB / 0.5782 GB, free: 7.176 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001395/0.3777, allocations: 440 kB / 0.5786 GB, free: 6.746 MB / 382.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.004675/0.3824, allocations: 3.457 MB / 0.582 GB, free: 3.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003171/0.3856, allocations: 1.839 MB / 0.5838 GB, free: 1.402 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.229e-06/0.3856, allocations: 4 kB / 0.5838 GB, free: 1.398 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001757/0.3874, allocations: 1.085 MB / 0.5848 GB, free: 312 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001258/0.3887, allocations: 313.4 kB / 0.5851 GB, free: 20 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02283/0.4115, allocations: 15.92 MB / 0.6007 GB, free: 15.7 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001855/0.4134, allocations: 2.019 MB / 0.6026 GB, free: 13.64 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008949/0.4143, allocations: 366.3 kB / 0.603 GB, free: 13.28 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009742/0.4153, allocations: 0.757 MB / 0.6037 GB, free: 12.52 MB / 414.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4153, allocations: 0 / 0.6037 GB, free: 12.52 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07941/0.4947, allocations: 37.37 MB / 0.6402 GB, free: 7.441 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.63/12.13, allocations: 10.52 kB / 0.6402 GB, free: 7.434 MB / 446.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)