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.001293/0.001293, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001385/0.001385, allocations: 206.9 kB / 23.73 MB, free: 4.387 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.401/1.401, allocations: 230.6 MB / 257.5 MB, free: 7.789 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DemoPowerSupplyWithBuffer",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 51.92 kB / 377.7 MB, free: 2.953 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2601/0.2616, allocations: 53.38 MB / 431.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.003997/0.2656, allocations: 2.489 MB / 433.6 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001281/0.2669, allocations: 0.6428 MB / 434.2 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001353/0.267, allocations: 4 kB / 434.2 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001355/0.2672, allocations: 31.66 kB / 434.3 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001725/0.2674, allocations: 79.28 kB / 434.3 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002922/0.2676, allocations: 95.86 kB / 434.4 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004462/0.2681, allocations: 362.6 kB / 434.8 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001699/0.2683, allocations: 61.12 kB / 434.9 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001821/0.2684, allocations: 143.5 kB / 435 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002036/0.2686, allocations: 131.4 kB / 435.1 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.135e-05/0.2687, allocations: 32 kB / 435.2 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.752e-05/0.2688, allocations: 28 kB / 435.2 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.141e-05/0.2688, allocations: 63.77 kB / 435.2 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001571/0.269, allocations: 131.4 kB / 435.4 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004099/0.2694, allocations: 330.7 kB / 435.7 MB, free: 2.023 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.2694, allocations: 4 kB / 435.7 MB, free: 2.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2694, allocations: 0 / 435.7 MB, free: 2.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.2694, allocations: 0 / 435.7 MB, free: 2.02 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.001117/0.2705, allocations: 0.5672 MB / 436.3 MB, free: 1.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.2706, allocations: 12.03 kB / 436.3 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.376e-05/0.2706, allocations: 58.73 kB / 436.3 MB, free: 1.332 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.656e-05/0.2707, allocations: 32.75 kB / 436.4 MB, free: 1.301 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003688/0.2711, allocations: 203.2 kB / 436.6 MB, free: 1.078 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001327/0.2712, allocations: 153.5 kB / 436.7 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.542e-05/0.2713, allocations: 24.36 kB / 436.7 MB, free: 0.875 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005555/0.2718, allocations: 334.9 kB / 437.1 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.2718, allocations: 0 / 437.1 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.448e-05/0.2719, allocations: 8 kB / 437.1 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.2719, allocations: 4 kB / 437.1 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005115/0.2724, allocations: 205.6 kB / 437.3 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001316/0.2737, allocations: 0.7612 MB / 438 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004967/0.2742, allocations: 198.6 kB / 438.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003063/0.2745, allocations: 104.8 kB / 438.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.267e-05/0.2745, allocations: 4 kB / 438.3 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004395/0.275, allocations: 253 kB / 438.6 MB, free: 14.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.393e-06/0.275, allocations: 4 kB / 438.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001417/0.2764, allocations: 418.5 kB / 439 MB, free: 14.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.397e-05/0.2765, allocations: 106.8 kB / 439.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002327/0.2767, allocations: 206.8 kB / 439.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.016e-05/0.2767, allocations: 33.7 kB / 439.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.2769, allocations: 160.4 kB / 439.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.942e-05/0.2769, allocations: 63.44 kB / 439.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001147/0.2771, allocations: 61.91 kB / 439.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.2772, allocations: 330.8 kB / 439.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003288/0.2775, allocations: 159.5 kB / 440.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003529/0.2779, allocations: 220.9 kB / 440.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005052/0.2784, allocations: 255.1 kB / 440.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.2784, allocations: 0 / 440.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008585/0.2793, allocations: 462.8 kB / 441 MB, free: 12.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.495e-05/0.2793, allocations: 63.39 kB / 441.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.2793, allocations: 4 kB / 441.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003493/0.2797, allocations: 100.9 kB / 441.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001918/0.2799, allocations: 35.97 kB / 441.2 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002534/0.2824, allocations: 1.961 MB / 443.2 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004676/0.2829, allocations: 67.86 kB / 443.2 MB, free: 9.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.592e-05/0.2829, allocations: 12.06 kB / 443.3 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.0001876/0.2831, allocations: 141.8 kB / 443.4 MB, free: 9.777 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.548e-05/0.2831, allocations: 31.8 kB / 443.4 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.168e-05/0.2832, allocations: 21.81 kB / 443.4 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.2832, allocations: 0 / 443.4 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/0.2832, allocations: 7.984 kB / 443.5 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.2832, allocations: 0 / 443.5 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005042/0.2837, allocations: 390.3 kB / 443.8 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.449e-06/0.2837, allocations: 4.203 kB / 443.8 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001511/0.2839, allocations: 27.98 kB / 443.9 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002712/0.2841, allocations: 108.7 kB / 444 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.781e-05/0.2841, allocations: 4 kB / 444 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002345/0.2865, allocations: 1.957 MB / 445.9 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2865, allocations: 0 / 445.9 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009049/0.2874, allocations: 412.5 kB / 446.3 MB, free: 6.648 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.361e-05/0.2875, allocations: 31.88 kB / 446.4 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.128e-05/0.2875, allocations: 4 kB / 446.4 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002086/0.2877, allocations: 23.97 kB / 446.4 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.802e-05/0.2878, allocations: 31.95 kB / 446.4 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.662e-05/0.2878, allocations: 4 kB / 446.4 MB, free: 6.555 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001378/0.288, allocations: 144.6 kB / 446.6 MB, free: 6.414 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.288, allocations: 0 / 446.6 MB, free: 6.414 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004164/0.2884, allocations: 95.84 kB / 446.7 MB, free: 6.32 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.00127/0.2897, allocations: 0.938 MB / 447.6 MB, free: 5.348 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001004/0.2907, allocations: 0.5202 MB / 448.1 MB, free: 4.777 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.2907, allocations: 0 / 448.1 MB, free: 4.777 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004631/0.2911, allocations: 246.4 kB / 448.4 MB, free: 4.523 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003545/0.2915, allocations: 58.58 kB / 448.4 MB, free: 4.469 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00451/0.296, allocations: 2.952 MB / 451.4 MB, free: 1.344 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001578/0.2962, allocations: 142.2 kB / 451.5 MB, free: 1.184 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.149e-05/0.2962, allocations: 13.95 kB / 451.5 MB, free: 1.172 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001159/0.2963, allocations: 71.41 kB / 451.6 MB, free: 1.102 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2963, allocations: 0 / 451.6 MB, free: 1.102 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03893/0.3353, allocations: 7.807 MB / 459.4 MB, free: 9.488 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.77/13.11, allocations: 0 / 459.4 MB, free: 9.488 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_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.64711223402992] Failed to read output from testmodel.py, exit status != 0: ['time', 'dcPowerSupply.v', 'dcPowerSupply.i', 'bufferCapacitor.v', 'bufferCapacitor.i'] 13.230403000954539 13.259078924 12.984609667 Calling exit ...