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.004644/0.004644, allocations: 102.9 kB / 15.73 MB, free: 6.043 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: 222.9 MB / 239.4 MB, free: 4.543 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.001395/0.001396, allocations: 188.4 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03328/0.03328, allocations: 8.791 MB / 348.7 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 83.86 kB / 463.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1092, allocations: 51.55 MB / 0.5029 GB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.00536/0.1146, allocations: 4.079 MB / 0.5069 GB, free: 5.902 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002024/0.1167, allocations: 1.106 MB / 0.508 GB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002453/0.1169, allocations: 27.88 kB / 0.508 GB, free: 4.766 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003553/0.1173, allocations: 166.6 kB / 0.5081 GB, free: 4.602 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000776/0.1181, allocations: 282.5 kB / 0.5084 GB, free: 4.324 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003406/0.1185, allocations: 167.7 kB / 0.5086 GB, free: 4.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002116/0.1206, allocations: 2.424 MB / 0.5109 GB, free: 1.727 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002456/0.123, allocations: 2.522 MB / 0.5134 GB, free: 15.14 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001337/0.1244, allocations: 1.164 MB / 0.5145 GB, free: 13.97 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001794/0.1262, allocations: 1.35 MB / 0.5159 GB, free: 12.62 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004366/0.1266, allocations: 316 kB / 0.5162 GB, free: 12.31 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005544/0.1272, allocations: 320 kB / 0.5165 GB, free: 12 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007681/0.128, allocations: 0.8493 MB / 0.5173 GB, free: 11.14 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001917/0.1299, allocations: 1.423 MB / 0.5187 GB, free: 9.715 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003359/0.1333, allocations: 4.031 MB / 0.5226 GB, free: 5.672 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.1333, allocations: 4 kB / 0.5226 GB, free: 5.668 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1333, allocations: 0 / 0.5226 GB, free: 5.668 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.399e-05/0.1334, allocations: 0 / 0.5226 GB, free: 5.668 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.005541/0.1389, allocations: 2.871 MB / 0.5254 GB, free: 2.734 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.619e-05/0.139, allocations: 12.03 kB / 0.5254 GB, free: 2.723 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004254/0.1394, allocations: 333 kB / 0.5258 GB, free: 2.387 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005623/0.14, allocations: 273.7 kB / 0.526 GB, free: 2.117 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00307/0.1431, allocations: 1.498 MB / 0.5275 GB, free: 0.5586 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000172/0.1433, allocations: 176.9 kB / 0.5277 GB, free: 392 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000362/0.1436, allocations: 239.8 kB / 0.5279 GB, free: 152 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2425/0.3862, allocations: 3.178 MB / 0.531 GB, free: 22.72 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.92e-05/0.3863, allocations: 4.578 kB / 0.531 GB, free: 22.72 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001984/0.3865, allocations: 96.91 kB / 0.5311 GB, free: 22.72 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.894e-05/0.3865, allocations: 54.72 kB / 0.5311 GB, free: 22.72 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004643/0.3912, allocations: 2.648 MB / 0.5337 GB, free: 22.69 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01403/0.4052, allocations: 7.792 MB / 0.5413 GB, free: 21.21 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002557/0.4078, allocations: 3.083 MB / 0.5443 GB, free: 18.74 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001828/0.4097, allocations: 1.06 MB / 0.5454 GB, free: 18.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.941e-05/0.4097, allocations: 15.67 kB / 0.5454 GB, free: 18.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001485/0.4112, allocations: 0.981 MB / 0.5463 GB, free: 17.99 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 3.346e-06/0.4112, allocations: 0 / 0.5463 GB, free: 17.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=127): time 0.007329/0.4186, allocations: 4.482 MB / 0.5507 GB, free: 15.47 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.359e-05/0.4187, allocations: 196.7 kB / 0.5509 GB, free: 15.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001675/0.4204, allocations: 1.227 MB / 0.5521 GB, free: 14.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.928e-05/0.4205, allocations: 57.94 kB / 0.5522 GB, free: 14.53 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007174/0.4212, allocations: 0.9555 MB / 0.5531 GB, free: 13.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002692/0.4215, allocations: 429.4 kB / 0.5535 GB, free: 13.35 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003497/0.4219, allocations: 244.7 kB / 0.5537 GB, free: 13.22 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.183e-05/0.422, allocations: 357.7 kB / 0.5541 GB, free: 12.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009669/0.4229, allocations: 0.6646 MB / 0.5547 GB, free: 12.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001117/0.4241, allocations: 0.9861 MB / 0.5557 GB, free: 11.83 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002136/0.4262, allocations: 1.649 MB / 0.5573 GB, free: 10.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/0.4262, allocations: 6.281 kB / 0.5573 GB, free: 10.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.002946/0.4292, allocations: 2.041 MB / 0.5593 GB, free: 9.742 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.911e-05/0.4292, allocations: 8.875 kB / 0.5593 GB, free: 9.742 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.93e-05/0.4292, allocations: 9.375 kB / 0.5593 GB, free: 9.742 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000644/0.4299, allocations: 294 kB / 0.5596 GB, free: 9.613 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009588/0.4309, allocations: 263.7 kB / 0.5599 GB, free: 9.547 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004469/0.4353, allocations: 4.067 MB / 0.5638 GB, free: 5.879 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008365/0.4362, allocations: 79.94 kB / 0.5639 GB, free: 5.801 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.956e-05/0.4363, allocations: 47.98 kB / 0.5639 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.001188/0.4375, allocations: 0.8479 MB / 0.5648 GB, free: 4.898 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001756/0.4376, allocations: 134.4 kB / 0.5649 GB, free: 4.766 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002328/0.4379, allocations: 169.3 kB / 0.5651 GB, free: 4.598 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/0.4379, allocations: 15.94 kB / 0.5651 GB, free: 4.582 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.392e-05/0.4379, allocations: 4 kB / 0.5651 GB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.4379, allocations: 7.969 kB / 0.5651 GB, free: 4.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00589/0.4438, allocations: 4.257 MB / 0.5692 GB, free: 272 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.4439, allocations: 4 kB / 0.5693 GB, free: 268 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007464/0.4446, allocations: 195.8 kB / 0.5694 GB, free: 72 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005863/0.4452, allocations: 274.5 kB / 0.5697 GB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001061/0.4453, allocations: 43.97 kB / 0.5697 GB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00489/0.4502, allocations: 4.019 MB / 0.5737 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.4503, allocations: 6.938 kB / 0.5737 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004438/0.4547, allocations: 2.845 MB / 0.5765 GB, free: 8.73 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000943/0.4557, allocations: 363.4 kB / 0.5768 GB, free: 8.355 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003189/0.456, allocations: 51.97 kB / 0.5768 GB, free: 8.305 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007545/0.4567, allocations: 67.94 kB / 0.5769 GB, free: 8.238 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002869/0.457, allocations: 128.8 kB / 0.577 GB, free: 8.109 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.689e-05/0.4572, allocations: 39.98 kB / 0.5771 GB, free: 8.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001427/0.4586, allocations: 0.8656 MB / 0.5779 GB, free: 7.195 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4586, allocations: 0 / 0.5779 GB, free: 7.195 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001634/0.4602, allocations: 439.9 kB / 0.5783 GB, free: 6.766 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.004918/0.4652, allocations: 3.446 MB / 0.5817 GB, free: 3.277 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00337/0.4685, allocations: 1.837 MB / 0.5835 GB, free: 1.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.209e-06/0.4686, allocations: 0 / 0.5835 GB, free: 1.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001853/0.4704, allocations: 1.088 MB / 0.5846 GB, free: 344 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001557/0.472, allocations: 309.6 kB / 0.5849 GB, free: 60 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02616/0.4982, allocations: 15.83 MB / 0.6003 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002816/0.501, allocations: 2.015 MB / 0.6023 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001468/0.5025, allocations: 374.3 kB / 0.6026 GB, free: 13.4 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001499/0.5041, allocations: 0.7531 MB / 0.6034 GB, free: 12.64 MB / 414.1 MB Notification: Performance of SimCode: time 2.424e-06/0.5041, allocations: 0 / 0.6034 GB, free: 12.64 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1048/0.6089, allocations: 36.65 MB / 0.6392 GB, free: 8.289 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.18/12.79, allocations: 7.641 kB / 0.6392 GB, free: 8.281 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)