Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001304/0.001304, allocations: 105.1 kB / 21.23 MB, free: 0.5039 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00144/0.00144, allocations: 209.9 kB / 24.54 MB, free: 3.863 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.398/1.398, allocations: 230.6 MB / 258.3 MB, free: 8.074 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_DemoPowerSupplyWithBuffer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_DemoPowerSupplyWithBuffer",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002899/0.002899, allocations: 64.56 kB / 378.6 MB, free: 3.156 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2582/0.2611, allocations: 53.37 MB / 431.9 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.004078/0.2652, allocations: 2.661 MB / 434.6 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001298/0.2665, allocations: 0.67 MB / 435.3 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001362/0.2666, allocations: 4 kB / 435.3 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001484/0.2667, allocations: 43.58 kB / 435.3 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001618/0.2669, allocations: 83.27 kB / 435.4 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003077/0.2672, allocations: 95.81 kB / 435.5 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004285/0.2676, allocations: 354.8 kB / 435.8 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001785/0.2678, allocations: 64.8 kB / 435.9 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000184/0.268, allocations: 143.5 kB / 436 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002263/0.2682, allocations: 159.3 kB / 436.2 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.391e-05/0.2683, allocations: 32 kB / 436.2 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.206e-05/0.2683, allocations: 35.94 kB / 436.3 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.755e-05/0.2684, allocations: 59.81 kB / 436.3 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001549/0.2686, allocations: 143.3 kB / 436.5 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004045/0.269, allocations: 323.9 kB / 436.8 MB, free: 2.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.269, allocations: 4 kB / 436.8 MB, free: 2.016 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.269, allocations: 0 / 436.8 MB, free: 2.016 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.785e-06/0.269, allocations: 0 / 436.8 MB, free: 2.016 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.001112/0.2701, allocations: 0.5711 MB / 437.3 MB, free: 1.402 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.2701, allocations: 8.031 kB / 437.4 MB, free: 1.395 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.916e-05/0.2702, allocations: 58.67 kB / 437.4 MB, free: 1.328 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.002e-05/0.2703, allocations: 36.75 kB / 437.5 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00038/0.2707, allocations: 194.7 kB / 437.6 MB, free: 1.078 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000142/0.2708, allocations: 157.5 kB / 437.8 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.849e-05/0.2709, allocations: 24.38 kB / 437.8 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005141/0.2714, allocations: 261.7 kB / 438.1 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.2714, allocations: 0 / 438.1 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.413e-05/0.2714, allocations: 7.938 kB / 438.1 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.629e-06/0.2714, allocations: 8 kB / 438.1 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000505/0.2719, allocations: 205.6 kB / 438.3 MB, free: 396 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001382/0.2733, allocations: 0.8235 MB / 439.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000477/0.2738, allocations: 194.6 kB / 439.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002908/0.2741, allocations: 112.8 kB / 439.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.249e-05/0.2741, allocations: 4 kB / 439.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000383/0.2745, allocations: 177.8 kB / 439.6 MB, free: 14.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.262e-06/0.2745, allocations: 0 / 439.6 MB, free: 14.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001346/0.2758, allocations: 406.5 kB / 440 MB, free: 14.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.696e-05/0.2759, allocations: 122.7 kB / 440.1 MB, free: 14.44 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002082/0.2761, allocations: 202.8 kB / 440.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.911e-05/0.2762, allocations: 33.7 kB / 440.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001186/0.2763, allocations: 156.4 kB / 440.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.575e-05/0.2763, allocations: 67.42 kB / 440.6 MB, free: 13.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001079/0.2765, allocations: 57.95 kB / 440.6 MB, free: 13.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.2766, allocations: 326.8 kB / 440.9 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002751/0.2769, allocations: 100.2 kB / 441 MB, free: 13.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000286/0.2772, allocations: 139.8 kB / 441.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004992/0.2777, allocations: 255 kB / 441.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.2777, allocations: 0 / 441.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008174/0.2785, allocations: 407.5 kB / 441.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.298e-05/0.2786, allocations: 61.91 kB / 441.9 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.2786, allocations: 0 / 441.9 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003527/0.2789, allocations: 108.8 kB / 442 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001853/0.2791, allocations: 31.92 kB / 442 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002601/0.2817, allocations: 1.985 MB / 444 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004471/0.2821, allocations: 67.89 kB / 444.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.795e-05/0.2822, allocations: 12 kB / 444.1 MB, free: 10.26 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.0001658/0.2823, allocations: 143.8 kB / 444.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.051e-05/0.2824, allocations: 23.8 kB / 444.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.475e-05/0.2824, allocations: 29.8 kB / 444.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.2824, allocations: 4 kB / 444.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.2824, allocations: 4 kB / 444.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.2824, allocations: 0 / 444.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004935/0.2829, allocations: 422.2 kB / 444.7 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.2829, allocations: 0 / 444.7 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000153/0.2831, allocations: 31.91 kB / 444.7 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002573/0.2833, allocations: 104.8 kB / 444.8 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.979e-05/0.2834, allocations: 4 kB / 444.8 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002251/0.2856, allocations: 1.977 MB / 446.8 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2856, allocations: 0 / 446.8 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008748/0.2865, allocations: 402.5 kB / 447.2 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.659e-05/0.2866, allocations: 27.92 kB / 447.2 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.382e-05/0.2866, allocations: 11.98 kB / 447.2 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001986/0.2868, allocations: 24.05 kB / 447.3 MB, free: 6.875 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.777e-05/0.2869, allocations: 35.88 kB / 447.3 MB, free: 6.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.719e-05/0.2869, allocations: 8 kB / 447.3 MB, free: 6.832 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001406/0.2871, allocations: 144.6 kB / 447.4 MB, free: 6.691 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2871, allocations: 0 / 447.4 MB, free: 6.691 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004035/0.2875, allocations: 91.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.001188/0.2887, allocations: 0.9392 MB / 448.5 MB, free: 5.633 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009765/0.2896, allocations: 477.2 kB / 448.9 MB, free: 5.129 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2896, allocations: 0 / 448.9 MB, free: 5.129 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004311/0.2901, allocations: 238.5 kB / 449.2 MB, free: 4.883 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003344/0.2904, allocations: 56.05 kB / 449.2 MB, free: 4.828 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004144/0.2945, allocations: 2.715 MB / 451.9 MB, free: 1.992 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004084/0.2949, allocations: 0.7519 MB / 452.7 MB, free: 1.215 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.913e-05/0.295, allocations: 17.94 kB / 452.7 MB, free: 1.199 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001193/0.2952, allocations: 71.41 kB / 452.8 MB, free: 1.129 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2952, allocations: 4 kB / 452.8 MB, free: 1.125 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03593/0.3311, allocations: 7.308 MB / 460.1 MB, free: 9.977 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/11.94, allocations: 10.47 kB / 460.1 MB, free: 9.969 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.00001e-05 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_DemoPowerSupplyWithBuffer.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.525068418122828] Failed to read output from testmodel.py, exit status != 0: ['time', 'dcPowerSupply.v', 'dcPowerSupply.i', 'bufferCapacitor.v', 'bufferCapacitor.i'] 12.073527419939637 12.097146272 11.822978291 Calling exit ...