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.005738/0.005738, allocations: 102 kB / 15.73 MB, free: 6.039 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.412/1.412, allocations: 222.9 MB / 239.4 MB, free: 4.539 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.001391/0.001391, allocations: 192.5 kB / 289.7 MB, free: 2.262 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03711/0.03711, allocations: 8.794 MB / 348.7 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001642/0.001642, allocations: 79.88 kB / 463.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1108, allocations: 51.56 MB / 0.5029 GB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.005628/0.1165, allocations: 4.062 MB / 0.5069 GB, free: 5.922 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002365/0.1189, allocations: 1.114 MB / 0.508 GB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005064/0.1194, allocations: 23.88 kB / 0.508 GB, free: 4.781 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004421/0.1199, allocations: 170.6 kB / 0.5081 GB, free: 4.613 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009939/0.1209, allocations: 278.5 kB / 0.5084 GB, free: 4.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005063/0.1214, allocations: 171.7 kB / 0.5086 GB, free: 4.172 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002775/0.1242, allocations: 2.424 MB / 0.5109 GB, free: 1.738 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003369/0.1276, allocations: 2.518 MB / 0.5134 GB, free: 15.16 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001788/0.1294, allocations: 1.168 MB / 0.5145 GB, free: 13.98 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002133/0.1315, allocations: 1.354 MB / 0.5159 GB, free: 12.62 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008455/0.1324, allocations: 312 kB / 0.5162 GB, free: 12.32 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00107/0.1335, allocations: 324 kB / 0.5165 GB, free: 12 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001067/0.1346, allocations: 0.8415 MB / 0.5173 GB, free: 11.16 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002352/0.1369, allocations: 1.423 MB / 0.5187 GB, free: 9.73 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003865/0.1408, allocations: 4.035 MB / 0.5226 GB, free: 5.684 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1408, allocations: 4 kB / 0.5226 GB, free: 5.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1408, allocations: 0 / 0.5226 GB, free: 5.68 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001184/0.141, allocations: 0 / 0.5226 GB, free: 5.68 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.006164/0.1471, allocations: 2.875 MB / 0.5254 GB, free: 2.742 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.1472, allocations: 8.031 kB / 0.5254 GB, free: 2.734 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004534/0.1476, allocations: 337 kB / 0.5258 GB, free: 2.395 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005455/0.1482, allocations: 277.7 kB / 0.526 GB, free: 2.121 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002313/0.1505, allocations: 1.494 MB / 0.5275 GB, free: 0.5664 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001379/0.1507, allocations: 184.9 kB / 0.5277 GB, free: 392 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003093/0.151, allocations: 235.8 kB / 0.5279 GB, free: 156 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2402/0.3912, allocations: 3.18 MB / 0.531 GB, free: 22.74 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.964e-05/0.3913, allocations: 5.312 kB / 0.531 GB, free: 22.74 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001918/0.3915, allocations: 95.02 kB / 0.5311 GB, free: 22.74 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.012e-05/0.3916, allocations: 55.66 kB / 0.5311 GB, free: 22.74 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004273/0.3959, allocations: 2.649 MB / 0.5337 GB, free: 22.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0131/0.409, allocations: 7.795 MB / 0.5413 GB, free: 21.23 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002317/0.4113, allocations: 3.079 MB / 0.5443 GB, free: 18.76 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001704/0.4131, allocations: 1.061 MB / 0.5454 GB, free: 18.43 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.769e-05/0.4131, allocations: 15.05 kB / 0.5454 GB, free: 18.43 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001315/0.4145, allocations: 0.9843 MB / 0.5464 GB, free: 18.01 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 2.605e-06/0.4145, allocations: 0 / 0.5464 GB, free: 18.01 MB / 366.1 MB Notification: Performance of matching and sorting (n=127): time 0.006864/0.4213, allocations: 4.473 MB / 0.5507 GB, free: 15.51 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.7e-05/0.4214, allocations: 201.1 kB / 0.5509 GB, free: 15.28 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00154/0.423, allocations: 1.227 MB / 0.5521 GB, free: 14.62 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.731e-05/0.4231, allocations: 57.44 kB / 0.5522 GB, free: 14.56 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006291/0.4237, allocations: 0.9524 MB / 0.5531 GB, free: 13.75 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002368/0.424, allocations: 435.3 kB / 0.5535 GB, free: 13.38 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003099/0.4243, allocations: 243.6 kB / 0.5537 GB, free: 13.25 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.149e-05/0.4244, allocations: 358.4 kB / 0.5541 GB, free: 12.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009096/0.4253, allocations: 0.6644 MB / 0.5547 GB, free: 12.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001026/0.4263, allocations: 0.9851 MB / 0.5557 GB, free: 11.86 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0019/0.4282, allocations: 1.65 MB / 0.5573 GB, free: 10.83 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.4282, allocations: 1.219 kB / 0.5573 GB, free: 10.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.002712/0.431, allocations: 2.038 MB / 0.5593 GB, free: 9.777 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.431, allocations: 8.25 kB / 0.5593 GB, free: 9.777 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.451e-05/0.431, allocations: 12.19 kB / 0.5593 GB, free: 9.773 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005427/0.4316, allocations: 292.9 kB / 0.5596 GB, free: 9.645 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009429/0.4325, allocations: 262.7 kB / 0.5599 GB, free: 9.578 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003796/0.4363, allocations: 4.071 MB / 0.5638 GB, free: 5.848 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008886/0.4372, allocations: 79.94 kB / 0.5639 GB, free: 5.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.154e-05/0.4373, allocations: 49.86 kB / 0.564 GB, free: 5.723 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.001094/0.4384, allocations: 0.8429 MB / 0.5648 GB, free: 4.871 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001824/0.4386, allocations: 138.4 kB / 0.5649 GB, free: 4.734 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002416/0.4389, allocations: 169.3 kB / 0.5651 GB, free: 4.566 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.4389, allocations: 15.94 kB / 0.5651 GB, free: 4.551 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-05/0.4389, allocations: 4 kB / 0.5651 GB, free: 4.547 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.079e-05/0.4389, allocations: 7.969 kB / 0.5651 GB, free: 4.539 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005094/0.444, allocations: 4.268 MB / 0.5693 GB, free: 232 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.444, allocations: 0 / 0.5693 GB, free: 232 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007246/0.4448, allocations: 191.8 kB / 0.5694 GB, free: 40 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000551/0.4453, allocations: 268.7 kB / 0.5697 GB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.63e-05/0.4454, allocations: 43.97 kB / 0.5697 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004629/0.4501, allocations: 4.016 MB / 0.5737 GB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/0.4501, allocations: 8.016 kB / 0.5737 GB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00416/0.4543, allocations: 2.845 MB / 0.5765 GB, free: 8.699 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007223/0.455, allocations: 363.4 kB / 0.5768 GB, free: 8.324 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002916/0.4553, allocations: 43.98 kB / 0.5768 GB, free: 8.281 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007412/0.456, allocations: 76.67 kB / 0.5769 GB, free: 8.207 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000295/0.4564, allocations: 128.8 kB / 0.577 GB, free: 8.078 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.66e-05/0.4564, allocations: 39.98 kB / 0.5771 GB, free: 8.039 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001474/0.4579, allocations: 0.8617 MB / 0.5779 GB, free: 7.168 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4579, allocations: 4 kB / 0.5779 GB, free: 7.164 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001843/0.4598, allocations: 439.9 kB / 0.5783 GB, free: 6.734 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.00497/0.4648, allocations: 3.453 MB / 0.5817 GB, free: 3.246 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0034/0.4682, allocations: 1.836 MB / 0.5835 GB, free: 1.398 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.882e-06/0.4682, allocations: 4.938 kB / 0.5835 GB, free: 1.395 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001863/0.4701, allocations: 1.084 MB / 0.5846 GB, free: 312 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001568/0.4716, allocations: 310.9 kB / 0.5849 GB, free: 24 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02708/0.4987, allocations: 15.82 MB / 0.6003 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001965/0.5007, allocations: 2.023 MB / 0.6023 GB, free: 13.73 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009449/0.5017, allocations: 370.3 kB / 0.6026 GB, free: 13.37 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000998/0.5027, allocations: 0.7492 MB / 0.6034 GB, free: 12.62 MB / 414.1 MB Notification: Performance of SimCode: time 8.51e-07/0.5027, allocations: 0 / 0.6034 GB, free: 12.62 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1008/0.6036, allocations: 37.67 MB / 0.6402 GB, free: 7.246 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.76/12.36, allocations: 19.62 kB / 0.6402 GB, free: 7.227 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)