Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001542/0.001542, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001714/0.001714, allocations: 212.9 kB / 24.52 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.435/1.435, allocations: 230.6 MB / 258.3 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DemoPowerSupplyWithBuffer",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DemoPowerSupplyWithBuffer",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 43.94 kB / 378.5 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2498/0.2513, allocations: 53.37 MB / 431.9 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.004016/0.2553, allocations: 2.488 MB / 434.4 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001204/0.2565, allocations: 0.635 MB / 435 MB, free: 3.543 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001236/0.2567, allocations: 7.938 kB / 435 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001427/0.2568, allocations: 35.64 kB / 435 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001599/0.257, allocations: 79.34 kB / 435.1 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003027/0.2573, allocations: 95.8 kB / 435.2 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004508/0.2577, allocations: 366.6 kB / 435.6 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001727/0.2579, allocations: 57.14 kB / 435.6 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001838/0.2581, allocations: 143.5 kB / 435.8 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002225/0.2583, allocations: 151.4 kB / 435.9 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.768e-05/0.2584, allocations: 36 kB / 435.9 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.968e-05/0.2584, allocations: 32 kB / 436 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.469e-05/0.2585, allocations: 63.75 kB / 436 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001606/0.2587, allocations: 123.4 kB / 436.2 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004104/0.2591, allocations: 338.6 kB / 436.5 MB, free: 2.035 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2591, allocations: 0 / 436.5 MB, free: 2.035 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2591, allocations: 0 / 436.5 MB, free: 2.035 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.2591, allocations: 0 / 436.5 MB, free: 2.035 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001104/0.2602, allocations: 0.5672 MB / 437.1 MB, free: 1.426 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.2602, allocations: 8.031 kB / 437.1 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.697e-05/0.2602, allocations: 4.625 kB / 437.1 MB, free: 1.414 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.164e-05/0.2603, allocations: 66.72 kB / 437.1 MB, free: 1.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.766e-05/0.2604, allocations: 36.75 kB / 437.2 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003661/0.2607, allocations: 195.3 kB / 437.4 MB, free: 1.09 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001354/0.2609, allocations: 153.5 kB / 437.5 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.301e-05/0.2609, allocations: 28.12 kB / 437.5 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005687/0.2615, allocations: 338.8 kB / 437.9 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.899e-06/0.2615, allocations: 0 / 437.9 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.837e-05/0.2615, allocations: 11.98 kB / 437.9 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.2615, allocations: 4 kB / 437.9 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000514/0.2621, allocations: 197.6 kB / 438.1 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001315/0.2634, allocations: 0.7611 MB / 438.8 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004959/0.2639, allocations: 190.7 kB / 439 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003111/0.2642, allocations: 112.8 kB / 439.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.968e-05/0.2642, allocations: 4 kB / 439.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004509/0.2647, allocations: 262.8 kB / 439.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.483e-06/0.2647, allocations: 0 / 439.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001433/0.2661, allocations: 425.1 kB / 439.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.968e-05/0.2662, allocations: 106.8 kB / 439.9 MB, free: 14.33 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002149/0.2664, allocations: 206.8 kB / 440.1 MB, free: 14.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.768e-05/0.2664, allocations: 33.7 kB / 440.2 MB, free: 14.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/0.2666, allocations: 148.4 kB / 440.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.55e-05/0.2666, allocations: 71.42 kB / 440.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001184/0.2668, allocations: 53.94 kB / 440.4 MB, free: 13.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001971/0.2669, allocations: 334.8 kB / 440.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003219/0.2673, allocations: 151.6 kB / 440.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003694/0.2676, allocations: 232.9 kB / 441.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005183/0.2682, allocations: 247.1 kB / 441.4 MB, free: 12.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.2682, allocations: 3.938 kB / 441.4 MB, free: 12.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000862/0.269, allocations: 466.9 kB / 441.8 MB, free: 12.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.185e-05/0.2691, allocations: 67.39 kB / 441.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.2691, allocations: 0 / 441.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003678/0.2695, allocations: 100.7 kB / 442 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001816/0.2696, allocations: 36 kB / 442 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002519/0.2722, allocations: 1.956 MB / 444 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004629/0.2726, allocations: 71.92 kB / 444.1 MB, free: 9.941 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.236e-05/0.2727, allocations: 16 kB / 444.1 MB, free: 9.926 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 (dcPowerSupply.cp,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,diode.off,dcPowerSupply.cc,dcPowerSupply.cv,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 2 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001693/0.2728, allocations: 129.8 kB / 444.2 MB, free: 9.789 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.324e-05/0.2729, allocations: 27.8 kB / 444.2 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.791e-05/0.2729, allocations: 33.8 kB / 444.3 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.2729, allocations: 4 kB / 444.3 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/0.2729, allocations: 0 / 444.3 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.2729, allocations: 0 / 444.3 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004804/0.2734, allocations: 398.2 kB / 444.6 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.2734, allocations: 0 / 444.6 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001542/0.2736, allocations: 27.97 kB / 444.7 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000256/0.2738, allocations: 108.8 kB / 444.8 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.902e-05/0.2739, allocations: 4 kB / 444.8 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002266/0.2761, allocations: 1.954 MB / 446.7 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.2761, allocations: 0 / 446.7 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008961/0.277, allocations: 413.2 kB / 447.1 MB, free: 6.652 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.257e-05/0.2771, allocations: 27.92 kB / 447.2 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.677e-05/0.2771, allocations: 8 kB / 447.2 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002102/0.2773, allocations: 24.09 kB / 447.2 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.596e-05/0.2774, allocations: 27.95 kB / 447.2 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.963e-05/0.2775, allocations: 7.984 kB / 447.2 MB, free: 6.559 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001453/0.2776, allocations: 148.5 kB / 447.4 MB, free: 6.414 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2776, allocations: 0 / 447.4 MB, free: 6.414 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004158/0.278, allocations: 91.89 kB / 447.5 MB, free: 6.324 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (bufferCapacitor.v) * Number of discrete variables: 6 ($whenCondition1,dcPowerSupply.cv,dcPowerSupply.cc,diode.off,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00125/0.2793, allocations: 0.9419 MB / 448.4 MB, free: 5.348 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001003/0.2803, allocations: 0.5181 MB / 448.9 MB, free: 4.781 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.2803, allocations: 4 kB / 448.9 MB, free: 4.777 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000461/0.2807, allocations: 245.5 kB / 449.2 MB, free: 4.527 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003623/0.2811, allocations: 60 kB / 449.2 MB, free: 4.469 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004449/0.2855, allocations: 2.951 MB / 452.2 MB, free: 1.348 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001368/0.2857, allocations: 142.1 kB / 452.3 MB, free: 1.188 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.547e-05/0.2858, allocations: 17.94 kB / 452.3 MB, free: 1.172 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001119/0.2859, allocations: 71.41 kB / 452.4 MB, free: 1.102 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2859, allocations: 4 kB / 452.4 MB, free: 1.098 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0356/0.3215, allocations: 7.409 MB / 459.8 MB, free: 9.902 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.68/13, allocations: 11.48 kB / 459.8 MB, free: 9.895 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DemoPowerSupplyWithBuffer_fmu --startTime=0 --stopTime=1 --stepSize=1.00001e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DemoPowerSupplyWithBuffer.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.697987110936083] Failed to read output from testmodel.py, exit status != 0: ['time', 'dcPowerSupply.v', 'dcPowerSupply.i', 'bufferCapacitor.v', 'bufferCapacitor.i'] 13.17356559005566 13.196906862 12.933440162 Calling exit ...