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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001352/0.001352, allocations: 109 kB / 16.45 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.489/1.489, allocations: 225.6 MB / 244.8 MB, free: 14.16 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001998/0.001998, allocations: 193.3 kB / 299.8 MB, free: 9.797 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04152/0.04152, allocations: 8.934 MB / 363.6 MB, free: 10.14 MB / 302.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002447/0.002447, allocations: 81.7 kB / 486.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1246, allocations: 54.41 MB / 0.5278 GB, free: 1.168 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.StarPolygon): time 0.00661/0.1312, allocations: 4.08 MB / 0.5318 GB, free: 13.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002641/0.1339, allocations: 1.118 MB / 0.5329 GB, free: 11.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000381/0.1343, allocations: 27.88 kB / 0.5329 GB, free: 11.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004456/0.1347, allocations: 174.7 kB / 0.5331 GB, free: 11.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009621/0.1357, allocations: 282.4 kB / 0.5333 GB, free: 11.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000442/0.1361, allocations: 175.7 kB / 0.5335 GB, free: 11.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002706/0.1388, allocations: 2.42 MB / 0.5359 GB, free: 8.867 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002338/0.1412, allocations: 1.863 MB / 0.5377 GB, free: 6.941 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001716/0.1429, allocations: 1.168 MB / 0.5388 GB, free: 5.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002345/0.1452, allocations: 1.378 MB / 0.5402 GB, free: 4.387 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005202/0.1457, allocations: 316 kB / 0.5405 GB, free: 4.078 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006791/0.1464, allocations: 324 kB / 0.5408 GB, free: 3.762 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008891/0.1473, allocations: 0.8493 MB / 0.5416 GB, free: 2.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002018/0.1493, allocations: 1.416 MB / 0.543 GB, free: 1.488 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005019/0.1543, allocations: 4.057 MB / 0.547 GB, free: 13.42 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.1543, allocations: 0 / 0.547 GB, free: 13.42 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1543, allocations: 3.938 kB / 0.547 GB, free: 13.42 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001263/0.1545, allocations: 4 kB / 0.547 GB, free: 13.41 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.007415/0.1619, allocations: 2.942 MB / 0.5498 GB, free: 10.41 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.373e-05/0.162, allocations: 11.97 kB / 0.5499 GB, free: 10.39 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007608/0.1627, allocations: 337 kB / 0.5502 GB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009789/0.1637, allocations: 291.2 kB / 0.5505 GB, free: 9.77 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004826/0.1685, allocations: 1.499 MB / 0.5519 GB, free: 8.211 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002653/0.1688, allocations: 168.9 kB / 0.5521 GB, free: 8.043 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006777/0.1695, allocations: 243.9 kB / 0.5523 GB, free: 7.805 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006371/0.1758, allocations: 3.182 MB / 0.5554 GB, free: 4.543 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.591e-05/0.1759, allocations: 4 kB / 0.5554 GB, free: 4.539 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002275/0.1761, allocations: 99.98 kB / 0.5555 GB, free: 4.441 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.052e-05/0.1762, allocations: 60 kB / 0.5556 GB, free: 4.383 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005041/0.1812, allocations: 2.641 MB / 0.5582 GB, free: 1.727 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01557/0.1968, allocations: 7.821 MB / 0.5658 GB, free: 9.746 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003396/0.2002, allocations: 3.011 MB / 0.5687 GB, free: 6.387 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001797/0.202, allocations: 1.006 MB / 0.5697 GB, free: 5.379 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.651e-05/0.202, allocations: 28.91 kB / 0.5697 GB, free: 5.348 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002053/0.2041, allocations: 0.9723 MB / 0.5707 GB, free: 4.344 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 2.745e-06/0.2041, allocations: 0 / 0.5707 GB, free: 4.344 MB / 382.1 MB Notification: Performance of matching and sorting (n=127): time 0.009255/0.2134, allocations: 4.497 MB / 0.5751 GB, free: 15.8 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000162/0.2135, allocations: 209.1 kB / 0.5753 GB, free: 15.56 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002119/0.2156, allocations: 1.227 MB / 0.5765 GB, free: 14.31 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001335/0.2158, allocations: 61.69 kB / 0.5765 GB, free: 14.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001063/0.2168, allocations: 0.9771 MB / 0.5775 GB, free: 13.26 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000419/0.2172, allocations: 448.2 kB / 0.5779 GB, free: 12.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003939/0.2176, allocations: 246.9 kB / 0.5782 GB, free: 12.57 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001946/0.2178, allocations: 357.9 kB / 0.5785 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001211/0.219, allocations: 0.6583 MB / 0.5791 GB, free: 11.55 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001515/0.2206, allocations: 0.9892 MB / 0.5801 GB, free: 10.45 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002552/0.2231, allocations: 1.643 MB / 0.5817 GB, free: 8.703 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.724e-06/0.2231, allocations: 4 kB / 0.5817 GB, free: 8.699 MB / 398.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.003635/0.2268, allocations: 2.031 MB / 0.5837 GB, free: 6.66 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.532e-05/0.2268, allocations: 10.5 kB / 0.5837 GB, free: 6.652 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.365e-05/0.2268, allocations: 8 kB / 0.5837 GB, free: 6.645 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000693/0.2275, allocations: 297.2 kB / 0.584 GB, free: 6.352 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001025/0.2285, allocations: 259.6 kB / 0.5842 GB, free: 6.098 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005468/0.234, allocations: 4.078 MB / 0.5882 GB, free: 1.875 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001151/0.2351, allocations: 75.94 kB / 0.5883 GB, free: 1.801 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.958e-05/0.2352, allocations: 55.92 kB / 0.5884 GB, free: 1.746 MB / 398.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.001729/0.237, allocations: 0.8468 MB / 0.5892 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003345/0.2373, allocations: 143.1 kB / 0.5893 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003842/0.2377, allocations: 169.3 kB / 0.5895 GB, free: 0.582 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.755e-05/0.2377, allocations: 15.94 kB / 0.5895 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.58e-05/0.2377, allocations: 4 kB / 0.5895 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.382e-05/0.2377, allocations: 7.969 kB / 0.5895 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008187/0.2459, allocations: 4.253 MB / 0.5937 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.294e-06/0.2459, allocations: 160 / 0.5937 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008509/0.2468, allocations: 187.8 kB / 0.5938 GB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006275/0.2474, allocations: 276.7 kB / 0.5941 GB, free: 11.77 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001077/0.2475, allocations: 48.03 kB / 0.5942 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005265/0.2528, allocations: 4.017 MB / 0.5981 GB, free: 7.566 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.2528, allocations: 0 / 0.5981 GB, free: 7.566 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004712/0.2575, allocations: 2.849 MB / 0.6009 GB, free: 4.68 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009601/0.2585, allocations: 368.1 kB / 0.6012 GB, free: 4.301 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002035/0.2587, allocations: 43.98 kB / 0.6012 GB, free: 4.258 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006513/0.2593, allocations: 71.92 kB / 0.6013 GB, free: 4.188 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002901/0.2596, allocations: 136.8 kB / 0.6014 GB, free: 4.055 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.567e-05/0.2597, allocations: 35.98 kB / 0.6015 GB, free: 4.02 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001298/0.261, allocations: 0.8617 MB / 0.6023 GB, free: 3.148 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.261, allocations: 4 kB / 0.6023 GB, free: 3.145 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001444/0.2624, allocations: 436 kB / 0.6027 GB, free: 2.719 MB / 414.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.004946/0.2674, allocations: 3.447 MB / 0.6061 GB, free: 15.23 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00335/0.2707, allocations: 1.79 MB / 0.6079 GB, free: 13.42 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.281e-06/0.2707, allocations: 0 / 0.6079 GB, free: 13.42 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001853/0.2726, allocations: 1.034 MB / 0.6089 GB, free: 12.38 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001495/0.2741, allocations: 300.8 kB / 0.6092 GB, free: 12.08 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02678/0.3009, allocations: 15.89 MB / 0.6247 GB, free: 11.77 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00203/0.3029, allocations: 2.035 MB / 0.6267 GB, free: 9.699 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001096/0.304, allocations: 366.3 kB / 0.627 GB, free: 9.336 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001036/0.305, allocations: 0.7492 MB / 0.6277 GB, free: 8.586 MB / 446.1 MB Notification: Performance of SimCode: time 1.543e-06/0.305, allocations: 0 / 0.6277 GB, free: 8.586 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3129/0.6179, allocations: 37.64 MB / 0.6645 GB, free: 111 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.32/12.93, allocations: 1.406 kB / 0.6645 GB, free: 111 MB / 462.1 MB " [Timeout remaining time 647] (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 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Electrical_StarPolygon.fmu > HanserModelica_HanserModelica.Electrical.StarPolygon.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.169810039922595] Failed to read output from testmodel.py, exit status != 0: 13.268296380992979 13.092323193 12.935872082 Calling exit ...