Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.0009069/0.0009069, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001275/0.002182, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0007256/0.0007256, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009665/0.001692, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.094/1.094, allocations: 177.2 MB / 189.8 MB, free: 5.262 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1079/1.202, allocations: 53.67 MB / 243.4 MB, free: 15.51 MB / 250.7 MB " [Timeout remaining time 179] 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.Clocked.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.894e-06/1.894e-06, allocations: 0 / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.673e-05/1.863e-05, allocations: 2.312 kB / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.002309/0.002328, allocations: 2.025 MB / 246.7 MB, free: 12.2 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001521/0.003849, allocations: 1.293 MB / 248 MB, free: 10.9 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000117/0.003966, allocations: 7.938 kB / 248 MB, free: 10.89 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002546/0.004221, allocations: 75.48 kB / 248.1 MB, free: 10.82 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002553/0.004476, allocations: 135.3 kB / 248.2 MB, free: 10.68 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004973/0.004973, allocations: 238.9 kB / 248.5 MB, free: 10.45 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002608/0.005234, allocations: 191.5 kB / 248.7 MB, free: 10.26 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.005371, allocations: 26.44 kB / 248.7 MB, free: 10.24 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002095/0.00558, allocations: 144.4 kB / 248.8 MB, free: 10.1 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001413/0.005722, allocations: 67.8 kB / 248.9 MB, free: 10.03 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.601e-05/0.005748, allocations: 8 kB / 248.9 MB, free: 10.02 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001718/0.00592, allocations: 71.88 kB / 249 MB, free: 9.953 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.17e-05/0.006011, allocations: 55.8 kB / 249 MB, free: 9.898 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.326e-05/0.006065, allocations: 35.81 kB / 249.1 MB, free: 9.863 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002607/0.006325, allocations: 183.2 kB / 249.2 MB, free: 9.684 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.463e-05/0.00634, allocations: 3.984 kB / 249.2 MB, free: 9.68 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.512e-06/0.006341, allocations: 0 / 249.2 MB, free: 9.68 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.502e-05/0.006356, allocations: 8 kB / 249.2 MB, free: 9.672 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006615/0.007018, allocations: 488.6 kB / 249.7 MB, free: 9.164 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.007058, allocations: 12.03 kB / 249.7 MB, free: 9.152 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.358e-05/0.007112, allocations: 16.92 kB / 249.7 MB, free: 9.137 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002498/0.007362, allocations: 221.8 kB / 250 MB, free: 8.891 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.27e-05/0.007384, allocations: 8.375 kB / 250 MB, free: 8.883 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.558e-05/0.0074, allocations: 8.125 kB / 250 MB, free: 8.875 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002377/0.007638, allocations: 158.2 kB / 250.1 MB, free: 8.691 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.007645, allocations: 0 / 250.1 MB, free: 8.691 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.172e-05/0.007657, allocations: 8 kB / 250.1 MB, free: 8.684 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.007662, allocations: 0 / 250.1 MB, free: 8.684 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.12e-05/0.007704, allocations: 26.73 kB / 250.2 MB, free: 8.656 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004147/0.008118, allocations: 228.3 kB / 250.4 MB, free: 8.406 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001436/0.008262, allocations: 164 kB / 250.6 MB, free: 8.207 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.776e-05/0.0083, allocations: 39.44 kB / 250.6 MB, free: 8.156 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.936e-05/0.008319, allocations: 0 / 250.6 MB, free: 8.156 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001149/0.008434, allocations: 78.12 kB / 250.7 MB, free: 8.066 MB / 250.7 MB Notification: Performance of pre-optimization done (n=11): time 1.522e-06/0.008436, allocations: 0 / 250.7 MB, free: 8.066 MB / 250.7 MB Notification: Performance of matching and sorting (n=11): time 0.0001847/0.00862, allocations: 101.8 kB / 250.8 MB, free: 7.961 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.866e-05/0.008679, allocations: 132.5 kB / 250.9 MB, free: 7.801 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001727/0.008852, allocations: 268.7 kB / 251.2 MB, free: 7.527 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.982e-05/0.008872, allocations: 29.7 kB / 251.2 MB, free: 7.492 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.181e-05/0.008923, allocations: 108.9 kB / 251.3 MB, free: 7.379 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.021e-05/0.008944, allocations: 19.83 kB / 251.3 MB, free: 7.359 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.755e-05/0.008981, allocations: 29.66 kB / 251.3 MB, free: 7.324 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.398e-05/0.009075, allocations: 334.7 kB / 251.7 MB, free: 6.988 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.936e-05/0.009094, allocations: 18.75 kB / 251.7 MB, free: 6.969 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.879e-05/0.009133, allocations: 52.36 kB / 251.7 MB, free: 6.902 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.677e-05/0.00918, allocations: 43.39 kB / 251.8 MB, free: 6.852 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.009183, allocations: 3.984 kB / 251.8 MB, free: 6.848 MB / 250.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 7.888e-05/0.009262, allocations: 64.44 kB / 251.8 MB, free: 6.777 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/0.009274, allocations: 8 kB / 251.9 MB, free: 6.77 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.678e-06/0.009279, allocations: 0 / 251.9 MB, free: 6.77 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.00929, allocations: 0 / 251.9 MB, free: 6.77 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.003e-05/0.00937, allocations: 15.98 kB / 251.9 MB, free: 6.754 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.097e-06/0.009374, allocations: 0 / 251.9 MB, free: 6.754 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.69e-05/0.009411, allocations: 8.031 kB / 251.9 MB, free: 6.746 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.3e-06/0.009416, allocations: 4 kB / 251.9 MB, free: 6.742 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: 6 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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 8.686e-05/0.009503, allocations: 129.7 kB / 252 MB, free: 6.605 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.528e-05/0.009558, allocations: 61.61 kB / 252.1 MB, free: 6.539 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001067/0.009665, allocations: 75.47 kB / 252.1 MB, free: 6.453 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.818e-06/0.009669, allocations: 4 kB / 252.1 MB, free: 6.449 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.009671, allocations: 0 / 252.1 MB, free: 6.449 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.009675, allocations: 0 / 252.1 MB, free: 6.449 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001049/0.00978, allocations: 125.7 kB / 252.3 MB, free: 6.309 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.009782, allocations: 12.03 kB / 252.3 MB, free: 6.297 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.622e-05/0.009839, allocations: 19.92 kB / 252.3 MB, free: 6.277 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.641e-05/0.009895, allocations: 39.78 kB / 252.3 MB, free: 6.238 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.009898, allocations: 4 kB / 252.3 MB, free: 6.234 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.701e-06/0.009904, allocations: 0 / 252.3 MB, free: 6.234 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.009907, allocations: 7.984 kB / 252.4 MB, free: 6.227 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.009909, allocations: 0 / 252.4 MB, free: 6.227 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.484e-05/0.01, allocations: 121.2 kB / 252.5 MB, free: 6.078 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.201e-05/0.01003, allocations: 4 kB / 252.5 MB, free: 6.074 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.73e-05/0.01006, allocations: 11.92 kB / 252.5 MB, free: 6.062 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.158e-05/0.0101, allocations: 11.98 kB / 252.5 MB, free: 6.051 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.555e-05/0.01012, allocations: 8 kB / 252.5 MB, free: 6.043 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.437e-05/0.0102, allocations: 103.5 kB / 252.6 MB, free: 5.938 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0102, allocations: 0 / 252.6 MB, free: 5.938 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001417/0.01035, allocations: 31.94 kB / 252.6 MB, free: 5.906 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001401/0.01175, allocations: 0.5564 MB / 253.2 MB, free: 5.621 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001175/0.01187, allocations: 56.69 kB / 253.2 MB, free: 5.562 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/0.01187, allocations: 4 kB / 253.3 MB, free: 5.559 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.871e-05/0.01191, allocations: 20.86 kB / 253.3 MB, free: 5.535 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003386/0.01225, allocations: 446.5 kB / 253.7 MB, free: 5.031 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005579/0.01281, allocations: 360.4 kB / 254.1 MB, free: 4.645 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.108e-05/0.01286, allocations: 83.97 kB / 254.1 MB, free: 4.543 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.923e-05/0.01291, allocations: 26.09 kB / 254.2 MB, free: 4.516 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.513e-05/0.013, allocations: 87.36 kB / 254.3 MB, free: 4.43 MB / 250.7 MB Notification: Performance of SimCode: time 1.213e-06/0.01301, allocations: 0 / 254.3 MB, free: 4.43 MB / 250.7 MB Notification: Performance of Templates: time 0.005594/0.0186, allocations: 3.538 MB / 257.8 MB, free: 0.9531 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8350255135446787]