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.001379/0.001379, allocations: 114 kB / 20.43 MB, free: 1.457 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.001565/0.001565, allocations: 215.6 kB / 23.74 MB, free: 4.672 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.438/1.438, allocations: 230.5 MB / 257.4 MB, free: 8.027 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.002042/0.002042, allocations: 71.89 kB / 377.8 MB, free: 3.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.261/0.263, allocations: 53.41 MB / 431.2 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.004847/0.2679, allocations: 2.655 MB / 433.9 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001515/0.2694, allocations: 0.6895 MB / 434.5 MB, free: 3.363 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002207/0.2696, allocations: 7.938 kB / 434.6 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001747/0.2698, allocations: 35.64 kB / 434.6 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002162/0.27, allocations: 71.34 kB / 434.7 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003462/0.2703, allocations: 95.81 kB / 434.8 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000515/0.2708, allocations: 366.7 kB / 435.1 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001886/0.271, allocations: 68.52 kB / 435.2 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002269/0.2713, allocations: 139.5 kB / 435.3 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002606/0.2715, allocations: 159.3 kB / 435.5 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.471e-05/0.2716, allocations: 28 kB / 435.5 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.177e-05/0.2717, allocations: 32 kB / 435.5 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.2e-05/0.2717, allocations: 55.83 kB / 435.6 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000169/0.2719, allocations: 151.2 kB / 435.7 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004488/0.2723, allocations: 331.7 kB / 436.1 MB, free: 1.848 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.2723, allocations: 0 / 436.1 MB, free: 1.848 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.2723, allocations: 0 / 436.1 MB, free: 1.848 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.103e-05/0.2724, allocations: 0 / 436.1 MB, free: 1.848 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.001173/0.2735, allocations: 0.5633 MB / 436.6 MB, free: 1.242 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/0.2736, allocations: 15.97 kB / 436.6 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.3e-05/0.2737, allocations: 58.72 kB / 436.7 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.39e-05/0.2737, allocations: 36.75 kB / 436.7 MB, free: 1.125 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003921/0.2741, allocations: 194.7 kB / 436.9 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001416/0.2743, allocations: 153.5 kB / 437.1 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.705e-05/0.2743, allocations: 24.38 kB / 437.1 MB, free: 0.707 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005275/0.2749, allocations: 261.6 kB / 437.3 MB, free: 452 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.2749, allocations: 0 / 437.3 MB, free: 452 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.82e-05/0.2749, allocations: 12 kB / 437.4 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.2749, allocations: 8 kB / 437.4 MB, free: 432 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005115/0.2754, allocations: 193.6 kB / 437.6 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001403/0.2768, allocations: 0.8235 MB / 438.4 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004736/0.2773, allocations: 194.6 kB / 438.6 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003002/0.2776, allocations: 119.5 kB / 438.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.387e-05/0.2776, allocations: 3.984 kB / 438.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003971/0.278, allocations: 181.3 kB / 438.9 MB, free: 14.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.713e-06/0.278, allocations: 0 / 438.9 MB, free: 14.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.00144/0.2795, allocations: 418.5 kB / 439.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.362e-05/0.2795, allocations: 110.8 kB / 439.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000229/0.2798, allocations: 206.8 kB / 439.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.153e-05/0.2798, allocations: 33.7 kB / 439.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001188/0.2799, allocations: 152.4 kB / 439.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.878e-05/0.28, allocations: 75.41 kB / 439.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001203/0.2801, allocations: 49.94 kB / 439.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.2803, allocations: 334.8 kB / 440.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000277/0.2806, allocations: 92.19 kB / 440.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000296/0.2809, allocations: 137.3 kB / 440.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004977/0.2814, allocations: 255 kB / 440.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.2814, allocations: 0 / 440.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008686/0.2822, allocations: 403.5 kB / 441.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.909e-05/0.2823, allocations: 67.39 kB / 441.1 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.2823, allocations: 0 / 441.1 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000385/0.2827, allocations: 112.8 kB / 441.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001895/0.2829, allocations: 35.91 kB / 441.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002608/0.2855, allocations: 1.969 MB / 443.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004937/0.286, allocations: 67.92 kB / 443.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.092e-05/0.286, allocations: 8 kB / 443.3 MB, free: 10.11 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.0001874/0.2862, allocations: 137.8 kB / 443.5 MB, free: 9.965 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.943e-05/0.2863, allocations: 27.78 kB / 443.5 MB, free: 9.938 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.836e-05/0.2863, allocations: 37.8 kB / 443.5 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.155e-06/0.2863, allocations: 0 / 443.5 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-06/0.2863, allocations: 0 / 443.5 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.2863, allocations: 4 kB / 443.5 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005728/0.2869, allocations: 422.1 kB / 443.9 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.2869, allocations: 3.984 kB / 444 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000158/0.2871, allocations: 23.98 kB / 444 MB, free: 9.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002801/0.2873, allocations: 108.8 kB / 444.1 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.513e-05/0.2874, allocations: 8 kB / 444.1 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002326/0.2897, allocations: 1.965 MB / 446.1 MB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.2897, allocations: 64 / 446.1 MB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008829/0.2906, allocations: 410.4 kB / 446.5 MB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.097e-05/0.2907, allocations: 35.91 kB / 446.5 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.517e-05/0.2907, allocations: 4 kB / 446.5 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002169/0.2909, allocations: 24.03 kB / 446.5 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.291, allocations: 27.95 kB / 446.5 MB, free: 6.695 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.921e-05/0.291, allocations: 8 kB / 446.6 MB, free: 6.688 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001443/0.2912, allocations: 144.6 kB / 446.7 MB, free: 6.547 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2912, allocations: 0 / 446.7 MB, free: 6.547 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004659/0.2917, allocations: 87.89 kB / 446.8 MB, free: 6.461 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.001268/0.2929, allocations: 0.9447 MB / 447.7 MB, free: 5.484 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001086/0.294, allocations: 477.8 kB / 448.2 MB, free: 4.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.294, allocations: 0 / 448.2 MB, free: 4.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00051/0.2945, allocations: 245.2 kB / 448.4 MB, free: 4.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003855/0.2949, allocations: 60.19 kB / 448.5 MB, free: 4.672 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004465/0.2994, allocations: 2.716 MB / 451.2 MB, free: 1.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004095/0.2998, allocations: 0.7519 MB / 452 MB, free: 1.059 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.269e-05/0.2999, allocations: 9.969 kB / 452 MB, free: 1.051 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001083/0.3, allocations: 71.41 kB / 452 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3, allocations: 0 / 452 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04278/0.3428, allocations: 7.35 MB / 459.4 MB, free: 9.773 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.42/12.76, allocations: 15.89 kB / 459.4 MB, free: 9.758 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_DemoPowerSupplyWithBuffer_fmu --startTime=0 --stopTime=1 --stepSize=1.00001e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_DemoPowerSupplyWithBuffer.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 18.00753985811025]