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.0009407/0.0009407, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 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.0008709/0.0008709, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8657/0.8657, allocations: 177 MB / 204.1 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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 1.823e-06/1.823e-06, allocations: 0 / 324.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.873e-05/2.055e-05, allocations: 3.125 kB / 324.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.002771/0.002791, allocations: 2.492 MB / 327 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001041/0.003832, allocations: 0.6544 MB / 327.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001063/0.003939, allocations: 4 kB / 327.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.71e-05/0.004036, allocations: 35.58 kB / 327.7 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001144/0.00415, allocations: 79.27 kB / 327.8 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002222/0.004372, allocations: 99.8 kB / 327.9 MB, free: 12.47 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002884/0.004661, allocations: 374.5 kB / 328.3 MB, free: 12.1 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001197/0.00478, allocations: 64.91 kB / 328.3 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001713/0.004952, allocations: 203.6 kB / 328.5 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001159/0.005067, allocations: 115.6 kB / 328.6 MB, free: 11.72 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.503e-05/0.005102, allocations: 35.94 kB / 328.7 MB, free: 11.69 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.913e-05/0.005132, allocations: 28 kB / 328.7 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.025e-05/0.005172, allocations: 59.75 kB / 328.8 MB, free: 11.6 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.061e-05/0.005252, allocations: 111.8 kB / 328.9 MB, free: 11.49 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002558/0.005508, allocations: 350.9 kB / 329.2 MB, free: 11.15 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.004e-06/0.00551, allocations: 4 kB / 329.2 MB, free: 11.14 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.005512, allocations: 0 / 329.2 MB, free: 11.14 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.005517, allocations: 0 / 329.2 MB, free: 11.14 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.0007225/0.006239, allocations: 0.5633 MB / 329.8 MB, free: 10.54 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.006279, allocations: 11.98 kB / 329.8 MB, free: 10.53 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.085e-05/0.00633, allocations: 62.72 kB / 329.9 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.324e-05/0.006383, allocations: 36.75 kB / 329.9 MB, free: 10.42 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002583/0.006641, allocations: 201.5 kB / 330.1 MB, free: 10.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.711e-05/0.006728, allocations: 153.6 kB / 330.2 MB, free: 10.02 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.18e-05/0.00676, allocations: 24.38 kB / 330.3 MB, free: 9.996 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004403/0.0072, allocations: 332.4 kB / 330.6 MB, free: 9.645 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.007212, allocations: 192 / 330.6 MB, free: 9.645 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.556e-05/0.007237, allocations: 19.88 kB / 330.6 MB, free: 9.625 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.782e-06/0.007244, allocations: 8 kB / 330.6 MB, free: 9.617 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003978/0.007642, allocations: 193.9 kB / 330.8 MB, free: 9.422 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.008695, allocations: 0.754 MB / 331.6 MB, free: 8.609 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003087/0.009003, allocations: 194.6 kB / 331.7 MB, free: 8.41 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001944/0.009198, allocations: 112.7 kB / 331.9 MB, free: 8.297 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.273e-05/0.009211, allocations: 0 / 331.9 MB, free: 8.297 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002853/0.009496, allocations: 262.8 kB / 332.1 MB, free: 8 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.332e-06/0.009497, allocations: 4 kB / 332.1 MB, free: 7.996 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008727/0.01037, allocations: 414.5 kB / 332.5 MB, free: 7.582 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.926e-05/0.01042, allocations: 106.8 kB / 332.6 MB, free: 7.453 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001402/0.01056, allocations: 203.1 kB / 332.8 MB, free: 7.246 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.718e-05/0.01059, allocations: 33.7 kB / 332.9 MB, free: 7.207 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.195e-05/0.01067, allocations: 156.4 kB / 333 MB, free: 7.051 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.471e-05/0.01071, allocations: 67.44 kB / 333.1 MB, free: 6.984 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.973e-05/0.01079, allocations: 57.95 kB / 333.1 MB, free: 6.922 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.883e-05/0.01088, allocations: 330.8 kB / 333.5 MB, free: 6.59 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001851/0.01107, allocations: 151.6 kB / 333.6 MB, free: 6.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002135/0.01128, allocations: 220.9 kB / 333.8 MB, free: 6.184 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003044/0.01158, allocations: 255 kB / 334.1 MB, free: 5.914 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.01159, allocations: 0 / 334.1 MB, free: 5.914 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005087/0.0121, allocations: 458.9 kB / 334.5 MB, free: 5.434 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.047e-05/0.01214, allocations: 67.34 kB / 334.6 MB, free: 5.355 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.01214, allocations: 3.984 kB / 334.6 MB, free: 5.352 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002418/0.01238, allocations: 116.8 kB / 334.7 MB, free: 5.234 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.01249, allocations: 27.98 kB / 334.7 MB, free: 5.207 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001497/0.01399, allocations: 1.961 MB / 336.7 MB, free: 3.133 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002285/0.01421, allocations: 63.83 kB / 336.7 MB, free: 3.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.719e-05/0.01423, allocations: 12.06 kB / 336.8 MB, free: 3.059 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 0.0001044/0.01434, allocations: 140.8 kB / 336.9 MB, free: 2.914 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.437e-05/0.01436, allocations: 23.8 kB / 336.9 MB, free: 2.891 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.493e-05/0.01438, allocations: 25.8 kB / 336.9 MB, free: 2.871 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.01439, allocations: 7.938 kB / 337 MB, free: 2.863 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-06/0.01439, allocations: 0 / 337 MB, free: 2.863 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.01439, allocations: 0 / 337 MB, free: 2.863 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003301/0.01472, allocations: 398.3 kB / 337.3 MB, free: 2.422 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.01473, allocations: 3.969 kB / 337.3 MB, free: 2.418 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.933e-05/0.01482, allocations: 27.98 kB / 337.4 MB, free: 2.391 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001764/0.01499, allocations: 112.7 kB / 337.5 MB, free: 2.277 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.01501, allocations: 4 kB / 337.5 MB, free: 2.273 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001448/0.01645, allocations: 1.946 MB / 339.4 MB, free: 216 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.01645, allocations: 0 / 339.4 MB, free: 216 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005891/0.01704, allocations: 408.6 kB / 339.8 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.669e-05/0.01711, allocations: 35.84 kB / 339.9 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.044e-05/0.01713, allocations: 4.281 kB / 339.9 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.85e-05/0.01723, allocations: 23.97 kB / 339.9 MB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.859e-05/0.01733, allocations: 27.95 kB / 339.9 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.387e-05/0.01734, allocations: 11.94 kB / 339.9 MB, free: 15.69 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001063/0.01745, allocations: 144.6 kB / 340.1 MB, free: 15.55 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01745, allocations: 0 / 340.1 MB, free: 15.55 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000327/0.01778, allocations: 95.83 kB / 340.2 MB, free: 15.46 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.0007174/0.01849, allocations: 0.938 MB / 341.1 MB, free: 14.48 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000588/0.01908, allocations: 0.524 MB / 341.6 MB, free: 13.91 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.01908, allocations: 0 / 341.6 MB, free: 13.91 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002439/0.01933, allocations: 234.5 kB / 341.9 MB, free: 13.67 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002231/0.01955, allocations: 59.14 kB / 341.9 MB, free: 13.61 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002574/0.02212, allocations: 2.934 MB / 344.9 MB, free: 10.5 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.266e-05/0.02222, allocations: 142.2 kB / 345 MB, free: 10.34 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.689e-05/0.02227, allocations: 17.94 kB / 345 MB, free: 10.32 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.036e-05/0.02234, allocations: 68.48 kB / 345.1 MB, free: 10.25 MB / 314.7 MB Notification: Performance of SimCode: time 7.61e-07/0.02234, allocations: 0 / 345.1 MB, free: 10.25 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01999/0.04234, allocations: 7.956 MB / 353 MB, free: 2.449 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.612/7.654, allocations: 2.812 kB / 353 MB, free: 2.449 MB / 314.7 MB " [Timeout remaining time 652] (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/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_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: 10.72425246797502]