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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001133/0.001132, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001621/0.001621, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.337/1.337, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 59.91 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2815/0.2829, allocations: 50.56 MB / 408.8 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.00261/0.2855, allocations: 1.516 MB / 410.3 MB, free: 64 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001782/0.2873, allocations: 0.8926 MB / 411.2 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.003e-05/0.2874, allocations: 0 / 411.2 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.979e-05/0.2875, allocations: 7.922 kB / 411.2 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.414e-05/0.2876, allocations: 23.78 kB / 411.2 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002498/0.2879, allocations: 43.89 kB / 411.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002084/0.2881, allocations: 151.8 kB / 411.4 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.513e-05/0.2882, allocations: 19.98 kB / 411.4 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004086/0.2886, allocations: 391.2 kB / 411.8 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001294/0.2887, allocations: 59.77 kB / 411.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.913e-05/0.2888, allocations: 12 kB / 411.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.741e-05/0.2888, allocations: 8 kB / 411.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.94e-05/0.2889, allocations: 71.7 kB / 411.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001194/0.289, allocations: 115.2 kB / 412.1 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003454/0.2894, allocations: 346.8 kB / 412.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2894, allocations: 0 / 412.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.2894, allocations: 0 / 412.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.856e-06/0.2894, allocations: 3.984 kB / 412.4 MB, free: 13.93 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.0007882/0.2902, allocations: 0.7243 MB / 413.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.2903, allocations: 12.02 kB / 413.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.217e-05/0.2903, allocations: 38.75 kB / 413.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.669e-05/0.2904, allocations: 40.56 kB / 413.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003365/0.2907, allocations: 278.2 kB / 413.5 MB, free: 12.72 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.895e-05/0.2908, allocations: 8.375 kB / 413.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.323e-05/0.2908, allocations: 12.38 kB / 413.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003037/0.2911, allocations: 121.7 kB / 413.6 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.2912, allocations: 0 / 413.6 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.113e-05/0.2912, allocations: 4 kB / 413.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.2912, allocations: 0 / 413.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001449/0.2913, allocations: 59.95 kB / 413.7 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006698/0.292, allocations: 460.5 kB / 414.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001809/0.2922, allocations: 98.53 kB / 414.2 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001482/0.2924, allocations: 80.89 kB / 414.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.193e-05/0.2924, allocations: 0 / 414.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003883/0.2928, allocations: 206.6 kB / 414.5 MB, free: 11.6 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.533e-06/0.2928, allocations: 4 kB / 414.5 MB, free: 11.6 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007911/0.2936, allocations: 463.9 kB / 415 MB, free: 11.11 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.104e-05/0.2937, allocations: 170.2 kB / 415.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005648/0.2943, allocations: 0.513 MB / 415.7 MB, free: 10.38 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.482e-05/0.2943, allocations: 29.7 kB / 415.7 MB, free: 10.35 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.363e-05/0.2944, allocations: 105 kB / 415.8 MB, free: 10.24 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.836e-05/0.2944, allocations: 31.64 kB / 415.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.698e-05/0.2945, allocations: 73.42 kB / 415.9 MB, free: 10.13 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.2946, allocations: 330.8 kB / 416.2 MB, free: 9.801 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001239/0.2948, allocations: 59.97 kB / 416.3 MB, free: 9.742 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001198/0.2949, allocations: 69.73 kB / 416.3 MB, free: 9.668 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003084/0.2952, allocations: 347.2 kB / 416.7 MB, free: 9.273 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2952, allocations: 0 / 416.7 MB, free: 9.273 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004719/0.2957, allocations: 387.7 kB / 417.1 MB, free: 8.867 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.3e-05/0.2958, allocations: 122.8 kB / 417.2 MB, free: 8.723 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.2958, allocations: 8.031 kB / 417.2 MB, free: 8.715 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.2958, allocations: 0 / 417.2 MB, free: 8.715 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.24e-05/0.2959, allocations: 3.984 kB / 417.2 MB, free: 8.711 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.2959, allocations: 0 / 417.2 MB, free: 8.711 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001282/0.296, allocations: 12 kB / 417.2 MB, free: 8.699 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.482e-05/0.2961, allocations: 36 kB / 417.2 MB, free: 8.664 MB / 334.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.0003478/0.2964, allocations: 366.1 kB / 417.6 MB, free: 8.273 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.556e-05/0.2965, allocations: 39.61 kB / 417.6 MB, free: 8.234 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001069/0.2966, allocations: 75.14 kB / 417.7 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.2966, allocations: 0 / 417.7 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.2966, allocations: 0 / 417.7 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.2966, allocations: 0 / 417.7 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009278/0.2975, allocations: 0.8055 MB / 418.5 MB, free: 7.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.2976, allocations: 0 / 418.5 MB, free: 7.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.937e-06/0.2976, allocations: 0 / 418.5 MB, free: 7.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.2976, allocations: 0 / 418.5 MB, free: 7.27 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.769e-05/0.2976, allocations: 19.92 kB / 418.5 MB, free: 7.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.2976, allocations: 0 / 418.5 MB, free: 7.25 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.2976, allocations: 7.938 kB / 418.5 MB, free: 7.242 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005832/0.2982, allocations: 0.5136 MB / 419 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002994/0.2985, allocations: 252.4 kB / 419.3 MB, free: 6.422 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.685e-05/0.2986, allocations: 12.25 kB / 419.3 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001242/0.2987, allocations: 12 kB / 419.3 MB, free: 6.398 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.18e-05/0.2988, allocations: 31.91 kB / 419.3 MB, free: 6.367 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.393e-05/0.2989, allocations: 43.92 kB / 419.4 MB, free: 6.324 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004161/0.2993, allocations: 390.9 kB / 419.8 MB, free: 5.945 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2993, allocations: 7.875 kB / 419.8 MB, free: 5.938 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002705/0.2996, allocations: 44 kB / 419.8 MB, free: 5.895 MB / 334.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.0009089/0.3005, allocations: 1.07 MB / 420.9 MB, free: 4.773 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004855/0.301, allocations: 437.5 kB / 421.3 MB, free: 4.297 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.301, allocations: 0 / 421.3 MB, free: 4.297 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003022/0.3013, allocations: 377.5 kB / 421.7 MB, free: 3.879 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006227/0.3019, allocations: 122.4 kB / 421.8 MB, free: 3.77 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003063/0.305, allocations: 2.751 MB / 424.6 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003885/0.3054, allocations: 0.8022 MB / 425.4 MB, free: 80 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.032e-05/0.3055, allocations: 12.64 kB / 425.4 MB, free: 68 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.726e-05/0.3055, allocations: 31.42 kB / 425.4 MB, free: 36 kB / 334.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3055, allocations: 0 / 425.4 MB, free: 36 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02038/0.3259, allocations: 5.859 MB / 431.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.604/7.93, allocations: 15.38 kB / 431.3 MB, free: 10.24 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_BUF3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_BUF3S.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) "" Variables in the reference:time,bUF3S.y Variables in the result:bUF3S.enable,bUF3S.strength,bUF3S.tHL,bUF3S.tLH,bUF3S.x,bUF3S.y,e_table.n,e_table.t[1],e_table.t[2],e_table.t[3],e_table.x[1],e_table.x[2],e_table.x[3],e_table.y,e_table.y0,time,x_table.n,x_table.t[1],x_table.t[2],x_table.x[1],x_table.x[2],x_table.y,x_table.y0