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.00123/0.00123, allocations: 107.1 kB / 20.44 MB, free: 1.355 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.001371/0.001371, allocations: 208.7 kB / 23.72 MB, free: 4.539 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.41/1.41, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.001511/0.001511, allocations: 51.91 kB / 377.7 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2476, allocations: 53.37 MB / 431.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.003944/0.2516, allocations: 2.485 MB / 433.6 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001225/0.2528, allocations: 0.6428 MB / 434.2 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001149/0.2529, allocations: 4 kB / 434.2 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001317/0.253, allocations: 43.58 kB / 434.3 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001659/0.2532, allocations: 75.33 kB / 434.3 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002596/0.2535, allocations: 95.81 kB / 434.4 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004208/0.2539, allocations: 358.7 kB / 434.8 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001622/0.2541, allocations: 73.12 kB / 434.9 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001716/0.2542, allocations: 139.5 kB / 435 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001996/0.2544, allocations: 155.4 kB / 435.2 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.334e-05/0.2545, allocations: 31.98 kB / 435.2 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.808e-05/0.2545, allocations: 32 kB / 435.2 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.187e-05/0.2546, allocations: 59.77 kB / 435.3 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001358/0.2547, allocations: 123.5 kB / 435.4 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003772/0.2551, allocations: 326.7 kB / 435.7 MB, free: 2.027 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2551, allocations: 0 / 435.7 MB, free: 2.027 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.2551, allocations: 4 kB / 435.7 MB, free: 2.023 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.2551, allocations: 0 / 435.7 MB, free: 2.023 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.001056/0.2562, allocations: 0.575 MB / 436.3 MB, free: 1.406 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.2562, allocations: 11.97 kB / 436.3 MB, free: 1.395 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.216e-05/0.2563, allocations: 58.67 kB / 436.4 MB, free: 1.328 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.528e-05/0.2564, allocations: 36.75 kB / 436.4 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003473/0.2567, allocations: 195.3 kB / 436.6 MB, free: 1.078 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001299/0.2568, allocations: 149.5 kB / 436.7 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.362e-05/0.2569, allocations: 24.38 kB / 436.8 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005336/0.2574, allocations: 338.8 kB / 437.1 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.2574, allocations: 0 / 437.1 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.711e-05/0.2575, allocations: 12 kB / 437.1 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.2575, allocations: 7.984 kB / 437.1 MB, free: 0.5 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004944/0.258, allocations: 201.6 kB / 437.3 MB, free: 308 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001237/0.2592, allocations: 0.7573 MB / 438.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004707/0.2597, allocations: 202.6 kB / 438.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002882/0.26, allocations: 112.8 kB / 438.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.188e-05/0.26, allocations: 0 / 438.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004238/0.2604, allocations: 258.9 kB / 438.6 MB, free: 14.87 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.342e-06/0.2604, allocations: 0 / 438.6 MB, free: 14.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001339/0.2617, allocations: 417.2 kB / 439 MB, free: 14.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.912e-05/0.2618, allocations: 114.8 kB / 439.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002032/0.262, allocations: 202.8 kB / 439.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.604e-05/0.2621, allocations: 33.7 kB / 439.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.2622, allocations: 156.4 kB / 439.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.203e-05/0.2623, allocations: 71.42 kB / 439.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.839e-05/0.2624, allocations: 49.94 kB / 439.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.2625, allocations: 330.8 kB / 440 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002924/0.2628, allocations: 163.6 kB / 440.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00033/0.2631, allocations: 220.9 kB / 440.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004786/0.2636, allocations: 247 kB / 440.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2636, allocations: 0 / 440.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008421/0.2644, allocations: 466.9 kB / 441 MB, free: 12.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.493e-05/0.2645, allocations: 67.39 kB / 441.1 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.2645, allocations: 0 / 441.1 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003214/0.2648, allocations: 112.8 kB / 441.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001855/0.265, allocations: 39.91 kB / 441.3 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002322/0.2673, allocations: 1.942 MB / 443.2 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004311/0.2678, allocations: 68.08 kB / 443.3 MB, free: 9.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.546e-05/0.2678, allocations: 8 kB / 443.3 MB, free: 9.93 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.0001512/0.2679, allocations: 149.7 kB / 443.4 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.932e-05/0.268, allocations: 27.78 kB / 443.4 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.665e-05/0.268, allocations: 21.81 kB / 443.5 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.268, allocations: 4 kB / 443.5 MB, free: 9.723 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.268, allocations: 0 / 443.5 MB, free: 9.723 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.194e-05/0.2681, allocations: 3.984 kB / 443.5 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004557/0.2685, allocations: 394.3 kB / 443.9 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.2685, allocations: 0 / 443.9 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001557/0.2687, allocations: 31.91 kB / 443.9 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002522/0.2689, allocations: 112.8 kB / 444 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.716e-05/0.2689, allocations: 4 kB / 444 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002155/0.2711, allocations: 1.953 MB / 446 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.2711, allocations: 0 / 446 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008504/0.2719, allocations: 398.4 kB / 446.3 MB, free: 6.652 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.975e-05/0.272, allocations: 27.92 kB / 446.4 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.522e-05/0.2721, allocations: 11.98 kB / 446.4 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000201/0.2723, allocations: 24.11 kB / 446.4 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.166e-05/0.2724, allocations: 35.86 kB / 446.4 MB, free: 6.555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.862e-05/0.2724, allocations: 12 kB / 446.5 MB, free: 6.543 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001319/0.2725, allocations: 140.6 kB / 446.6 MB, free: 6.406 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2725, allocations: 0 / 446.6 MB, free: 6.406 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003972/0.2729, allocations: 92.03 kB / 446.7 MB, free: 6.316 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.001151/0.2741, allocations: 0.9475 MB / 447.6 MB, free: 5.336 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009448/0.275, allocations: 0.5123 MB / 448.1 MB, free: 4.773 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.275, allocations: 3.938 kB / 448.1 MB, free: 4.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004445/0.2754, allocations: 245.5 kB / 448.4 MB, free: 4.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003455/0.2758, allocations: 55.84 kB / 448.4 MB, free: 4.465 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004206/0.28, allocations: 2.952 MB / 451.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001422/0.2801, allocations: 138.2 kB / 451.5 MB, free: 1.191 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.734e-05/0.2802, allocations: 17.94 kB / 451.5 MB, free: 1.176 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001042/0.2803, allocations: 71.41 kB / 451.6 MB, free: 1.105 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2803, allocations: 0 / 451.6 MB, free: 1.105 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0579/0.3382, allocations: 7.853 MB / 459.5 MB, free: 9.441 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.15/12.49, allocations: 17.42 kB / 459.5 MB, free: 9.43 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: 15.931911613995908] Failed to read output from testmodel.py, exit status != 0: ['time', 'dcPowerSupply.v', 'dcPowerSupply.i', 'bufferCapacitor.v', 'bufferCapacitor.i'] 12.606065391999437 12.621396387 12.362899483 Calling exit ...