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.0007894/0.0007894, allocations: 83.69 kB / 20.68 MB, free: 3.883 MB / 18.57 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.001357/0.001357, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9046/0.9046, allocations: 177.1 MB / 204.3 MB, free: 5.703 MB / 186.7 MB " [Timeout remaining time 179] 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 3.567e-06/3.567e-06, allocations: 0 / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.229e-05/3.586e-05, allocations: 4.672 kB / 324.6 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.003576/0.003612, allocations: 2.495 MB / 327.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001206/0.004818, allocations: 0.6582 MB / 327.7 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001048/0.004923, allocations: 8 kB / 327.8 MB, free: 12.72 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001166/0.005039, allocations: 31.66 kB / 327.8 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001378/0.005177, allocations: 79.22 kB / 327.9 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000274/0.005451, allocations: 91.86 kB / 328 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003092/0.00576, allocations: 374.5 kB / 328.3 MB, free: 12.15 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001504/0.005911, allocations: 64.91 kB / 328.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002033/0.006114, allocations: 207.6 kB / 328.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001581/0.006272, allocations: 119.6 kB / 328.7 MB, free: 11.77 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.05e-05/0.006313, allocations: 32 kB / 328.7 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.976e-05/0.006342, allocations: 32 kB / 328.8 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.344e-05/0.006386, allocations: 55.81 kB / 328.8 MB, free: 11.65 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.414e-05/0.00647, allocations: 103.7 kB / 328.9 MB, free: 11.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002857/0.006756, allocations: 354.9 kB / 329.3 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.00676, allocations: 4 kB / 329.3 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.006761, allocations: 0 / 329.3 MB, free: 11.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.006767, allocations: 0 / 329.3 MB, free: 11.2 MB / 298.7 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.000749/0.007516, allocations: 0.5701 MB / 329.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.007558, allocations: 12.03 kB / 329.9 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.29e-05/0.007601, allocations: 58.73 kB / 329.9 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.557e-05/0.007656, allocations: 32.75 kB / 329.9 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002689/0.007925, allocations: 201.4 kB / 330.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.367e-05/0.008019, allocations: 153.6 kB / 330.3 MB, free: 10.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.253e-05/0.008061, allocations: 24.38 kB / 330.3 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003648/0.008426, allocations: 332.4 kB / 330.6 MB, free: 9.695 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.008435, allocations: 192 / 330.6 MB, free: 9.695 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.838e-05/0.008453, allocations: 11.94 kB / 330.6 MB, free: 9.684 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.008461, allocations: 4 kB / 330.7 MB, free: 9.68 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002925/0.008753, allocations: 201.8 kB / 330.8 MB, free: 9.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008141/0.009567, allocations: 0.7618 MB / 331.6 MB, free: 8.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002779/0.009845, allocations: 198.6 kB / 331.8 MB, free: 8.457 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001902/0.01004, allocations: 112.7 kB / 331.9 MB, free: 8.344 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.404e-05/0.01005, allocations: 4 kB / 331.9 MB, free: 8.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002685/0.01032, allocations: 250.9 kB / 332.2 MB, free: 8.055 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.302e-06/0.01032, allocations: 0 / 332.2 MB, free: 8.055 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008124/0.01113, allocations: 426.4 kB / 332.6 MB, free: 7.629 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.061e-05/0.01118, allocations: 106.8 kB / 332.7 MB, free: 7.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001334/0.01132, allocations: 203 kB / 332.9 MB, free: 7.293 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.297e-05/0.01134, allocations: 33.7 kB / 332.9 MB, free: 7.254 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.178e-05/0.01141, allocations: 156.4 kB / 333.1 MB, free: 7.098 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.184e-05/0.01145, allocations: 67.42 kB / 333.1 MB, free: 7.031 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.718e-05/0.01152, allocations: 53.94 kB / 333.2 MB, free: 6.973 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.413e-05/0.0116, allocations: 334.8 kB / 333.5 MB, free: 6.637 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001729/0.01178, allocations: 155.6 kB / 333.7 MB, free: 6.473 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001904/0.01197, allocations: 216.9 kB / 333.9 MB, free: 6.23 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002858/0.01225, allocations: 252 kB / 334.1 MB, free: 5.965 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.01225, allocations: 0 / 334.1 MB, free: 5.965 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004714/0.01273, allocations: 462.9 kB / 334.6 MB, free: 5.48 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.724e-05/0.01276, allocations: 63.33 kB / 334.6 MB, free: 5.406 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.01277, allocations: 4 kB / 334.6 MB, free: 5.402 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002456/0.01301, allocations: 104.9 kB / 334.7 MB, free: 5.297 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001052/0.01312, allocations: 35.91 kB / 334.8 MB, free: 5.262 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00147/0.01459, allocations: 1.946 MB / 336.7 MB, free: 3.199 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002193/0.01481, allocations: 75.92 kB / 336.8 MB, free: 3.125 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.589e-05/0.01483, allocations: 8 kB / 336.8 MB, free: 3.117 MB / 298.7 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 9.897e-05/0.01492, allocations: 144.4 kB / 336.9 MB, free: 2.969 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.065e-05/0.01495, allocations: 27.84 kB / 337 MB, free: 2.941 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.606e-05/0.01498, allocations: 25.81 kB / 337 MB, free: 2.922 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.01498, allocations: 3.938 kB / 337 MB, free: 2.918 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.01499, allocations: 4 kB / 337 MB, free: 2.914 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.01499, allocations: 3.984 kB / 337 MB, free: 2.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002965/0.01529, allocations: 382.4 kB / 337.4 MB, free: 2.484 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.01529, allocations: 3.938 kB / 337.4 MB, free: 2.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.679e-05/0.01538, allocations: 27.91 kB / 337.4 MB, free: 2.453 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001675/0.01554, allocations: 112.8 kB / 337.5 MB, free: 2.34 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.178e-05/0.01556, allocations: 0 / 337.5 MB, free: 2.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001336/0.01689, allocations: 1.953 MB / 339.5 MB, free: 280 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.01689, allocations: 3.938 kB / 339.5 MB, free: 276 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004905/0.01738, allocations: 401.5 kB / 339.9 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.202e-05/0.01744, allocations: 32.11 kB / 339.9 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.913e-05/0.01746, allocations: 7.984 kB / 339.9 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.376e-05/0.01755, allocations: 24.11 kB / 339.9 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.423e-05/0.01762, allocations: 35.88 kB / 340 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.058e-05/0.01763, allocations: 4 kB / 340 MB, free: 15.75 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.081e-05/0.01771, allocations: 148.5 kB / 340.1 MB, free: 15.61 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.01771, allocations: 0 / 340.1 MB, free: 15.61 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002794/0.01799, allocations: 95.84 kB / 340.2 MB, free: 15.52 MB / 314.7 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.000687/0.01868, allocations: 0.9418 MB / 341.2 MB, free: 14.54 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006075/0.01929, allocations: 0.5162 MB / 341.7 MB, free: 13.97 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.01929, allocations: 0 / 341.7 MB, free: 13.97 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002435/0.01953, allocations: 241.7 kB / 341.9 MB, free: 13.73 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002333/0.01977, allocations: 59.98 kB / 342 MB, free: 13.67 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00261/0.02238, allocations: 2.933 MB / 344.9 MB, free: 10.56 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.118e-05/0.02247, allocations: 138.2 kB / 345 MB, free: 10.4 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.476e-05/0.02253, allocations: 13.95 kB / 345 MB, free: 10.39 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.662e-05/0.02261, allocations: 72.45 kB / 345.1 MB, free: 10.32 MB / 314.7 MB Notification: Performance of SimCode: time 7.01e-07/0.02261, allocations: 0 / 345.1 MB, free: 10.32 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02261/0.04522, allocations: 7.953 MB / 353.1 MB, free: 2.555 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.918/7.963, allocations: 15.91 kB / 353.1 MB, free: 2.539 MB / 314.7 MB " [Timeout remaining time 652] (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] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/DemoPowerSupplyWithBuffer/DemoPowerSupplyWithBuffer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer_res.csv. Warning: Get data of variable Time from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer_res.csv failed! Error: Could not read variable dcPowerSupply.v in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer_res.csv. Warning: Get data of variable dcPowerSupply.v from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer_res.csv failed! Error: Could not read variable dcPowerSupply.i in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer_res.csv. Warning: Get data of variable dcPowerSupply.i from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer_res.csv failed! Error: Could not read variable bufferCapacitor.i in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer_res.csv. Warning: Get data of variable bufferCapacitor.i from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,dcPowerSupply.v,dcPowerSupply.i,bufferCapacitor.v,bufferCapacitor.i Variables in the result:time,bufferCapacitor.v [Calling sys.exit(0), Time elapsed: 11.472982680425048]