Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001351/0.001351, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001462/0.001462, allocations: 214.6 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 230.5 MB / 257.4 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Electrical_Analog_Examples_DemoPowerSupplyWithBuffer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DemoPowerSupplyWithBuffer",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001939/0.001939, allocations: 63.89 kB / 377.7 MB, free: 2.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2489/0.2508, allocations: 53.41 MB / 431.1 MB, free: 6.598 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.003837/0.2546, allocations: 2.493 MB / 433.6 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001243/0.2559, allocations: 0.6467 MB / 434.3 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001153/0.256, allocations: 3.938 kB / 434.3 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001326/0.2561, allocations: 35.64 kB / 434.3 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001601/0.2563, allocations: 75.28 kB / 434.4 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002915/0.2566, allocations: 99.86 kB / 434.5 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000422/0.257, allocations: 362.7 kB / 434.9 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001597/0.2572, allocations: 61.12 kB / 434.9 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001743/0.2573, allocations: 139.6 kB / 435 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002039/0.2575, allocations: 135.3 kB / 435.2 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.552e-05/0.2576, allocations: 32 kB / 435.2 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.65e-05/0.2577, allocations: 28 kB / 435.2 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.325e-05/0.2577, allocations: 55.83 kB / 435.3 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001406/0.2579, allocations: 131.4 kB / 435.4 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004003/0.2583, allocations: 338.6 kB / 435.8 MB, free: 1.969 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2583, allocations: 4 kB / 435.8 MB, free: 1.965 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2583, allocations: 0 / 435.8 MB, free: 1.965 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.2583, allocations: 0 / 435.8 MB, free: 1.965 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.001074/0.2594, allocations: 0.5594 MB / 436.3 MB, free: 1.363 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.2594, allocations: 19.97 kB / 436.3 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.282e-05/0.2595, allocations: 58.73 kB / 436.4 MB, free: 1.277 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.373e-05/0.2595, allocations: 36.75 kB / 436.4 MB, free: 1.242 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003585/0.2599, allocations: 190.7 kB / 436.6 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001304/0.26, allocations: 157.5 kB / 436.8 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.572e-05/0.2601, allocations: 28.31 kB / 436.8 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005523/0.2606, allocations: 334.8 kB / 437.1 MB, free: 476 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.2606, allocations: 3.984 kB / 437.1 MB, free: 472 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.671e-05/0.2607, allocations: 12 kB / 437.1 MB, free: 460 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.2607, allocations: 4 kB / 437.1 MB, free: 456 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005036/0.2612, allocations: 197.6 kB / 437.3 MB, free: 256 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001302/0.2625, allocations: 0.7611 MB / 438.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004887/0.263, allocations: 194.6 kB / 438.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002985/0.2633, allocations: 116.7 kB / 438.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.864e-05/0.2633, allocations: 4 kB / 438.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004222/0.2637, allocations: 254.3 kB / 438.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.593e-06/0.2637, allocations: 4 kB / 438.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001439/0.2652, allocations: 421.2 kB / 439.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.206e-05/0.2652, allocations: 102.8 kB / 439.2 MB, free: 14.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002132/0.2654, allocations: 210.8 kB / 439.4 MB, free: 14.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.74e-05/0.2655, allocations: 33.7 kB / 439.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001114/0.2656, allocations: 152.4 kB / 439.6 MB, free: 13.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.622e-05/0.2657, allocations: 71.42 kB / 439.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001191/0.2658, allocations: 57.97 kB / 439.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.2659, allocations: 330.8 kB / 440 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003131/0.2662, allocations: 151.6 kB / 440.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003383/0.2666, allocations: 226.3 kB / 440.4 MB, free: 13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004924/0.2671, allocations: 251.1 kB / 440.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2671, allocations: 0 / 440.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008579/0.2679, allocations: 462.8 kB / 441.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.302e-05/0.268, allocations: 59.39 kB / 441.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.268, allocations: 4 kB / 441.1 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003697/0.2684, allocations: 112.8 kB / 441.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001828/0.2685, allocations: 31.97 kB / 441.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002537/0.2711, allocations: 1.961 MB / 443.2 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004708/0.2715, allocations: 67.86 kB / 443.3 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.739e-05/0.2716, allocations: 12.06 kB / 443.3 MB, free: 9.871 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.0001821/0.2718, allocations: 134.5 kB / 443.4 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.789e-05/0.2718, allocations: 31.78 kB / 443.5 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.504e-05/0.2719, allocations: 25.81 kB / 443.5 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.2719, allocations: 0 / 443.5 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.2719, allocations: 7.938 kB / 443.5 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.2719, allocations: 7.922 kB / 443.5 MB, free: 9.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005095/0.2724, allocations: 390.3 kB / 443.9 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.2724, allocations: 32 / 443.9 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001507/0.2725, allocations: 27.97 kB / 443.9 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002652/0.2728, allocations: 112.7 kB / 444 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.661e-05/0.2728, allocations: 0 / 444 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002283/0.2751, allocations: 1.954 MB / 446 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.2751, allocations: 0 / 446 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009097/0.276, allocations: 414.5 kB / 446.4 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.572e-05/0.2761, allocations: 27.89 kB / 446.4 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.24e-05/0.2761, allocations: 3.984 kB / 446.4 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002023/0.2763, allocations: 19.98 kB / 446.4 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001039/0.2764, allocations: 35.94 kB / 446.5 MB, free: 6.504 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.926e-05/0.2765, allocations: 8 kB / 446.5 MB, free: 6.496 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001392/0.2766, allocations: 144.6 kB / 446.6 MB, free: 6.355 MB / 350.1 MB Notification: Performance of sort global known variables: time 5e-08/0.2766, allocations: 0 / 446.6 MB, free: 6.355 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004518/0.277, allocations: 95.84 kB / 446.7 MB, free: 6.262 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.001199/0.2782, allocations: 0.9413 MB / 447.7 MB, free: 5.289 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001007/0.2793, allocations: 0.5126 MB / 448.2 MB, free: 4.727 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.2793, allocations: 0 / 448.2 MB, free: 4.727 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004561/0.2797, allocations: 250.5 kB / 448.4 MB, free: 4.469 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003648/0.2801, allocations: 50.59 kB / 448.5 MB, free: 4.422 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004381/0.2845, allocations: 2.955 MB / 451.4 MB, free: 1.301 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001413/0.2846, allocations: 138.2 kB / 451.6 MB, free: 1.145 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.816e-05/0.2847, allocations: 17.95 kB / 451.6 MB, free: 1.129 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001191/0.2848, allocations: 71.41 kB / 451.6 MB, free: 1.059 MB / 350.1 MB Notification: Performance of SimCode: time 7.42e-07/0.2848, allocations: 0 / 451.6 MB, free: 1.059 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03996/0.3248, allocations: 7.827 MB / 459.5 MB, free: 9.387 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.45/12.77, allocations: 3.938 kB / 459.5 MB, free: 9.383 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_DemoPowerSupplyWithBuffer.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.488414374180138] Failed to read output from testmodel.py, exit status != 0: ['time', 'dcPowerSupply.v', 'dcPowerSupply.i', 'bufferCapacitor.v', 'bufferCapacitor.i'] 12.89075394300744 12.907072016 12.645794037 Calling exit ...