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.00127/0.001271, allocations: 118.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.001251/0.001252, allocations: 197.2 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.363/1.363, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00113/0.00113, allocations: 63.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2919/0.293, allocations: 50.55 MB / 408.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.002947/0.296, allocations: 1.517 MB / 410.3 MB, free: 0 / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002088/0.2981, allocations: 0.8848 MB / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.662e-05/0.2982, allocations: 4 kB / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.849e-05/0.2983, allocations: 7.875 kB / 411.2 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.355e-05/0.2984, allocations: 23.84 kB / 411.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002732/0.2987, allocations: 43.89 kB / 411.2 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002231/0.2989, allocations: 151.7 kB / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001264/0.2991, allocations: 23.98 kB / 411.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004313/0.2995, allocations: 391.2 kB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001356/0.2997, allocations: 59.77 kB / 411.9 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.748e-05/0.2997, allocations: 12 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.507e-05/0.2997, allocations: 8 kB / 411.9 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001026/0.2998, allocations: 71.69 kB / 411.9 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000119/0.3, allocations: 111.2 kB / 412.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003686/0.3003, allocations: 350.8 kB / 412.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.626e-06/0.3004, allocations: 4 kB / 412.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3004, allocations: 3.938 kB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.3004, allocations: 4 kB / 412.4 MB, free: 13.86 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.0007346/0.3011, allocations: 0.7165 MB / 413.1 MB, free: 13.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.3012, allocations: 12.03 kB / 413.1 MB, free: 13.06 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.501e-05/0.3012, allocations: 38.75 kB / 413.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.736e-05/0.3013, allocations: 40.55 kB / 413.2 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002787/0.3016, allocations: 278.2 kB / 413.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.785e-05/0.3016, allocations: 4.375 kB / 413.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.23e-05/0.3016, allocations: 12.38 kB / 413.5 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003044/0.3019, allocations: 133.7 kB / 413.6 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.302, allocations: 0 / 413.6 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.158e-05/0.302, allocations: 4 kB / 413.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.199e-06/0.302, allocations: 0 / 413.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001273/0.3021, allocations: 55.97 kB / 413.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006558/0.3028, allocations: 464.5 kB / 414.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001962/0.303, allocations: 98.55 kB / 414.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001366/0.3031, allocations: 80.89 kB / 414.3 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.687e-06/0.3032, allocations: 0 / 414.3 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003922/0.3036, allocations: 206.6 kB / 414.5 MB, free: 11.53 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.313e-06/0.3036, allocations: 0 / 414.5 MB, free: 11.53 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007256/0.3043, allocations: 459.9 kB / 415 MB, free: 11.05 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.863e-05/0.3044, allocations: 174.2 kB / 415.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005832/0.305, allocations: 0.513 MB / 415.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.979e-05/0.305, allocations: 29.7 kB / 415.7 MB, free: 10.28 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.806e-05/0.3051, allocations: 109 kB / 415.8 MB, free: 10.17 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.553e-05/0.3052, allocations: 19.72 kB / 415.8 MB, free: 10.15 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.3053, allocations: 81.41 kB / 415.9 MB, free: 10.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.3054, allocations: 326.8 kB / 416.2 MB, free: 9.738 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001163/0.3055, allocations: 51.97 kB / 416.3 MB, free: 9.688 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/0.3056, allocations: 81.73 kB / 416.3 MB, free: 9.602 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003082/0.306, allocations: 350.8 kB / 416.7 MB, free: 9.207 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.306, allocations: 0 / 416.7 MB, free: 9.207 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004693/0.3064, allocations: 372.4 kB / 417 MB, free: 8.812 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.777e-05/0.3065, allocations: 126.8 kB / 417.2 MB, free: 8.664 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.3065, allocations: 3.938 kB / 417.2 MB, free: 8.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.3066, allocations: 4 kB / 417.2 MB, free: 8.656 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.969e-05/0.3066, allocations: 32 / 417.2 MB, free: 8.656 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.339e-06/0.3066, allocations: 7.938 kB / 417.2 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000131/0.3067, allocations: 15.98 kB / 417.2 MB, free: 8.633 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.593e-05/0.3068, allocations: 40 kB / 417.2 MB, free: 8.594 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.0003169/0.3071, allocations: 366.2 kB / 417.6 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.556e-05/0.3072, allocations: 35.62 kB / 417.6 MB, free: 8.168 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.984e-05/0.3073, allocations: 67.14 kB / 417.7 MB, free: 8.098 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.3073, allocations: 4 kB / 417.7 MB, free: 8.094 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.3073, allocations: 3.984 kB / 417.7 MB, free: 8.09 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-06/0.3073, allocations: 4 kB / 417.7 MB, free: 8.086 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008806/0.3082, allocations: 0.8016 MB / 418.5 MB, free: 7.203 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.3082, allocations: 0 / 418.5 MB, free: 7.203 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.44e-06/0.3082, allocations: 4 kB / 418.5 MB, free: 7.199 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.3082, allocations: 0 / 418.5 MB, free: 7.199 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.511e-05/0.3083, allocations: 12 kB / 418.5 MB, free: 7.188 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.3083, allocations: 0 / 418.5 MB, free: 7.188 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.3083, allocations: 3.938 kB / 418.5 MB, free: 7.184 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000568/0.3088, allocations: 0.5214 MB / 419 MB, free: 6.621 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002727/0.3091, allocations: 252.4 kB / 419.3 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.171e-05/0.3092, allocations: 12.25 kB / 419.3 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001264/0.3093, allocations: 15.98 kB / 419.3 MB, free: 6.328 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.187e-05/0.3094, allocations: 27.91 kB / 419.3 MB, free: 6.301 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.15e-05/0.3095, allocations: 39.94 kB / 419.4 MB, free: 6.262 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004125/0.3099, allocations: 386.9 kB / 419.8 MB, free: 5.887 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3099, allocations: 3.938 kB / 419.8 MB, free: 5.883 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002629/0.3102, allocations: 44 kB / 419.8 MB, free: 5.84 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.0009239/0.3111, allocations: 1.089 MB / 420.9 MB, free: 4.703 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005116/0.3116, allocations: 433.5 kB / 421.3 MB, free: 4.23 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3116, allocations: 0 / 421.3 MB, free: 4.23 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004188/0.3121, allocations: 373.6 kB / 421.7 MB, free: 3.816 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006285/0.3127, allocations: 126.4 kB / 421.8 MB, free: 3.699 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003234/0.3159, allocations: 2.747 MB / 424.6 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004885/0.3164, allocations: 0.8021 MB / 425.4 MB, free: 16 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.641e-05/0.3165, allocations: 12.64 kB / 425.4 MB, free: 4 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.647e-05/0.3166, allocations: 31.45 kB / 425.4 MB, free: 15.97 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3166, allocations: 4 kB / 425.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02108/0.3377, allocations: 5.858 MB / 431.3 MB, free: 10.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.715/8.053, allocations: 3.844 kB / 431.3 MB, free: 10.18 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