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.001437/0.001437, allocations: 80.31 kB / 22.21 MB, free: 2.281 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.001486/0.001486, allocations: 165.1 kB / 25.61 MB, free: 8.879 MB / 18.57 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 0.9077/0.9077, allocations: 177.1 MB / 206 MB, free: 4.516 MB / 186.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.884e-06/1.884e-06, allocations: 0 / 274.2 MB, free: 4.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.532e-05/1.72e-05, allocations: 2.312 kB / 274.2 MB, free: 4.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.002394/0.002412, allocations: 1.936 MB / 276.1 MB, free: 2.488 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001386/0.003798, allocations: 1.276 MB / 277.4 MB, free: 1.207 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.403e-05/0.003892, allocations: 4 kB / 277.4 MB, free: 1.203 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000253/0.004145, allocations: 72.28 kB / 277.5 MB, free: 1.133 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002612/0.004406, allocations: 132.8 kB / 277.6 MB, free: 1.004 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000415/0.004821, allocations: 241.1 kB / 277.8 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001966/0.005017, allocations: 187.5 kB / 278 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.547e-05/0.005103, allocations: 31.7 kB / 278.1 MB, free: 0.5547 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001105/0.005213, allocations: 111.7 kB / 278.2 MB, free: 456 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.04e-05/0.005304, allocations: 79.77 kB / 278.2 MB, free: 376 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.859e-05/0.005322, allocations: 8 kB / 278.3 MB, free: 368 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001109/0.005433, allocations: 67.95 kB / 278.3 MB, free: 300 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.434e-05/0.005508, allocations: 53.7 kB / 278.4 MB, free: 248 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.663e-05/0.005554, allocations: 51.73 kB / 278.4 MB, free: 196 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002161/0.00577, allocations: 195.2 kB / 278.6 MB, free: 0 / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.473e-06/0.005772, allocations: 0 / 278.6 MB, free: 0 / 250.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.005772, allocations: 0 / 278.6 MB, free: 0 / 250.7 MB Notification: Performance of Transformations before backend: time 3.807e-06/0.005776, allocations: 0 / 278.6 MB, free: 0 / 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.0007302/0.006506, allocations: 0.5832 MB / 279.2 MB, free: 15.38 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.038e-05/0.006537, allocations: 12.03 kB / 279.2 MB, free: 15.36 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.766e-05/0.006584, allocations: 32.8 kB / 279.2 MB, free: 15.33 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002116/0.006796, allocations: 232.6 kB / 279.5 MB, free: 15.08 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.977e-05/0.006816, allocations: 12.31 kB / 279.5 MB, free: 15.07 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.101e-05/0.006827, allocations: 4.375 kB / 279.5 MB, free: 15.07 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002046/0.007031, allocations: 176.9 kB / 279.7 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.007041, allocations: 3.938 kB / 279.7 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.386e-06/0.007049, allocations: 4 kB / 279.7 MB, free: 14.85 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-06/0.007055, allocations: 4 kB / 279.7 MB, free: 14.85 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.582e-05/0.007091, allocations: 19.92 kB / 279.7 MB, free: 14.83 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002874/0.007378, allocations: 339.3 kB / 280 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001364/0.007515, allocations: 140.5 kB / 280.2 MB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.096e-05/0.007556, allocations: 58.67 kB / 280.2 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.627e-05/0.007572, allocations: 7.938 kB / 280.2 MB, free: 14.19 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.216e-05/0.007654, allocations: 69.03 kB / 280.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of pre-optimization done (n=11): time 1.173e-06/0.007655, allocations: 0 / 280.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=11): time 0.0001986/0.007854, allocations: 133.4 kB / 280.4 MB, free: 13.97 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.558e-05/0.00791, allocations: 140.8 kB / 280.6 MB, free: 13.8 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001859/0.008095, allocations: 330.2 kB / 280.9 MB, free: 13.46 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.375e-05/0.008109, allocations: 29.7 kB / 280.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.466e-05/0.008204, allocations: 191.1 kB / 281.1 MB, free: 13.23 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.035e-05/0.008224, allocations: 15.84 kB / 281.1 MB, free: 13.21 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.572e-05/0.00826, allocations: 39.3 kB / 281.1 MB, free: 13.17 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.008368, allocations: 0.5079 MB / 281.7 MB, free: 12.65 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.482e-05/0.008383, allocations: 4 kB / 281.7 MB, free: 12.64 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.404e-05/0.008427, allocations: 68.73 kB / 281.7 MB, free: 12.56 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.956e-05/0.008466, allocations: 31.38 kB / 281.8 MB, free: 12.52 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.008468, allocations: 4.031 kB / 281.8 MB, free: 12.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 8.494e-05/0.008553, allocations: 93.7 kB / 281.9 MB, free: 12.42 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.003e-05/0.008563, allocations: 4 kB / 281.9 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.296e-06/0.008566, allocations: 64 / 281.9 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.178e-06/0.008575, allocations: 4 kB / 281.9 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.679e-05/0.008632, allocations: 12 kB / 281.9 MB, free: 12.4 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.757e-06/0.008636, allocations: 11.86 kB / 281.9 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.502e-05/0.008671, allocations: 7.953 kB / 281.9 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.48e-06/0.008676, allocations: 4 kB / 281.9 MB, free: 12.38 MB / 266.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 7.437e-05/0.008751, allocations: 156.6 kB / 282 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.937e-05/0.00881, allocations: 85.42 kB / 282.1 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001159/0.008926, allocations: 99.45 kB / 282.2 MB, free: 12.02 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.008929, allocations: 4 kB / 282.2 MB, free: 12.01 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.764e-06/0.008931, allocations: 0 / 282.2 MB, free: 12.01 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.008935, allocations: 3.984 kB / 282.2 MB, free: 12.01 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001089/0.009044, allocations: 161.1 kB / 282.4 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.009045, allocations: 0 / 282.4 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.02e-05/0.009085, allocations: 23.92 kB / 282.4 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.009089, allocations: 12.03 kB / 282.4 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.142e-06/0.009095, allocations: 0 / 282.4 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.009098, allocations: 7.984 kB / 282.4 MB, free: 11.78 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.009099, allocations: 0 / 282.4 MB, free: 11.78 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000113/0.009212, allocations: 163.3 kB / 282.6 MB, free: 11.59 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.551e-05/0.009257, allocations: 31.84 kB / 282.6 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.152e-05/0.009279, allocations: 11.94 kB / 282.6 MB, free: 11.54 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.04e-05/0.009309, allocations: 0 / 282.6 MB, free: 11.54 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.051e-05/0.00935, allocations: 11.98 kB / 282.6 MB, free: 11.53 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.302e-05/0.009363, allocations: 7.984 kB / 282.7 MB, free: 11.52 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000101/0.009464, allocations: 226.9 kB / 282.9 MB, free: 11.3 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009464, allocations: 0 / 282.9 MB, free: 11.3 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001654/0.009629, allocations: 31.94 kB / 282.9 MB, free: 11.27 MB / 266.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.0007536/0.01038, allocations: 398.3 kB / 283.3 MB, free: 11.02 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.608e-05/0.01048, allocations: 59.52 kB / 283.4 MB, free: 10.96 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.01048, allocations: 4 kB / 283.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.291e-05/0.01051, allocations: 27.61 kB / 283.4 MB, free: 10.92 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002465/0.01076, allocations: 81.48 kB / 283.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003636/0.01112, allocations: 361.3 kB / 283.8 MB, free: 10.45 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.723e-05/0.01117, allocations: 91.83 kB / 283.9 MB, free: 10.34 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.545e-05/0.01122, allocations: 25.61 kB / 283.9 MB, free: 10.32 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001069/0.01132, allocations: 114.2 kB / 284 MB, free: 10.21 MB / 266.7 MB Notification: Performance of SimCode: time 5e-07/0.01132, allocations: 0 / 284 MB, free: 10.21 MB / 266.7 MB Notification: Performance of Templates: time 0.005359/0.01668, allocations: 3.493 MB / 287.5 MB, free: 6.777 MB / 266.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7194446371868253]