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.001534/0.001534, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002165/0.002165, allocations: 210.3 kB / 23.73 MB, free: 4.379 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.453/1.453, 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.001497/0.001497, allocations: 51.92 kB / 377.7 MB, free: 2.926 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2587/0.2602, allocations: 53.37 MB / 431.1 MB, free: 6.613 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.004056/0.2643, allocations: 2.489 MB / 433.6 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001297/0.2656, allocations: 0.6428 MB / 434.2 MB, free: 3.469 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001332/0.2657, allocations: 4 kB / 434.2 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001513/0.2658, allocations: 39.58 kB / 434.3 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001578/0.266, allocations: 79.34 kB / 434.4 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002881/0.2663, allocations: 95.8 kB / 434.4 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004076/0.2667, allocations: 358.8 kB / 434.8 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001697/0.2669, allocations: 65.06 kB / 434.9 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001756/0.267, allocations: 143.5 kB / 435 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002387/0.2673, allocations: 151.4 kB / 435.1 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.382e-05/0.2673, allocations: 32 kB / 435.2 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.046e-05/0.2674, allocations: 32 kB / 435.2 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.718e-05/0.2675, allocations: 55.83 kB / 435.3 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001458/0.2676, allocations: 127.4 kB / 435.4 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004009/0.268, allocations: 338.7 kB / 435.7 MB, free: 1.969 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.268, allocations: 0 / 435.7 MB, free: 1.969 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.268, allocations: 0 / 435.7 MB, free: 1.969 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.268, allocations: 0 / 435.7 MB, free: 1.969 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.001136/0.2692, allocations: 0.5711 MB / 436.3 MB, free: 1.355 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.2692, allocations: 8.031 kB / 436.3 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.161e-05/0.2693, allocations: 58.73 kB / 436.4 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.241e-05/0.2694, allocations: 32.75 kB / 436.4 MB, free: 1.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003667/0.2697, allocations: 199.3 kB / 436.6 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001235/0.2698, allocations: 149.5 kB / 436.7 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.262e-05/0.2699, allocations: 28.31 kB / 436.8 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005643/0.2705, allocations: 342.8 kB / 437.1 MB, free: 476 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.2705, allocations: 4 kB / 437.1 MB, free: 472 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.356e-05/0.2705, allocations: 4 kB / 437.1 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.2705, allocations: 8 kB / 437.1 MB, free: 460 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004998/0.271, allocations: 197.6 kB / 437.3 MB, free: 260 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001348/0.2723, allocations: 0.7614 MB / 438.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004685/0.2728, allocations: 190.6 kB / 438.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002949/0.2731, allocations: 112.8 kB / 438.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.507e-05/0.2731, allocations: 3.938 kB / 438.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004168/0.2735, allocations: 261.2 kB / 438.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.323e-06/0.2735, allocations: 0 / 438.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001374/0.2749, allocations: 418.5 kB / 439 MB, free: 14.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.074e-05/0.275, allocations: 110.8 kB / 439.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002124/0.2752, allocations: 206.8 kB / 439.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.415e-05/0.2752, allocations: 37.73 kB / 439.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000109/0.2754, allocations: 156.4 kB / 439.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.076e-05/0.2754, allocations: 67.44 kB / 439.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/0.2755, allocations: 53.94 kB / 439.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.2757, allocations: 330.8 kB / 440 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003092/0.276, allocations: 155.6 kB / 440.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003366/0.2763, allocations: 220.9 kB / 440.3 MB, free: 13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004838/0.2768, allocations: 259 kB / 440.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.2768, allocations: 0 / 440.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008294/0.2776, allocations: 462.8 kB / 441 MB, free: 12.24 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.177e-05/0.2777, allocations: 67.39 kB / 441.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.2777, allocations: 0 / 441.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000314/0.278, allocations: 104.9 kB / 441.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001786/0.2782, allocations: 35.91 kB / 441.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002528/0.2807, allocations: 1.95 MB / 443.2 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004654/0.2812, allocations: 71.83 kB / 443.3 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.999e-05/0.2812, allocations: 15.94 kB / 443.3 MB, free: 9.867 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.0001591/0.2814, allocations: 144.9 kB / 443.4 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.179e-05/0.2814, allocations: 27.8 kB / 443.4 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.19e-05/0.2815, allocations: 25.81 kB / 443.5 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.2815, allocations: 4 kB / 443.5 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.305e-06/0.2815, allocations: 0 / 443.5 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.2815, allocations: 3.984 kB / 443.5 MB, free: 9.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004726/0.282, allocations: 394.3 kB / 443.9 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.282, allocations: 0 / 443.9 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001554/0.2821, allocations: 31.91 kB / 443.9 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002657/0.2824, allocations: 104.8 kB / 444 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.918e-05/0.2824, allocations: 4 kB / 444 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002213/0.2846, allocations: 1.953 MB / 446 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2846, allocations: 0 / 446 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008574/0.2855, allocations: 416.1 kB / 446.4 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.979e-05/0.2856, allocations: 31.91 kB / 446.4 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.408e-05/0.2856, allocations: 4 kB / 446.4 MB, free: 6.555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002168/0.2858, allocations: 19.98 kB / 446.4 MB, free: 6.535 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.472e-05/0.2859, allocations: 31.94 kB / 446.4 MB, free: 6.504 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.623e-05/0.2859, allocations: 7.938 kB / 446.5 MB, free: 6.496 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001254/0.286, allocations: 144.6 kB / 446.6 MB, free: 6.355 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.286, allocations: 4.25 kB / 446.6 MB, free: 6.352 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003967/0.2864, allocations: 95.84 kB / 446.7 MB, free: 6.258 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.001202/0.2876, allocations: 0.9418 MB / 447.6 MB, free: 5.281 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009261/0.2886, allocations: 0.5123 MB / 448.1 MB, free: 4.719 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2886, allocations: 0 / 448.1 MB, free: 4.719 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004471/0.289, allocations: 242.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.0003397/0.2893, allocations: 64.12 kB / 448.4 MB, free: 4.406 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004171/0.2935, allocations: 2.944 MB / 451.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001377/0.2937, allocations: 142.2 kB / 451.5 MB, free: 1.133 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.248e-05/0.2937, allocations: 13.97 kB / 451.5 MB, free: 1.121 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001065/0.2938, allocations: 71.41 kB / 451.6 MB, free: 1.051 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2938, allocations: 0 / 451.6 MB, free: 1.051 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04051/0.3343, allocations: 7.868 MB / 459.5 MB, free: 9.379 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/12.72, allocations: 7.922 kB / 459.5 MB, free: 9.371 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DemoPowerSupplyWithBuffer_fmu --startTime=0 --stopTime=1 --stepSize=1.00001e-05 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/DemoPowerSupplyWithBuffer/DemoPowerSupplyWithBuffer.csv","/var/lib/jenkins1/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] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 17.935905502003152]