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.001219/0.001219, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001335/0.001335, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.455/1.455, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.001463/0.001463, allocations: 47.92 kB / 373 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1055, allocations: 53.34 MB / 426.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.004186/0.1097, allocations: 2.631 MB / 429 MB, free: 2.156 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001292/0.111, allocations: 0.6739 MB / 429.6 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001143/0.1111, allocations: 7.938 kB / 429.6 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001402/0.1112, allocations: 35.66 kB / 429.7 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000161/0.1114, allocations: 83.27 kB / 429.8 MB, free: 1.352 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002849/0.1117, allocations: 91.86 kB / 429.9 MB, free: 1.262 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000426/0.1121, allocations: 366.7 kB / 430.2 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001768/0.1123, allocations: 64.88 kB / 430.3 MB, free: 0.832 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001778/0.1125, allocations: 139.5 kB / 430.4 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002225/0.1127, allocations: 159.4 kB / 430.6 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.435e-05/0.1128, allocations: 32 kB / 430.6 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.156e-05/0.1128, allocations: 32 kB / 430.6 MB, free: 488 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.056e-05/0.1129, allocations: 63.7 kB / 430.7 MB, free: 424 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001562/0.113, allocations: 147.3 kB / 430.8 MB, free: 276 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2106/0.3236, allocations: 325.5 kB / 431.2 MB, free: 8.352 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/0.3236, allocations: 1.859 kB / 431.2 MB, free: 8.352 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3236, allocations: 0 / 431.2 MB, free: 8.352 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.275e-05/0.3236, allocations: 0 / 431.2 MB, free: 8.352 MB / 350.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.001172/0.3248, allocations: 0.6439 MB / 431.8 MB, free: 7.859 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.3248, allocations: 9.938 kB / 431.8 MB, free: 7.859 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.425e-05/0.3249, allocations: 56.64 kB / 431.9 MB, free: 7.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.082e-05/0.325, allocations: 37.81 kB / 431.9 MB, free: 7.805 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003378/0.3253, allocations: 249 kB / 432.1 MB, free: 7.586 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.321e-05/0.3254, allocations: 101.4 kB / 432.2 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.319e-05/0.3255, allocations: 24.66 kB / 432.3 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005085/0.326, allocations: 259.4 kB / 432.5 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.326, allocations: 0 / 432.5 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.687e-05/0.326, allocations: 9.719 kB / 432.5 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.326, allocations: 6.844 kB / 432.5 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004977/0.3265, allocations: 195.4 kB / 432.7 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001078/0.3276, allocations: 0.8667 MB / 433.6 MB, free: 6.988 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004591/0.328, allocations: 191.2 kB / 433.8 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002963/0.3283, allocations: 115.9 kB / 433.9 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.91e-05/0.3284, allocations: 0 / 433.9 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003433/0.3287, allocations: 179.8 kB / 434.1 MB, free: 6.879 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.252e-06/0.3287, allocations: 3.062 kB / 434.1 MB, free: 6.879 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001432/0.3301, allocations: 489.4 kB / 434.6 MB, free: 6.734 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.391e-05/0.3302, allocations: 113.9 kB / 434.7 MB, free: 6.605 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001686/0.3304, allocations: 206.3 kB / 434.9 MB, free: 6.496 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.764e-05/0.3304, allocations: 32.05 kB / 434.9 MB, free: 6.465 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.182e-05/0.3305, allocations: 158 kB / 435.1 MB, free: 6.352 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.735e-05/0.3305, allocations: 68.48 kB / 435.1 MB, free: 6.312 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001015/0.3306, allocations: 54.78 kB / 435.2 MB, free: 6.293 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.793e-05/0.3307, allocations: 330.7 kB / 435.5 MB, free: 5.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002668/0.3309, allocations: 100.3 kB / 435.6 MB, free: 5.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002681/0.3312, allocations: 136.4 kB / 435.7 MB, free: 5.945 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000444/0.3316, allocations: 249.6 kB / 436 MB, free: 5.855 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.3316, allocations: 0 / 436 MB, free: 5.855 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007159/0.3324, allocations: 400.9 kB / 436.4 MB, free: 5.734 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.337e-05/0.3324, allocations: 68.53 kB / 436.4 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.3324, allocations: 0 / 436.4 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003345/0.3327, allocations: 108.2 kB / 436.5 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001883/0.3329, allocations: 35.56 kB / 436.6 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001923/0.3349, allocations: 2.072 MB / 438.6 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004583/0.3353, allocations: 72.98 kB / 438.7 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.765e-05/0.3353, allocations: 11.77 kB / 438.7 MB, free: 4.129 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.0001241/0.3355, allocations: 138.2 kB / 438.9 MB, free: 4.012 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.804e-05/0.3355, allocations: 31.48 kB / 438.9 MB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.971e-05/0.3356, allocations: 30.78 kB / 438.9 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.3356, allocations: 3.312 kB / 438.9 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.3356, allocations: 1.25 kB / 438.9 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.3356, allocations: 4.469 kB / 438.9 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003866/0.3359, allocations: 448.7 kB / 439.4 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.336, allocations: 4.031 kB / 439.4 MB, free: 3.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001553/0.3361, allocations: 26.61 kB / 439.4 MB, free: 3.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002455/0.3364, allocations: 103.9 kB / 439.5 MB, free: 3.672 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.73e-05/0.3364, allocations: 1.781 kB / 439.5 MB, free: 3.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00167/0.338, allocations: 2.08 MB / 441.6 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.338, allocations: 1.188 kB / 441.6 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008009/0.3388, allocations: 409.5 kB / 442 MB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.305e-05/0.3389, allocations: 113.2 kB / 442.1 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.166e-05/0.3389, allocations: 3.047 kB / 442.1 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002131/0.3392, allocations: 23.38 kB / 442.1 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.917e-05/0.3393, allocations: 28.14 kB / 442.1 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.808e-05/0.3393, allocations: 9.453 kB / 442.2 MB, free: 1.555 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001172/0.3394, allocations: 150.3 kB / 442.3 MB, free: 1.457 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3394, allocations: 0 / 442.3 MB, free: 1.457 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004148/0.3398, allocations: 88.73 kB / 442.4 MB, free: 1.441 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.0009819/0.3408, allocations: 0.9492 MB / 443.3 MB, free: 0.707 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008351/0.3416, allocations: 470.5 kB / 443.8 MB, free: 396 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.3416, allocations: 1 kB / 443.8 MB, free: 396 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004131/0.342, allocations: 245.3 kB / 444 MB, free: 232 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003295/0.3424, allocations: 50.64 kB / 444.1 MB, free: 212 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004433/0.3468, allocations: 2.725 MB / 446.8 MB, free: 14.4 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004307/0.3472, allocations: 0.7495 MB / 447.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001066/0.3473, allocations: 13.83 kB / 447.6 MB, free: 13.69 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001167/0.3475, allocations: 70.09 kB / 447.6 MB, free: 13.63 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3475, allocations: 0 / 447.6 MB, free: 13.63 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03735/0.3848, allocations: 7.164 MB / 454.8 MB, free: 12.33 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.79, allocations: 5.328 kB / 454.8 MB, free: 12.33 MB / 366.1 MB " [Timeout remaining time 648] (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: 16.90898524201475]