Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Digital.Examples.BUF3S.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.001632/0.001632, allocations: 92.31 kB / 20.96 MB, free: 3.473 MB / 18.57 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.001926/0.001926, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 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.462/1.462, allocations: 177.1 MB / 204.6 MB, free: 5.602 MB / 186.7 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: translateModel(Modelica.Electrical.Digital.Examples.BUF3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|bUF3S.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Digital.Examples.BUF3S") translateModel(Modelica.Electrical.Digital.Examples.BUF3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|bUF3S.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Digital.Examples.BUF3S") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.893e-06/1.893e-06, allocations: 0 / 272.3 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.78e-05/2.97e-05, allocations: 2.312 kB / 272.3 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.003015/0.003044, allocations: 1.507 MB / 273.8 MB, free: 320 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002333/0.005377, allocations: 0.8264 MB / 274.7 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.559e-05/0.005453, allocations: 0 / 274.7 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000126/0.005579, allocations: 15.86 kB / 274.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001124/0.005691, allocations: 23.8 kB / 274.7 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003195/0.00601, allocations: 51.86 kB / 274.7 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002607/0.006271, allocations: 135.7 kB / 274.9 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001231/0.006394, allocations: 19.98 kB / 274.9 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006115/0.007006, allocations: 407.2 kB / 275.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000153/0.007159, allocations: 63.81 kB / 275.4 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.843e-05/0.007207, allocations: 8 kB / 275.4 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.541e-05/0.007243, allocations: 12 kB / 275.4 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001174/0.00736, allocations: 71.64 kB / 275.4 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001095/0.00747, allocations: 51.8 kB / 275.5 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004579/0.007928, allocations: 354.8 kB / 275.8 MB, free: 14.29 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.007931, allocations: 0 / 275.8 MB, free: 14.29 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.041e-06/0.007932, allocations: 0 / 275.8 MB, free: 14.29 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.00794, allocations: 0 / 275.8 MB, free: 14.29 MB / 266.7 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.0009653/0.008905, allocations: 0.6552 MB / 276.5 MB, free: 13.58 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.008944, allocations: 8.031 kB / 276.5 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001218/0.009066, allocations: 48.69 kB / 276.5 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003326/0.009399, allocations: 220.1 kB / 276.8 MB, free: 13.28 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.487e-05/0.009424, allocations: 8.375 kB / 276.8 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.582e-05/0.00945, allocations: 8.375 kB / 276.8 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004424/0.009892, allocations: 245 kB / 277 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.009905, allocations: 4.125 kB / 277 MB, free: 12.99 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.463e-05/0.00993, allocations: 4.375 kB / 277 MB, free: 12.99 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.009937, allocations: 3.938 kB / 277 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002642/0.0102, allocations: 182.8 kB / 277.2 MB, free: 12.78 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007151/0.01092, allocations: 384.2 kB / 277.6 MB, free: 12.38 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002996/0.01122, allocations: 193.3 kB / 277.8 MB, free: 12.15 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002393/0.01146, allocations: 175.8 kB / 277.9 MB, free: 11.95 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.81e-05/0.01147, allocations: 11.88 kB / 278 MB, free: 11.94 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005145/0.01199, allocations: 325.5 kB / 278.3 MB, free: 11.57 MB / 266.7 MB Notification: Performance of pre-optimization done (n=13): time 1.824e-06/0.01199, allocations: 0 / 278.3 MB, free: 11.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.001156/0.01315, allocations: 0.701 MB / 279 MB, free: 10.79 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001359/0.01328, allocations: 170.2 kB / 279.1 MB, free: 10.59 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007616/0.01404, allocations: 0.513 MB / 279.7 MB, free: 10.07 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.901e-05/0.01409, allocations: 33.7 kB / 279.7 MB, free: 10.03 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.117e-05/0.01418, allocations: 101.1 kB / 279.8 MB, free: 9.926 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.812e-05/0.01423, allocations: 27.84 kB / 279.8 MB, free: 9.898 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001414/0.01437, allocations: 85.44 kB / 279.9 MB, free: 9.809 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001904/0.01456, allocations: 326.8 kB / 280.2 MB, free: 9.48 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000234/0.0148, allocations: 170.8 kB / 280.4 MB, free: 9.289 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002376/0.01504, allocations: 192.5 kB / 280.6 MB, free: 9.07 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004661/0.0155, allocations: 351.3 kB / 280.9 MB, free: 8.672 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.0155, allocations: 0 / 280.9 MB, free: 8.672 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007901/0.01629, allocations: 0.5068 MB / 281.4 MB, free: 8.113 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001228/0.01642, allocations: 130.8 kB / 281.5 MB, free: 7.961 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.01642, allocations: 128 / 281.5 MB, free: 7.961 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.401e-05/0.01645, allocations: 4 kB / 281.6 MB, free: 7.957 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.802e-05/0.01648, allocations: 4 kB / 281.6 MB, free: 7.953 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.01648, allocations: 0 / 281.6 MB, free: 7.953 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001503/0.01663, allocations: 8 kB / 281.6 MB, free: 7.945 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.977e-05/0.0167, allocations: 43.98 kB / 281.6 MB, free: 7.902 MB / 266.7 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.00043/0.01713, allocations: 362.5 kB / 282 MB, free: 7.516 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.603e-05/0.01722, allocations: 55.73 kB / 282 MB, free: 7.461 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001126/0.01733, allocations: 63.09 kB / 282.1 MB, free: 7.402 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.01733, allocations: 4 kB / 282.1 MB, free: 7.398 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.01734, allocations: 3.938 kB / 282.1 MB, free: 7.395 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.01734, allocations: 0 / 282.1 MB, free: 7.395 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001183/0.01852, allocations: 0.8665 MB / 283 MB, free: 6.441 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.01853, allocations: 0 / 283 MB, free: 6.441 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.44e-06/0.01853, allocations: 0 / 283 MB, free: 6.441 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.01854, allocations: 4 kB / 283 MB, free: 6.438 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.834e-05/0.01857, allocations: 8 kB / 283 MB, free: 6.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.01857, allocations: 0 / 283 MB, free: 6.43 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/0.01857, allocations: 7.984 kB / 283 MB, free: 6.422 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008889/0.01946, allocations: 0.657 MB / 283.6 MB, free: 5.699 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003974/0.01986, allocations: 213.3 kB / 283.8 MB, free: 5.492 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.479e-05/0.01993, allocations: 8 kB / 283.8 MB, free: 5.484 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001445/0.02008, allocations: 12 kB / 283.9 MB, free: 5.473 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001155/0.02019, allocations: 19.97 kB / 283.9 MB, free: 5.453 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.945e-05/0.02026, allocations: 51.92 kB / 283.9 MB, free: 5.402 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0005594/0.02082, allocations: 386.9 kB / 284.3 MB, free: 5.027 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02082, allocations: 0 / 284.3 MB, free: 5.027 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000323/0.02114, allocations: 40 kB / 284.3 MB, free: 4.988 MB / 266.7 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.0001767/0.02132, allocations: 123.1 kB / 284.5 MB, free: 4.855 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007857/0.02211, allocations: 0.6046 MB / 285.1 MB, free: 4.152 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.02211, allocations: 4 kB / 285.1 MB, free: 4.148 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004466/0.02256, allocations: 428.3 kB / 285.5 MB, free: 3.656 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006911/0.02325, allocations: 138.1 kB / 285.6 MB, free: 3.531 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001403/0.02465, allocations: 0.7899 MB / 286.4 MB, free: 2.688 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002993/0.02495, allocations: 193.8 kB / 286.6 MB, free: 2.477 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.603e-05/0.02501, allocations: 8.719 kB / 286.6 MB, free: 2.465 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.663e-05/0.02504, allocations: 16.5 kB / 286.6 MB, free: 2.449 MB / 266.7 MB Notification: Performance of SimCode: time 6.41e-07/0.02504, allocations: 0 / 286.6 MB, free: 2.449 MB / 266.7 MB Notification: Performance of Templates: time 0.009669/0.03471, allocations: 4.76 MB / 291.4 MB, free: 13.76 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.BUF3S.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.BUF3S.sim & ./Modelica_4.1.0_Modelica.Electrical.Digital.Examples.BUF3S -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.BUF3S_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/BUF3S/BUF3S.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.BUF3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.5258001980837435]