Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.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.001288/0.001288, allocations: 114 kB / 20.44 MB, free: 1.469 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.001415/0.001415, allocations: 214.1 kB / 23.74 MB, free: 4.695 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.447/1.447, allocations: 230.5 MB / 257.4 MB, free: 8.012 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.Digital.Examples.BUF3S,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003037/0.003037, allocations: 55.91 kB / 377.8 MB, free: 3.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3063/0.3094, allocations: 53.41 MB / 431.2 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.003011/0.3124, allocations: 1.537 MB / 432.7 MB, free: 5.141 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002028/0.3144, allocations: 0.8965 MB / 433.6 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.837e-05/0.3145, allocations: 0 / 433.6 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.819e-05/0.3146, allocations: 15.8 kB / 433.6 MB, free: 4.223 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.746e-05/0.3147, allocations: 23.84 kB / 433.7 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003135/0.315, allocations: 55.88 kB / 433.7 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002317/0.3152, allocations: 131.7 kB / 433.8 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.872e-05/0.3153, allocations: 19.98 kB / 433.9 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004795/0.3158, allocations: 391.3 kB / 434.2 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001413/0.3159, allocations: 63.75 kB / 434.3 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.988e-05/0.316, allocations: 12 kB / 434.3 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.595e-05/0.316, allocations: 15.94 kB / 434.3 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.324e-05/0.3161, allocations: 71.69 kB / 434.4 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001225/0.3162, allocations: 107.2 kB / 434.5 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003829/0.3166, allocations: 358.9 kB / 434.9 MB, free: 3 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.3166, allocations: 0 / 434.9 MB, free: 3 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3166, allocations: 4 kB / 434.9 MB, free: 2.996 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.3166, allocations: 0 / 434.9 MB, free: 2.996 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007611/0.3174, allocations: 0.6552 MB / 435.5 MB, free: 2.285 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.3174, allocations: 12.03 kB / 435.5 MB, free: 2.273 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.858e-05/0.3175, allocations: 42.75 kB / 435.6 MB, free: 2.223 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.717e-05/0.3175, allocations: 40.64 kB / 435.6 MB, free: 2.184 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002861/0.3178, allocations: 212.9 kB / 435.8 MB, free: 1.949 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.069e-05/0.3178, allocations: 8.375 kB / 435.8 MB, free: 1.941 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.293e-05/0.3179, allocations: 8.375 kB / 435.8 MB, free: 1.934 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002821/0.3181, allocations: 121.7 kB / 435.9 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.3181, allocations: 0 / 435.9 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.964e-05/0.3182, allocations: 4 kB / 436 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.3182, allocations: 3.984 kB / 436 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001362/0.3183, allocations: 59.91 kB / 436 MB, free: 1.742 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006725/0.319, allocations: 435.6 kB / 436.4 MB, free: 1.273 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001681/0.3192, allocations: 74.48 kB / 436.5 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001284/0.3193, allocations: 56.89 kB / 436.6 MB, free: 1.133 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.334e-05/0.3193, allocations: 3.984 kB / 436.6 MB, free: 1.129 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003716/0.3197, allocations: 202.3 kB / 436.8 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.483e-06/0.3197, allocations: 4 kB / 436.8 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007763/0.3204, allocations: 463.9 kB / 437.2 MB, free: 436 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001185/0.3206, allocations: 174.1 kB / 437.4 MB, free: 224 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006745/0.3212, allocations: 0.513 MB / 437.9 MB, free: 15.69 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.526e-05/0.3213, allocations: 29.7 kB / 437.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.453e-05/0.3213, allocations: 101.1 kB / 438 MB, free: 15.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.816e-05/0.3214, allocations: 23.86 kB / 438.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001175/0.3215, allocations: 89.5 kB / 438.1 MB, free: 15.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.3216, allocations: 326.8 kB / 438.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001182/0.3218, allocations: 51.98 kB / 438.5 MB, free: 15.06 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001275/0.3219, allocations: 80.7 kB / 438.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000345/0.3222, allocations: 339.2 kB / 438.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3222, allocations: 0 / 438.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006197/0.3229, allocations: 368.3 kB / 439.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.613e-05/0.323, allocations: 133.3 kB / 439.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.323, allocations: 0 / 439.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.323, allocations: 4 kB / 439.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.803e-05/0.323, allocations: 0 / 439.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.323, allocations: 0 / 439.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001237/0.3231, allocations: 11.95 kB / 439.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.087e-05/0.3232, allocations: 43.97 kB / 439.5 MB, free: 13.99 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.t_next,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.x,$PRE.bUF3S.inertialDelaySensitive.x,bUF3S.yy,bUF3S.nextstate,x_table.y,e_table.y,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003613/0.3235, allocations: 370.1 kB / 439.8 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.018e-05/0.3236, allocations: 39.94 kB / 439.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001045/0.3237, allocations: 63.09 kB / 439.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.3237, allocations: 4 kB / 439.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.3237, allocations: 0 / 439.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.3237, allocations: 0 / 439.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009939/0.3247, allocations: 0.7928 MB / 440.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.3247, allocations: 0 / 440.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.789e-06/0.3247, allocations: 0 / 440.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.3247, allocations: 4 kB / 440.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.74e-05/0.3248, allocations: 11.98 kB / 440.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.3248, allocations: 4 kB / 440.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.3248, allocations: 7.875 kB / 440.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006575/0.3254, allocations: 0.5249 MB / 441.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003748/0.3258, allocations: 197.4 kB / 441.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.365e-05/0.3258, allocations: 12 kB / 441.5 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001238/0.326, allocations: 11.94 kB / 441.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001167/0.3261, allocations: 23.91 kB / 441.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.439e-05/0.3262, allocations: 59.91 kB / 441.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005014/0.3267, allocations: 382.9 kB / 442 MB, free: 11.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3267, allocations: 0 / 442 MB, free: 11.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002772/0.3269, allocations: 44 kB / 442 MB, free: 11.32 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,bUF3S.nextstate,bUF3S.yy,bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,bUF3S.yy,bUF3S.nextstate,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.t_next,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001087/0.328, allocations: 1.078 MB / 443.1 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000491/0.3285, allocations: 373.5 kB / 443.4 MB, free: 9.773 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3285, allocations: 0 / 443.4 MB, free: 9.773 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002913/0.3288, allocations: 301.6 kB / 443.7 MB, free: 9.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006087/0.3294, allocations: 126.3 kB / 443.9 MB, free: 9.316 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003501/0.3329, allocations: 2.74 MB / 446.6 MB, free: 6.465 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000529/0.3334, allocations: 0.81 MB / 447.4 MB, free: 5.629 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.481e-05/0.3335, allocations: 8.656 kB / 447.4 MB, free: 5.621 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.243e-05/0.3336, allocations: 31.42 kB / 447.5 MB, free: 5.59 MB / 350.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3336, allocations: 0 / 447.5 MB, free: 5.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03265/0.3662, allocations: 5.955 MB / 453.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.7/11.07, allocations: 4.062 kB / 453.4 MB, free: 15.74 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S_res.csv --start-time 0 --stop-time 12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0023933 Modelica_trunk_Modelica_Electrical_Digital_Examples_BUF3S.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/BUF3S/BUF3S.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable bUF3S.y in file Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S_res.csv. Warning: Get data of variable bUF3S.y from file Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.552468727000814]