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.001333/0.001333, allocations: 115.8 kB / 20.43 MB, free: 1.449 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.001416/0.001416, allocations: 216.6 kB / 23.74 MB, free: 4.656 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.498/1.498, allocations: 230.6 MB / 257.5 MB, free: 8.016 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.001503/0.001503, allocations: 51.92 kB / 377.8 MB, free: 3.082 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.233/0.2345, allocations: 53.36 MB / 431.2 MB, free: 6.812 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.004006/0.2385, allocations: 2.653 MB / 433.8 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001236/0.2397, allocations: 0.6778 MB / 434.5 MB, free: 3.469 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001138/0.2398, allocations: 4 kB / 434.5 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001377/0.24, allocations: 51.52 kB / 434.5 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000149/0.2401, allocations: 71.34 kB / 434.6 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002618/0.2404, allocations: 95.86 kB / 434.7 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004041/0.2408, allocations: 354.7 kB / 435.1 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001575/0.2409, allocations: 65.12 kB / 435.1 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000179/0.2411, allocations: 143.5 kB / 435.3 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002312/0.2414, allocations: 155.4 kB / 435.4 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.273e-05/0.2414, allocations: 35.94 kB / 435.4 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.16e-05/0.2415, allocations: 32 kB / 435.5 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.497e-05/0.2415, allocations: 59.77 kB / 435.5 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001549/0.2417, allocations: 143.3 kB / 435.7 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003864/0.2421, allocations: 330.7 kB / 436 MB, free: 1.949 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.2421, allocations: 4 kB / 436 MB, free: 1.945 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2421, allocations: 0 / 436 MB, free: 1.945 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.042e-05/0.2421, allocations: 0 / 436 MB, free: 1.945 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.001097/0.2432, allocations: 0.5711 MB / 436.6 MB, free: 1.332 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.2432, allocations: 8.031 kB / 436.6 MB, free: 1.324 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.275e-05/0.2433, allocations: 54.73 kB / 436.6 MB, free: 1.262 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.811e-05/0.2434, allocations: 36.75 kB / 436.7 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003539/0.2437, allocations: 203.3 kB / 436.9 MB, free: 1.004 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001368/0.2438, allocations: 153.5 kB / 437 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.193e-05/0.2439, allocations: 28.31 kB / 437 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000497/0.2444, allocations: 257.8 kB / 437.3 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.2444, allocations: 0 / 437.3 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.517e-05/0.2444, allocations: 8 kB / 437.3 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.262e-05/0.2444, allocations: 8 kB / 437.3 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004952/0.2449, allocations: 201.6 kB / 437.5 MB, free: 328 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00131/0.2463, allocations: 0.8274 MB / 438.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004639/0.2467, allocations: 190.6 kB / 438.5 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002925/0.247, allocations: 112.8 kB / 438.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.427e-05/0.247, allocations: 4 kB / 438.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003682/0.2474, allocations: 181.8 kB / 438.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.323e-06/0.2474, allocations: 0 / 438.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001349/0.2487, allocations: 413.6 kB / 439.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.355e-05/0.2488, allocations: 118.8 kB / 439.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002067/0.249, allocations: 202.8 kB / 439.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.735e-05/0.2491, allocations: 33.7 kB / 439.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001316/0.2492, allocations: 152.4 kB / 439.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.224e-05/0.2493, allocations: 75.39 kB / 439.8 MB, free: 13.9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000104/0.2494, allocations: 57.92 kB / 439.8 MB, free: 13.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.2495, allocations: 326.8 kB / 440.2 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002983/0.2498, allocations: 100.2 kB / 440.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002979/0.2501, allocations: 139.8 kB / 440.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004904/0.2506, allocations: 251.1 kB / 440.6 MB, free: 13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.2506, allocations: 3.938 kB / 440.6 MB, free: 12.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008059/0.2514, allocations: 407.5 kB / 441 MB, free: 12.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.628e-05/0.2515, allocations: 59.41 kB / 441.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.2515, allocations: 0 / 441.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003406/0.2518, allocations: 104.8 kB / 441.2 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001754/0.252, allocations: 35.91 kB / 441.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002384/0.2544, allocations: 1.969 MB / 443.2 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004672/0.2549, allocations: 67.89 kB / 443.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.931e-05/0.2549, allocations: 20.11 kB / 443.3 MB, free: 10.19 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.0001553/0.255, allocations: 139.8 kB / 443.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.827e-05/0.2551, allocations: 27.73 kB / 443.5 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.411e-05/0.2551, allocations: 29.8 kB / 443.5 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.2551, allocations: 4 kB / 443.5 MB, free: 9.988 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.2551, allocations: 4 kB / 443.5 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.2551, allocations: 0 / 443.5 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004893/0.2556, allocations: 422.2 kB / 443.9 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.2556, allocations: 0 / 443.9 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001555/0.2558, allocations: 31.91 kB / 443.9 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002562/0.256, allocations: 108.8 kB / 444 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.712e-05/0.2561, allocations: 4 kB / 444 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002263/0.2583, allocations: 1.969 MB / 446 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.2583, allocations: 4.031 kB / 446 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008399/0.2592, allocations: 402.5 kB / 446.4 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.497e-05/0.2592, allocations: 27.92 kB / 446.4 MB, free: 6.844 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.786e-05/0.2593, allocations: 11.98 kB / 446.5 MB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002032/0.2595, allocations: 24.05 kB / 446.5 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.391e-05/0.2596, allocations: 27.94 kB / 446.5 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.719e-05/0.2596, allocations: 8 kB / 446.5 MB, free: 6.773 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001402/0.2597, allocations: 144.6 kB / 446.7 MB, free: 6.633 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2597, allocations: 0 / 446.7 MB, free: 6.633 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004107/0.2601, allocations: 91.89 kB / 446.7 MB, free: 6.543 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.001282/0.2614, allocations: 0.9394 MB / 447.7 MB, free: 5.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00102/0.2624, allocations: 483.8 kB / 448.2 MB, free: 5.062 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.2625, allocations: 3.938 kB / 448.2 MB, free: 5.059 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000452/0.2629, allocations: 234.5 kB / 448.4 MB, free: 4.816 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003643/0.2633, allocations: 56.05 kB / 448.4 MB, free: 4.762 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004271/0.2675, allocations: 2.722 MB / 451.2 MB, free: 1.922 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004053/0.2679, allocations: 0.7519 MB / 451.9 MB, free: 1.145 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.467e-05/0.268, allocations: 17.94 kB / 451.9 MB, free: 1.129 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000117/0.2681, allocations: 71.41 kB / 452 MB, free: 1.059 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.2681, allocations: 4 kB / 452 MB, free: 1.055 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05335/0.3215, allocations: 7.336 MB / 459.3 MB, free: 9.891 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.75/13.07, allocations: 10.67 kB / 459.4 MB, free: 9.883 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: 18.448589304927737]