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.001262/0.001262, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001348/0.001348, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.389/1.389, allocations: 230.6 MB / 258.3 MB, free: 8.027 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.001486/0.001486, allocations: 43.94 kB / 378.6 MB, free: 3.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2571/0.2586, allocations: 53.36 MB / 431.9 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.004211/0.2628, allocations: 2.654 MB / 434.6 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001371/0.2642, allocations: 0.6895 MB / 435.3 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001192/0.2643, allocations: 3.938 kB / 435.3 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001461/0.2645, allocations: 39.64 kB / 435.3 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001593/0.2646, allocations: 75.28 kB / 435.4 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000285/0.2649, allocations: 99.86 kB / 435.5 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004385/0.2654, allocations: 354.7 kB / 435.8 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001729/0.2655, allocations: 69.12 kB / 435.9 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001854/0.2657, allocations: 139.5 kB / 436 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002295/0.2659, allocations: 155.3 kB / 436.2 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.248e-05/0.266, allocations: 28 kB / 436.2 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.252e-05/0.266, allocations: 32 kB / 436.3 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.521e-05/0.2661, allocations: 59.83 kB / 436.3 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001578/0.2663, allocations: 155.2 kB / 436.5 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003955/0.2667, allocations: 330.7 kB / 436.8 MB, free: 2.012 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2667, allocations: 0 / 436.8 MB, free: 2.012 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2667, allocations: 0 / 436.8 MB, free: 2.012 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.133e-06/0.2667, allocations: 0 / 436.8 MB, free: 2.012 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.001173/0.2679, allocations: 0.575 MB / 437.4 MB, free: 1.395 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.2679, allocations: 15.97 kB / 437.4 MB, free: 1.379 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.612e-05/0.2679, allocations: 4.625 kB / 437.4 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.904e-05/0.268, allocations: 54.73 kB / 437.4 MB, free: 1.312 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.018e-05/0.2681, allocations: 32.75 kB / 437.5 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003832/0.2684, allocations: 195.3 kB / 437.7 MB, free: 1.066 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001585/0.2686, allocations: 153.5 kB / 437.8 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.892e-05/0.2687, allocations: 28.11 kB / 437.8 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005344/0.2692, allocations: 257.8 kB / 438.1 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.2692, allocations: 0 / 438.1 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.278e-05/0.2692, allocations: 12 kB / 438.1 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.346e-06/0.2692, allocations: 4 kB / 438.1 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005252/0.2698, allocations: 201.6 kB / 438.3 MB, free: 392 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001387/0.2712, allocations: 0.8274 MB / 439.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005033/0.2717, allocations: 186.7 kB / 439.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003063/0.272, allocations: 116.7 kB / 439.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.798e-05/0.272, allocations: 0 / 439.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003945/0.2724, allocations: 183.5 kB / 439.6 MB, free: 14.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.333e-06/0.2724, allocations: 0 / 439.6 MB, free: 14.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001456/0.2738, allocations: 421.3 kB / 440 MB, free: 14.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/0.2739, allocations: 110.8 kB / 440.1 MB, free: 14.44 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002352/0.2742, allocations: 202.8 kB / 440.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.515e-05/0.2742, allocations: 37.69 kB / 440.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.2743, allocations: 152.4 kB / 440.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.671e-05/0.2744, allocations: 67.42 kB / 440.6 MB, free: 13.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001189/0.2745, allocations: 57.92 kB / 440.6 MB, free: 13.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001865/0.2747, allocations: 326.8 kB / 440.9 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002887/0.275, allocations: 104.2 kB / 441 MB, free: 13.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002991/0.2753, allocations: 143.7 kB / 441.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005395/0.2759, allocations: 251.1 kB / 441.4 MB, free: 13.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/0.2759, allocations: 3.938 kB / 441.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008313/0.2767, allocations: 395.5 kB / 441.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.098e-05/0.2768, allocations: 63.39 kB / 441.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.2768, allocations: 0 / 441.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003609/0.2771, allocations: 116.7 kB / 442 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001857/0.2773, allocations: 31.97 kB / 442 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002527/0.2798, allocations: 1.98 MB / 444 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000456/0.2803, allocations: 63.83 kB / 444.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.129e-05/0.2803, allocations: 20.05 kB / 444.1 MB, free: 10.25 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.000159/0.2805, allocations: 134 kB / 444.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.766e-05/0.2805, allocations: 31.8 kB / 444.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.427e-05/0.2806, allocations: 25.8 kB / 444.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.2806, allocations: 3.938 kB / 444.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.2806, allocations: 4 kB / 444.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.2806, allocations: 0 / 444.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004743/0.2811, allocations: 426.2 kB / 444.7 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.2811, allocations: 0 / 444.7 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001512/0.2812, allocations: 23.97 kB / 444.7 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002628/0.2815, allocations: 116.9 kB / 444.8 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.638e-05/0.2815, allocations: 0 / 444.8 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002217/0.2837, allocations: 1.965 MB / 446.8 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/0.2837, allocations: 4.031 kB / 446.8 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008872/0.2846, allocations: 420.1 kB / 447.2 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.136e-05/0.2847, allocations: 23.92 kB / 447.2 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.445e-05/0.2847, allocations: 4 kB / 447.2 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002076/0.2849, allocations: 27.97 kB / 447.3 MB, free: 6.867 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.866e-05/0.285, allocations: 23.95 kB / 447.3 MB, free: 6.844 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.988e-05/0.285, allocations: 16.05 kB / 447.3 MB, free: 6.828 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001386/0.2852, allocations: 144.6 kB / 447.5 MB, free: 6.688 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.1e-08/0.2852, allocations: 0 / 447.5 MB, free: 6.688 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004058/0.2856, allocations: 87.89 kB / 447.5 MB, free: 6.602 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.001222/0.2868, allocations: 0.94 MB / 448.5 MB, free: 5.629 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009615/0.2878, allocations: 473.1 kB / 448.9 MB, free: 5.129 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.2878, allocations: 8.125 kB / 449 MB, free: 5.121 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004624/0.2882, allocations: 242.5 kB / 449.2 MB, free: 4.871 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003469/0.2886, allocations: 59.05 kB / 449.2 MB, free: 4.816 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004229/0.2928, allocations: 2.723 MB / 452 MB, free: 1.973 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003868/0.2932, allocations: 0.7519 MB / 452.7 MB, free: 1.195 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.179e-05/0.2933, allocations: 9.953 kB / 452.7 MB, free: 1.188 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000115/0.2934, allocations: 67.42 kB / 452.8 MB, free: 1.121 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.2934, allocations: 4 kB / 452.8 MB, free: 1.117 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0335/0.3269, allocations: 7.372 MB / 460.2 MB, free: 9.926 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.21/12.53, allocations: 7.656 kB / 460.2 MB, free: 9.922 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.2428462440148] Failed to read output from testmodel.py, exit status != 0: ['time', 'dcPowerSupply.v', 'dcPowerSupply.i', 'bufferCapacitor.v', 'bufferCapacitor.i'] 12.707234669011086 12.7341257 12.463337652 Calling exit ...