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: translateModel(Modelica.Electrical.Digital.Examples.BUF3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bUF3S.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S") translateModel(Modelica.Electrical.Digital.Examples.BUF3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bUF3S.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00125/0.00125, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001442/0.001442, allocations: 204.9 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001521, allocations: 59.89 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2888/0.2904, allocations: 50.54 MB / 409.9 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.00382/0.2942, allocations: 1.525 MB / 411.5 MB, free: 64 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00292/0.2972, allocations: 0.8732 MB / 412.3 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.877e-05/0.2973, allocations: 4 kB / 412.3 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001275/0.2974, allocations: 11.86 kB / 412.3 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001161/0.2976, allocations: 23.84 kB / 412.4 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003438/0.2979, allocations: 51.88 kB / 412.4 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002827/0.2982, allocations: 139.7 kB / 412.6 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001269/0.2984, allocations: 27.98 kB / 412.6 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006172/0.299, allocations: 391.3 kB / 413 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001685/0.2992, allocations: 63.75 kB / 413 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.269e-05/0.2993, allocations: 8 kB / 413 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.763e-05/0.2993, allocations: 12 kB / 413 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001181/0.2995, allocations: 67.64 kB / 413.1 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001173/0.2996, allocations: 115.2 kB / 413.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003423/0.3, allocations: 358.7 kB / 413.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.3, allocations: 0 / 413.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.3, allocations: 0 / 413.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.337e-06/0.3, allocations: 0 / 413.6 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.0008615/0.3009, allocations: 0.7238 MB / 414.3 MB, free: 13.14 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.3009, allocations: 12.03 kB / 414.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.381e-05/0.301, allocations: 32.56 kB / 414.3 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003046/0.3013, allocations: 278.3 kB / 414.6 MB, free: 12.78 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.866e-05/0.3014, allocations: 4.375 kB / 414.6 MB, free: 12.78 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.287e-05/0.3014, allocations: 12.38 kB / 414.6 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003042/0.3017, allocations: 125.9 kB / 414.7 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.3017, allocations: 0 / 414.7 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.435e-05/0.3018, allocations: 4 kB / 414.8 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.408e-06/0.3018, allocations: 4 kB / 414.8 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001561/0.3019, allocations: 63.89 kB / 414.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009183/0.3029, allocations: 452.5 kB / 415.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000284/0.3032, allocations: 98.55 kB / 415.4 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002483/0.3034, allocations: 88.8 kB / 415.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.516e-05/0.3035, allocations: 0 / 415.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004943/0.304, allocations: 198.7 kB / 415.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 2.615e-06/0.304, allocations: 0 / 415.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.001169/0.3052, allocations: 467.5 kB / 416.1 MB, free: 11.18 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001253/0.3053, allocations: 174.1 kB / 416.3 MB, free: 10.97 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009368/0.3063, allocations: 0.513 MB / 416.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.495e-05/0.3063, allocations: 33.7 kB / 416.8 MB, free: 10.4 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.432e-05/0.3064, allocations: 101 kB / 416.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.957e-05/0.3065, allocations: 23.72 kB / 416.9 MB, free: 10.28 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001751/0.3067, allocations: 81.41 kB / 417 MB, free: 10.19 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.3068, allocations: 326.8 kB / 417.3 MB, free: 9.863 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001977/0.307, allocations: 55.97 kB / 417.4 MB, free: 9.809 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000211/0.3073, allocations: 77.62 kB / 417.5 MB, free: 9.727 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004996/0.3078, allocations: 343.2 kB / 417.8 MB, free: 9.336 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.3078, allocations: 4 kB / 417.8 MB, free: 9.332 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0008226/0.3087, allocations: 368.3 kB / 418.2 MB, free: 8.941 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001281/0.3088, allocations: 133.7 kB / 418.3 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.3088, allocations: 3.938 kB / 418.3 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.354e-05/0.3089, allocations: 0 / 418.3 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.083e-05/0.3089, allocations: 4 kB / 418.3 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.094e-06/0.3089, allocations: 4.031 kB / 418.3 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002158/0.3092, allocations: 15.89 kB / 418.3 MB, free: 8.762 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.162e-05/0.3093, allocations: 36 kB / 418.4 MB, free: 8.727 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.0004642/0.3097, allocations: 378.1 kB / 418.7 MB, free: 8.324 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.589e-05/0.3098, allocations: 35.62 kB / 418.8 MB, free: 8.289 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001605/0.31, allocations: 67.14 kB / 418.8 MB, free: 8.219 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.31, allocations: 128 / 418.8 MB, free: 8.219 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.31, allocations: 4 kB / 418.8 MB, free: 8.215 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.3101, allocations: 0 / 418.8 MB, free: 8.215 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001432/0.3115, allocations: 0.8134 MB / 419.6 MB, free: 7.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.3115, allocations: 0 / 419.6 MB, free: 7.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.492e-06/0.3115, allocations: 0 / 419.6 MB, free: 7.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.3115, allocations: 0 / 419.6 MB, free: 7.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.704e-05/0.3116, allocations: 15.98 kB / 419.7 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.3116, allocations: 0 / 419.7 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.3116, allocations: 3.938 kB / 419.7 MB, free: 7.301 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009861/0.3126, allocations: 0.5209 MB / 420.2 MB, free: 6.742 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004888/0.3131, allocations: 244.4 kB / 420.4 MB, free: 6.484 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.928e-05/0.3132, allocations: 15.98 kB / 420.4 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001642/0.3134, allocations: 8 kB / 420.4 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.3135, allocations: 31.84 kB / 420.5 MB, free: 6.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.199e-05/0.3136, allocations: 39.94 kB / 420.5 MB, free: 6.391 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000612/0.3142, allocations: 390.9 kB / 420.9 MB, free: 6.012 MB / 334.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.3142, allocations: 0 / 420.9 MB, free: 6.012 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003849/0.3146, allocations: 48 kB / 420.9 MB, free: 5.965 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.0001836/0.3148, allocations: 115 kB / 421.1 MB, free: 5.844 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007766/0.3156, allocations: 433.5 kB / 421.5 MB, free: 5.371 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3156, allocations: 3.938 kB / 421.5 MB, free: 5.367 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004758/0.3161, allocations: 385.5 kB / 421.9 MB, free: 4.941 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009953/0.3171, allocations: 125.8 kB / 422 MB, free: 4.828 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0016/0.3187, allocations: 0.6945 MB / 422.7 MB, free: 4.098 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005934/0.3194, allocations: 0.8022 MB / 423.5 MB, free: 3.27 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.465e-05/0.3194, allocations: 11.44 kB / 423.5 MB, free: 3.258 MB / 334.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3194, allocations: 0 / 423.5 MB, free: 3.258 MB / 334.1 MB Notification: Performance of Templates: time 0.006542/0.326, allocations: 2.523 MB / 426 MB, free: 0.7422 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.makefile (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 & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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) Reference file matches