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.001004/0.001004, allocations: 75.77 kB / 22.45 MB, free: 2.094 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.001043/0.001043, allocations: 158.9 kB / 25.75 MB, free: 8.949 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.002/1.002, allocations: 158.6 MB / 187.6 MB, free: 2.938 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 1.754e-06/1.754e-06, allocations: 0 / 251.1 MB, free: 7.785 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.502e-05/2.677e-05, allocations: 6.25 kB / 251.1 MB, free: 7.777 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.002752/0.002779, allocations: 1.515 MB / 252.6 MB, free: 6.25 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002062/0.004841, allocations: 0.8662 MB / 253.5 MB, free: 5.375 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.046e-05/0.004892, allocations: 4 kB / 253.5 MB, free: 5.371 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 8.208e-05/0.004974, allocations: 3.938 kB / 253.5 MB, free: 5.367 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 7.178e-05/0.005046, allocations: 19.8 kB / 253.5 MB, free: 5.348 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002328/0.005278, allocations: 51.88 kB / 253.6 MB, free: 5.297 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001788/0.005457, allocations: 135.7 kB / 253.7 MB, free: 5.164 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.916e-05/0.005556, allocations: 11.98 kB / 253.7 MB, free: 5.152 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003783/0.005935, allocations: 427.2 kB / 254.1 MB, free: 4.734 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001004/0.006035, allocations: 55.83 kB / 254.2 MB, free: 4.68 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.153e-05/0.006067, allocations: 8 kB / 254.2 MB, free: 4.672 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.382e-05/0.00609, allocations: 12 kB / 254.2 MB, free: 4.66 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.387e-05/0.006174, allocations: 67.77 kB / 254.3 MB, free: 4.594 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.142e-05/0.006266, allocations: 55.78 kB / 254.3 MB, free: 4.539 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002737/0.006539, allocations: 263 kB / 254.6 MB, free: 4.281 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.006542, allocations: 0 / 254.6 MB, free: 4.281 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.006543, allocations: 0 / 254.6 MB, free: 4.281 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.172e-06/0.006549, allocations: 0 / 254.6 MB, free: 4.281 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.001023/0.007573, allocations: 0.7824 MB / 255.4 MB, free: 3.438 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.007619, allocations: 15.98 kB / 255.4 MB, free: 3.422 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.86e-05/0.007698, allocations: 44.7 kB / 255.4 MB, free: 3.379 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002247/0.007923, allocations: 222.9 kB / 255.7 MB, free: 3.133 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.258e-05/0.007945, allocations: 4.375 kB / 255.7 MB, free: 3.129 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.201e-05/0.007967, allocations: 12.31 kB / 255.7 MB, free: 3.117 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003083/0.008276, allocations: 245.7 kB / 255.9 MB, free: 2.844 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.008283, allocations: 192 / 255.9 MB, free: 2.844 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.914e-05/0.008303, allocations: 8.359 kB / 255.9 MB, free: 2.836 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.008312, allocations: 7.875 kB / 255.9 MB, free: 2.828 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001171/0.008429, allocations: 166.8 kB / 256.1 MB, free: 2.641 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005919/0.009021, allocations: 0.4954 MB / 256.6 MB, free: 2.109 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000173/0.009194, allocations: 189.8 kB / 256.8 MB, free: 1.887 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001247/0.009319, allocations: 170.5 kB / 256.9 MB, free: 1.691 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.151e-05/0.00933, allocations: 7.938 kB / 256.9 MB, free: 1.684 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002505/0.009581, allocations: 319.1 kB / 257.3 MB, free: 1.32 MB / 234.7 MB Notification: Performance of pre-optimization done (n=13): time 1.263e-06/0.009582, allocations: 0 / 257.3 MB, free: 1.32 MB / 234.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006117/0.01019, allocations: 0.6698 MB / 257.9 MB, free: 0.5703 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.347e-05/0.01027, allocations: 170.2 kB / 258.1 MB, free: 376 kB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005716/0.01084, allocations: 0.6349 MB / 258.7 MB, free: 15.71 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.953e-05/0.01086, allocations: 29.7 kB / 258.8 MB, free: 15.68 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.116e-05/0.01092, allocations: 147.9 kB / 258.9 MB, free: 15.53 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.774e-05/0.01095, allocations: 23.86 kB / 258.9 MB, free: 15.5 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.472e-05/0.01102, allocations: 83.17 kB / 259 MB, free: 15.41 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.01114, allocations: 0.4923 MB / 259.5 MB, free: 14.91 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/0.01125, allocations: 162.8 kB / 259.7 MB, free: 14.73 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/0.01137, allocations: 190.2 kB / 259.8 MB, free: 14.51 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002096/0.01158, allocations: 343.8 kB / 260.2 MB, free: 14.12 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.01159, allocations: 0 / 260.2 MB, free: 14.12 MB / 250.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003626/0.01195, allocations: 487.1 kB / 260.6 MB, free: 13.59 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.454e-05/0.012, allocations: 122.7 kB / 260.8 MB, free: 13.44 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.01201, allocations: 4 kB / 260.8 MB, free: 13.44 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.01202, allocations: 0 / 260.8 MB, free: 13.44 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.752e-05/0.01204, allocations: 0 / 260.8 MB, free: 13.44 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.972e-06/0.01204, allocations: 3.984 kB / 260.8 MB, free: 13.43 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.451e-05/0.01214, allocations: 19.95 kB / 260.8 MB, free: 13.41 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.514e-05/0.01218, allocations: 40.05 kB / 260.8 MB, free: 13.38 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.0002377/0.01242, allocations: 389.3 kB / 261.2 MB, free: 12.96 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.301e-05/0.01246, allocations: 51.7 kB / 261.3 MB, free: 12.91 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.342e-05/0.01254, allocations: 55.08 kB / 261.3 MB, free: 12.85 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.01254, allocations: 4 kB / 261.3 MB, free: 12.85 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.01254, allocations: 0 / 261.3 MB, free: 12.85 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.01255, allocations: 3.984 kB / 261.3 MB, free: 12.84 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001113/0.01366, allocations: 0.9478 MB / 262.3 MB, free: 11.8 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.01366, allocations: 0 / 262.3 MB, free: 11.8 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.699e-06/0.01367, allocations: 0 / 262.3 MB, free: 11.8 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.01367, allocations: 4 kB / 262.3 MB, free: 11.8 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.9e-05/0.01369, allocations: 12 kB / 262.3 MB, free: 11.79 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.01369, allocations: 4 kB / 262.3 MB, free: 11.79 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.01369, allocations: 0 / 262.3 MB, free: 11.79 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004276/0.01412, allocations: 0.6959 MB / 263 MB, free: 11.02 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002155/0.01434, allocations: 181.4 kB / 263.2 MB, free: 10.85 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.667e-05/0.01437, allocations: 12 kB / 263.2 MB, free: 10.84 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.179e-05/0.01445, allocations: 11.98 kB / 263.2 MB, free: 10.82 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.274e-05/0.01453, allocations: 27.97 kB / 263.2 MB, free: 10.8 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.943e-05/0.01456, allocations: 40.12 kB / 263.3 MB, free: 10.76 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0003363/0.01489, allocations: 438.7 kB / 263.7 MB, free: 10.33 MB / 250.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.01489, allocations: 0 / 263.7 MB, free: 10.33 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001771/0.01507, allocations: 40 kB / 263.7 MB, free: 10.29 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.0001056/0.01518, allocations: 123 kB / 263.8 MB, free: 10.16 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003758/0.01555, allocations: 0.5925 MB / 264.4 MB, free: 9.465 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.01555, allocations: 0 / 264.4 MB, free: 9.465 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001977/0.01575, allocations: 424 kB / 264.9 MB, free: 8.973 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003862/0.01614, allocations: 136.2 kB / 265 MB, free: 8.844 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00078/0.01692, allocations: 0.7515 MB / 265.7 MB, free: 8.047 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.082e-05/0.017, allocations: 103.2 kB / 265.8 MB, free: 7.926 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.895e-05/0.01703, allocations: 4.734 kB / 265.8 MB, free: 7.918 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.854e-05/0.01706, allocations: 12.5 kB / 265.9 MB, free: 7.906 MB / 250.7 MB Notification: Performance of SimCode: time 1.222e-06/0.01706, allocations: 0 / 265.9 MB, free: 7.906 MB / 250.7 MB Notification: Performance of Templates: time 0.006361/0.02342, allocations: 4.782 MB / 270.6 MB, free: 3.141 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: 2.892413865076378]