Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.BUF3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bUF3S.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S") translateModel(Modelica.Electrical.Digital.Examples.BUF3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bUF3S.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001466/0.001466, allocations: 111.1 kB / 17.06 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001701/0.001701, allocations: 191 kB / 18 MB, free: 4.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009584/0.0009584, allocations: 47.92 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3234/0.3244, allocations: 49.43 MB / 400.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.002647/0.3271, allocations: 1.526 MB / 402.2 MB, free: 7.355 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001864/0.329, allocations: 0.8442 MB / 403.1 MB, free: 6.508 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.471e-05/0.329, allocations: 0 / 403.1 MB, free: 6.508 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001096/0.3292, allocations: 11.86 kB / 403.1 MB, free: 6.496 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.618e-05/0.3293, allocations: 23.86 kB / 403.1 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002653/0.3295, allocations: 51.88 kB / 403.2 MB, free: 6.422 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002186/0.3298, allocations: 147.7 kB / 403.3 MB, free: 6.277 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001215/0.3299, allocations: 31.98 kB / 403.3 MB, free: 6.246 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004565/0.3304, allocations: 387.2 kB / 403.7 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001286/0.3305, allocations: 63.75 kB / 403.8 MB, free: 5.805 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.907e-05/0.3305, allocations: 12 kB / 403.8 MB, free: 5.793 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.045e-05/0.3306, allocations: 11.94 kB / 403.8 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001137/0.3307, allocations: 67.7 kB / 403.9 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000126/0.3308, allocations: 111.2 kB / 404 MB, free: 5.605 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003683/0.3312, allocations: 362.7 kB / 404.3 MB, free: 5.25 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3312, allocations: 0 / 404.3 MB, free: 5.25 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3312, allocations: 0 / 404.3 MB, free: 5.25 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.61e-06/0.3312, allocations: 0 / 404.3 MB, free: 5.25 MB / 318.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.0007945/0.332, allocations: 0.72 MB / 405.1 MB, free: 4.461 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.3321, allocations: 8.031 kB / 405.1 MB, free: 4.453 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.992e-05/0.3322, allocations: 40.5 kB / 405.1 MB, free: 4.414 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000288/0.3325, allocations: 274.3 kB / 405.4 MB, free: 4.105 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.931e-05/0.3325, allocations: 12.38 kB / 405.4 MB, free: 4.094 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.795e-05/0.3325, allocations: 4.375 kB / 405.4 MB, free: 4.09 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002841/0.3328, allocations: 129.8 kB / 405.5 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.3328, allocations: 0 / 405.5 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.295e-05/0.3329, allocations: 4 kB / 405.5 MB, free: 3.957 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.3329, allocations: 4 kB / 405.5 MB, free: 3.953 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001412/0.333, allocations: 55.97 kB / 405.6 MB, free: 3.898 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006573/0.3337, allocations: 464.4 kB / 406 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00018/0.3339, allocations: 94.55 kB / 406.1 MB, free: 3.293 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001463/0.334, allocations: 80.89 kB / 406.2 MB, free: 3.211 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.918e-06/0.3341, allocations: 3.984 kB / 406.2 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003497/0.3344, allocations: 202.6 kB / 406.4 MB, free: 2.984 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.453e-06/0.3344, allocations: 0 / 406.4 MB, free: 2.984 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008232/0.3352, allocations: 468 kB / 406.9 MB, free: 2.496 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.329e-05/0.3354, allocations: 170.2 kB / 407 MB, free: 2.293 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006204/0.336, allocations: 0.5091 MB / 407.5 MB, free: 1.77 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.513e-05/0.336, allocations: 33.7 kB / 407.6 MB, free: 1.73 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.547e-05/0.3361, allocations: 105 kB / 407.7 MB, free: 1.625 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.413e-05/0.3362, allocations: 31.7 kB / 407.7 MB, free: 1.594 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/0.3363, allocations: 77.41 kB / 407.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.3364, allocations: 330.8 kB / 408.1 MB, free: 1.18 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.3365, allocations: 55.97 kB / 408.2 MB, free: 1.125 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001445/0.3367, allocations: 73.62 kB / 408.2 MB, free: 1.047 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000335/0.337, allocations: 339.2 kB / 408.6 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.3371, allocations: 4 kB / 408.6 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005281/0.3376, allocations: 372.3 kB / 408.9 MB, free: 268 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001475/0.3377, allocations: 122.8 kB / 409 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.3378, allocations: 4 kB / 409 MB, free: 116 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.184e-05/0.3378, allocations: 0 / 409 MB, free: 116 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.712e-05/0.3378, allocations: 3.938 kB / 409.1 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.3378, allocations: 112 / 409.1 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001388/0.338, allocations: 23.77 kB / 409.1 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.881e-05/0.338, allocations: 40.12 kB / 409.1 MB, free: 48 kB / 318.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.0003441/0.3384, allocations: 370.3 kB / 409.5 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.788e-05/0.3384, allocations: 35.62 kB / 409.5 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000102/0.3385, allocations: 67.14 kB / 409.6 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.3386, allocations: 7.984 kB / 409.6 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.3386, allocations: 0 / 409.6 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-06/0.3386, allocations: 0 / 409.6 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009548/0.3395, allocations: 0.809 MB / 410.4 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.3396, allocations: 4 kB / 410.4 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.077e-06/0.3396, allocations: 0 / 410.4 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.3396, allocations: 4 kB / 410.4 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.476e-05/0.3396, allocations: 8 kB / 410.4 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.3396, allocations: 3.984 kB / 410.4 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.3396, allocations: 3.938 kB / 410.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006127/0.3402, allocations: 0.5174 MB / 410.9 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002965/0.3405, allocations: 240.5 kB / 411.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.945e-05/0.3406, allocations: 15.98 kB / 411.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001336/0.3408, allocations: 12 kB / 411.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.3409, allocations: 31.89 kB / 411.2 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.29e-05/0.3409, allocations: 40 kB / 411.3 MB, free: 13.72 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004615/0.3414, allocations: 394.8 kB / 411.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3414, allocations: 0 / 411.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002998/0.3417, allocations: 47.91 kB / 411.7 MB, free: 13.29 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.0001457/0.3419, allocations: 115 kB / 411.8 MB, free: 13.17 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005752/0.3424, allocations: 437.5 kB / 412.2 MB, free: 12.69 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.3425, allocations: 0 / 412.2 MB, free: 12.69 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003575/0.3428, allocations: 377.8 kB / 412.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007065/0.3435, allocations: 120 kB / 412.7 MB, free: 12.17 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001141/0.3447, allocations: 0.6538 MB / 413.4 MB, free: 11.49 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005187/0.3452, allocations: 0.8098 MB / 414.2 MB, free: 10.65 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.469e-05/0.3453, allocations: 20.7 kB / 414.2 MB, free: 10.63 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.017e-05/0.3453, allocations: 11.44 kB / 414.2 MB, free: 10.62 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3453, allocations: 0 / 414.2 MB, free: 10.62 MB / 334.1 MB Notification: Performance of Templates: time 0.007654/0.353, allocations: 4.372 MB / 418.6 MB, free: 6.281 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/BUF3S/BUF3S.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches