Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001018/0.001018, allocations: 75.75 kB / 21.97 MB, free: 2.602 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.001173/0.001173, allocations: 161.9 kB / 25.33 MB, free: 8.59 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.112/1.112, allocations: 158.6 MB / 187.2 MB, free: 2.93 MB / 170.7 MB " [Timeout remaining time 179] 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 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_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S") translateModel(Modelica.Electrical.Digital.Examples.BUF3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|bUF3S.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.896e-06/2.896e-06, allocations: 3.938 kB / 251 MB, free: 7.52 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.043e-05/4.332e-05, allocations: 5.266 kB / 251 MB, free: 7.516 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.002683/0.002727, allocations: 1.526 MB / 252.6 MB, free: 5.977 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001819/0.004546, allocations: 0.8624 MB / 253.4 MB, free: 5.105 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.142e-05/0.004638, allocations: 3.938 kB / 253.4 MB, free: 5.102 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001533/0.004791, allocations: 11.92 kB / 253.4 MB, free: 5.09 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001293/0.00492, allocations: 19.86 kB / 253.5 MB, free: 5.07 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003483/0.005268, allocations: 51.88 kB / 253.5 MB, free: 5.02 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002282/0.005497, allocations: 135.7 kB / 253.7 MB, free: 4.887 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001301/0.005627, allocations: 15.92 kB / 253.7 MB, free: 4.871 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004542/0.006081, allocations: 415.2 kB / 254.1 MB, free: 4.465 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001419/0.006223, allocations: 59.81 kB / 254.1 MB, free: 4.406 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.852e-05/0.006271, allocations: 12 kB / 254.1 MB, free: 4.395 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.977e-05/0.006301, allocations: 8 kB / 254.2 MB, free: 4.387 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.257e-05/0.006384, allocations: 67.72 kB / 254.2 MB, free: 4.32 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001092/0.006493, allocations: 59.8 kB / 254.3 MB, free: 4.262 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000296/0.006789, allocations: 271 kB / 254.5 MB, free: 3.996 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.006794, allocations: 0 / 254.5 MB, free: 3.996 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.006796, allocations: 0 / 254.5 MB, free: 3.996 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.006805, allocations: 0 / 254.5 MB, free: 3.996 MB / 234.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.0007035/0.007509, allocations: 0.7746 MB / 255.3 MB, free: 3.16 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.912e-05/0.007558, allocations: 15.98 kB / 255.3 MB, free: 3.145 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.769e-05/0.007645, allocations: 44.7 kB / 255.4 MB, free: 3.102 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002431/0.007888, allocations: 218.9 kB / 255.6 MB, free: 2.859 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.765e-05/0.007916, allocations: 4.375 kB / 255.6 MB, free: 2.855 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.372e-05/0.00794, allocations: 20.36 kB / 255.6 MB, free: 2.836 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003474/0.008287, allocations: 249.2 kB / 255.9 MB, free: 2.562 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.008296, allocations: 192 / 255.9 MB, free: 2.562 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.399e-05/0.00832, allocations: 8.312 kB / 255.9 MB, free: 2.555 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.008328, allocations: 3.938 kB / 255.9 MB, free: 2.551 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001229/0.008451, allocations: 166.8 kB / 256 MB, free: 2.363 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006694/0.00912, allocations: 499.3 kB / 256.5 MB, free: 1.84 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001955/0.009316, allocations: 189.8 kB / 256.7 MB, free: 1.613 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001275/0.009443, allocations: 178.5 kB / 256.9 MB, free: 1.41 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.2e-05/0.009455, allocations: 3.938 kB / 256.9 MB, free: 1.406 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002482/0.009704, allocations: 319.1 kB / 257.2 MB, free: 1.043 MB / 234.7 MB Notification: Performance of pre-optimization done (n=13): time 1.934e-06/0.009706, allocations: 0 / 257.2 MB, free: 1.043 MB / 234.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006537/0.01036, allocations: 0.6698 MB / 257.9 MB, free: 300 kB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.404e-05/0.01044, allocations: 170.2 kB / 258 MB, free: 92 kB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006072/0.01105, allocations: 0.6271 MB / 258.7 MB, free: 15.45 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.694e-05/0.01108, allocations: 29.7 kB / 258.7 MB, free: 15.41 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.206e-05/0.01115, allocations: 151.8 kB / 258.8 MB, free: 15.26 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.031e-05/0.01118, allocations: 27.86 kB / 258.9 MB, free: 15.23 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.83e-05/0.01127, allocations: 87.16 kB / 258.9 MB, free: 15.14 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.01141, allocations: 0.4923 MB / 259.4 MB, free: 14.63 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001226/0.01153, allocations: 162.8 kB / 259.6 MB, free: 14.45 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001185/0.01165, allocations: 190.1 kB / 259.8 MB, free: 14.23 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002102/0.01186, allocations: 336.9 kB / 260.1 MB, free: 13.84 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.01186, allocations: 0 / 260.1 MB, free: 13.84 MB / 250.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003827/0.01224, allocations: 483.1 kB / 260.6 MB, free: 13.32 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.977e-05/0.01232, allocations: 130.8 kB / 260.7 MB, free: 13.16 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.01233, allocations: 4.031 kB / 260.7 MB, free: 13.16 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.01235, allocations: 0 / 260.7 MB, free: 13.16 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.923e-05/0.01238, allocations: 7.938 kB / 260.7 MB, free: 13.15 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.01238, allocations: 0 / 260.7 MB, free: 13.15 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001127/0.0125, allocations: 11.95 kB / 260.7 MB, free: 13.14 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.69e-05/0.01254, allocations: 44.03 kB / 260.8 MB, free: 13.1 MB / 250.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.0002658/0.01281, allocations: 381.3 kB / 261.1 MB, free: 12.69 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.155e-05/0.01286, allocations: 59.69 kB / 261.2 MB, free: 12.63 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.453e-05/0.01293, allocations: 55.08 kB / 261.3 MB, free: 12.57 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.01294, allocations: 4 kB / 261.3 MB, free: 12.57 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.01294, allocations: 0 / 261.3 MB, free: 12.57 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.01294, allocations: 0 / 261.3 MB, free: 12.57 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007806/0.01373, allocations: 0.9536 MB / 262.2 MB, free: 11.53 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.01373, allocations: 0 / 262.2 MB, free: 11.53 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.911e-06/0.01373, allocations: 0 / 262.2 MB, free: 11.53 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.01374, allocations: 4 kB / 262.2 MB, free: 11.52 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.957e-05/0.01376, allocations: 11.98 kB / 262.2 MB, free: 11.51 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.01376, allocations: 0 / 262.2 MB, free: 11.51 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.01376, allocations: 0 / 262.2 MB, free: 11.51 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004562/0.01422, allocations: 0.6925 MB / 262.9 MB, free: 10.75 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002228/0.01444, allocations: 189.3 kB / 263.1 MB, free: 10.57 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.943e-05/0.01448, allocations: 11.98 kB / 263.1 MB, free: 10.55 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.531e-05/0.01457, allocations: 12 kB / 263.1 MB, free: 10.54 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.01467, allocations: 24.16 kB / 263.2 MB, free: 10.52 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.572e-05/0.0147, allocations: 43.94 kB / 263.2 MB, free: 10.48 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0003686/0.01507, allocations: 434.7 kB / 263.6 MB, free: 10.05 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01507, allocations: 0 / 263.6 MB, free: 10.05 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000238/0.01531, allocations: 44 kB / 263.7 MB, free: 10.01 MB / 250.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.0001727/0.01548, allocations: 119 kB / 263.8 MB, free: 9.883 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000452/0.01594, allocations: 0.5925 MB / 264.4 MB, free: 9.188 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.01594, allocations: 0 / 264.4 MB, free: 9.188 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002163/0.01616, allocations: 428 kB / 264.8 MB, free: 8.691 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004179/0.01657, allocations: 132.8 kB / 264.9 MB, free: 8.57 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008763/0.01745, allocations: 0.7517 MB / 265.7 MB, free: 7.77 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.77e-05/0.01753, allocations: 99.25 kB / 265.8 MB, free: 7.652 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.437e-05/0.01758, allocations: 8.797 kB / 265.8 MB, free: 7.641 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.407e-05/0.01762, allocations: 12.5 kB / 265.8 MB, free: 7.629 MB / 250.7 MB Notification: Performance of SimCode: time 1.362e-06/0.01762, allocations: 0 / 265.8 MB, free: 7.629 MB / 250.7 MB Notification: Performance of Templates: time 0.006787/0.0244, allocations: 4.781 MB / 270.6 MB, free: 2.859 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/BUF3S/BUF3S.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1084861289709806]