Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S") translateModel(Modelica.Electrical.Digital.Examples.BUF3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bUF3S.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002365/0.002365, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.076/2.076, allocations: 205.2 MB / 219.4 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001203/0.001203, allocations: 82.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.099e-05/4.145e-05, allocations: 3.984 kB / 321.5 MB, free: 17.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.109, allocations: 47.59 MB / 369.1 MB, free: 2.211 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4081/0.5172, allocations: 81.8 MB / 450.9 MB, free: 11.34 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002551/0.5175, allocations: 69.16 kB / 451 MB, free: 11.3 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09619/0.6138, allocations: 27.04 MB / 478 MB, free: 2.371 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.634e-06/0.6138, allocations: 0 / 478 MB, free: 2.371 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.412e-05/0.6138, allocations: 4 kB / 478 MB, free: 2.367 MB / 346.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.0007843/0.6146, allocations: 0.6176 MB / 478.6 MB, free: 1.68 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/0.6147, allocations: 8.031 kB / 478.6 MB, free: 1.672 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.6148, allocations: 31.62 kB / 478.7 MB, free: 1.641 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004364/0.6153, allocations: 261.5 kB / 478.9 MB, free: 1.344 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.898e-05/0.6153, allocations: 8 kB / 478.9 MB, free: 1.336 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.187e-05/0.6154, allocations: 11.94 kB / 478.9 MB, free: 1.324 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004141/0.6158, allocations: 145.5 kB / 479.1 MB, free: 1.176 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.6158, allocations: 0 / 479.1 MB, free: 1.176 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.18e-05/0.6159, allocations: 4 kB / 479.1 MB, free: 1.172 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.336e-06/0.6159, allocations: 0 / 479.1 MB, free: 1.172 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002187/0.6161, allocations: 63.97 kB / 479.1 MB, free: 1.109 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00104/0.6172, allocations: 492.4 kB / 479.6 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002624/0.6175, allocations: 94.56 kB / 479.7 MB, free: 488 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002283/0.6177, allocations: 88.89 kB / 479.8 MB, free: 396 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.496e-06/0.6177, allocations: 0 / 479.8 MB, free: 396 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004729/0.6182, allocations: 226.7 kB / 480 MB, free: 144 kB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 2.444e-06/0.6182, allocations: 3.938 kB / 480 MB, free: 140 kB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.001068/0.6193, allocations: 432 kB / 480.4 MB, free: 15.68 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001189/0.6194, allocations: 166.2 kB / 480.6 MB, free: 15.48 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009345/0.6204, allocations: 470.4 kB / 481.1 MB, free: 15.02 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.851e-05/0.6205, allocations: 29.81 kB / 481.1 MB, free: 14.98 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.292e-05/0.6206, allocations: 163.5 kB / 481.3 MB, free: 14.82 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.906e-05/0.6206, allocations: 31.64 kB / 481.3 MB, free: 14.79 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.315e-05/0.6207, allocations: 8 kB / 481.3 MB, free: 14.78 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.6208, allocations: 318.8 kB / 481.6 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002064/0.6211, allocations: 59.98 kB / 481.7 MB, free: 14.4 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002015/0.6213, allocations: 69.09 kB / 481.7 MB, free: 14.34 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002617/0.6215, allocations: 171.3 kB / 481.9 MB, free: 14.14 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.6216, allocations: 0 / 481.9 MB, free: 14.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0009371/0.6225, allocations: 404.4 kB / 482.3 MB, free: 13.72 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001226/0.6226, allocations: 122.8 kB / 482.4 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.6227, allocations: 0 / 482.4 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.6227, allocations: 0 / 482.4 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.903e-05/0.6227, allocations: 12 kB / 482.4 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.07e-05/0.6228, allocations: 7.875 kB / 482.4 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000256/0.623, allocations: 12.05 kB / 482.4 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000206/0.6232, allocations: 127.7 kB / 482.6 MB, free: 13.42 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,bUF3S.nextstate,bUF3S.yy,$PRE.bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.x,$PRE.bUF3S.inertialDelaySensitive.y,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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002652/0.6235, allocations: 245.5 kB / 482.8 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.043e-05/0.6236, allocations: 43.48 kB / 482.9 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000237/0.6239, allocations: 67.42 kB / 482.9 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.6239, allocations: 0 / 482.9 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.6239, allocations: 4 kB / 482.9 MB, free: 13.03 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.6239, allocations: 3.984 kB / 482.9 MB, free: 13.03 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001557/0.6255, allocations: 0.833 MB / 483.8 MB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.6255, allocations: 0 / 483.8 MB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.849e-06/0.6255, allocations: 4 kB / 483.8 MB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.079e-06/0.6256, allocations: 0 / 483.8 MB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.5e-05/0.6256, allocations: 31.95 kB / 483.8 MB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.6256, allocations: 0 / 483.8 MB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.6256, allocations: 0 / 483.8 MB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001101/0.6268, allocations: 0.5486 MB / 484.3 MB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005778/0.6274, allocations: 256.4 kB / 484.6 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.944e-05/0.6275, allocations: 8 kB / 484.6 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002739/0.6278, allocations: 15.98 kB / 484.6 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001658/0.6279, allocations: 27.97 kB / 484.6 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001967/0.6281, allocations: 123.8 kB / 484.8 MB, free: 11.05 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007554/0.6289, allocations: 380.9 kB / 485.1 MB, free: 10.68 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.504e-06/0.6289, allocations: 4 kB / 485.1 MB, free: 10.67 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004263/0.6294, allocations: 47.94 kB / 485.2 MB, free: 10.62 MB / 362.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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001976/0.6296, allocations: 111 kB / 485.3 MB, free: 10.51 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008118/0.6304, allocations: 449.5 kB / 485.7 MB, free: 10.02 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.6304, allocations: 0 / 485.7 MB, free: 10.02 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004932/0.6309, allocations: 377.7 kB / 486.1 MB, free: 9.602 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008175/0.6318, allocations: 113.5 kB / 486.2 MB, free: 9.488 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001549/0.6333, allocations: 0.5873 MB / 486.8 MB, free: 8.863 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005919/0.6339, allocations: 0.8103 MB / 487.6 MB, free: 8.023 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.106e-05/0.634, allocations: 11.44 kB / 487.6 MB, free: 8.012 MB / 362.7 MB Notification: Performance of SimCode: time 1.282e-06/0.634, allocations: 0 / 487.6 MB, free: 8.012 MB / 362.7 MB Notification: Performance of Templates: time 0.009015/0.643, allocations: 3.775 MB / 491.4 MB, free: 4.188 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/BUF3S/BUF3S.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches