Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.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.001883/0.001883, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.002225/0.002225, allocations: 215.4 kB / 24.48 MB, free: 3.941 MB / 14.72 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.427/1.427, allocations: 230.6 MB / 258.2 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001599/0.001599, allocations: 51.91 kB / 379 MB, free: 2.441 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2303/0.2319, allocations: 53.36 MB / 432.3 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003566/0.2354, allocations: 1.872 MB / 434.2 MB, free: 4.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002763/0.2382, allocations: 1.223 MB / 435.4 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001983/0.2384, allocations: 7.938 kB / 435.4 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003822/0.2388, allocations: 71.61 kB / 435.5 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004467/0.2392, allocations: 135.4 kB / 435.6 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007985/0.24, allocations: 222.6 kB / 435.8 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003118/0.2403, allocations: 183.5 kB / 436 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00014/0.2405, allocations: 25.34 kB / 436.1 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001306/0.2406, allocations: 79.69 kB / 436.1 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001473/0.2408, allocations: 87.67 kB / 436.2 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.532e-05/0.2408, allocations: 8 kB / 436.2 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001936/0.241, allocations: 75.88 kB / 436.3 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.059e-05/0.2411, allocations: 55.77 kB / 436.4 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.577e-05/0.2411, allocations: 59.59 kB / 436.4 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000409/0.2416, allocations: 234 kB / 436.6 MB, free: 2.371 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.2416, allocations: 8 kB / 436.6 MB, free: 2.363 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2416, allocations: 3.938 kB / 436.7 MB, free: 2.359 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.2416, allocations: 0 / 436.7 MB, free: 2.359 MB / 334.1 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.0007905/0.2424, allocations: 474.5 kB / 437.1 MB, free: 1.859 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.2424, allocations: 12.03 kB / 437.1 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.472e-05/0.2425, allocations: 28.78 kB / 437.2 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004959/0.243, allocations: 237.5 kB / 437.4 MB, free: 1.562 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.812e-05/0.243, allocations: 384 / 437.4 MB, free: 1.562 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.458e-05/0.243, allocations: 12.12 kB / 437.4 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004458/0.2435, allocations: 176.4 kB / 437.6 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.2435, allocations: 4 kB / 437.6 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.564e-05/0.2435, allocations: 0 / 437.6 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.2435, allocations: 0 / 437.6 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001405/0.2436, allocations: 47.89 kB / 437.6 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005799/0.2442, allocations: 310.1 kB / 437.9 MB, free: 0.957 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003019/0.2445, allocations: 119.9 kB / 438 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000106/0.2446, allocations: 42.56 kB / 438.1 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.682e-05/0.2447, allocations: 3.984 kB / 438.1 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002017/0.2449, allocations: 91.27 kB / 438.2 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.443e-06/0.2449, allocations: 0 / 438.2 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004365/0.2453, allocations: 157.4 kB / 438.3 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/0.2454, allocations: 140.4 kB / 438.5 MB, free: 336 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004055/0.2458, allocations: 333.9 kB / 438.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.406e-05/0.2459, allocations: 29.7 kB / 438.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.246, allocations: 128 kB / 438.9 MB, free: 15.83 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.679e-05/0.246, allocations: 28.14 kB / 439 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.978e-05/0.2461, allocations: 37.7 kB / 439 MB, free: 15.76 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.2462, allocations: 330.8 kB / 439.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.954e-05/0.2463, allocations: 23.98 kB / 439.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001562/0.2465, allocations: 137.4 kB / 439.5 MB, free: 15.24 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001719/0.2466, allocations: 88.16 kB / 439.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.2466, allocations: 0 / 439.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002719/0.2469, allocations: 137.4 kB / 439.7 MB, free: 15 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.2469, allocations: 4 kB / 439.7 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.2469, allocations: 4 kB / 439.7 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.247, allocations: 0 / 439.7 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001234/0.2471, allocations: 19.98 kB / 439.7 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.806e-06/0.2471, allocations: 3.938 kB / 439.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.865e-05/0.2472, allocations: 4 kB / 439.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.425e-05/0.2472, allocations: 8 kB / 439.8 MB, free: 14.95 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 0.0001634/0.2473, allocations: 162.6 kB / 439.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.2474, allocations: 73.44 kB / 440 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003031/0.2477, allocations: 123.4 kB / 440.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.2478, allocations: 7.938 kB / 440.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.2478, allocations: 0 / 440.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.2478, allocations: 320 / 440.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001975/0.248, allocations: 185.1 kB / 440.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/0.248, allocations: 8 kB / 440.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.266e-05/0.248, allocations: 15.92 kB / 440.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.248, allocations: 4.062 kB / 440.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.2481, allocations: 4 kB / 440.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.2481, allocations: 0 / 440.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.2481, allocations: 4 kB / 440.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000312/0.2484, allocations: 174.5 kB / 440.5 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.2485, allocations: 39.83 kB / 440.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.677e-05/0.2485, allocations: 4 kB / 440.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.998e-05/0.2486, allocations: 0 / 440.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.746e-05/0.2486, allocations: 11.98 kB / 440.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.912e-05/0.2487, allocations: 4 kB / 440.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003056/0.249, allocations: 257.2 kB / 440.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.249, allocations: 0 / 440.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000288/0.2493, allocations: 35.94 kB / 440.8 MB, free: 13.79 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,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 (10): * Single equations (assignments): 8 * 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.001726/0.251, allocations: 453.6 kB / 441.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002673/0.2512, allocations: 91.75 kB / 441.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.2513, allocations: 0 / 441.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001055/0.2514, allocations: 32.23 kB / 441.4 MB, free: 13.4 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004253/0.2518, allocations: 63.67 kB / 441.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000729/0.2525, allocations: 376.9 kB / 441.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001437/0.2527, allocations: 127.9 kB / 442 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.048e-05/0.2527, allocations: 33.8 kB / 442 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.825e-05/0.2528, allocations: 23.44 kB / 442 MB, free: 12.73 MB / 350.1 MB Notification: Performance of SimCode: time 4.4e-07/0.2528, allocations: 0 / 442 MB, free: 12.73 MB / 350.1 MB Notification: Performance of Templates: time 0.007556/0.2604, allocations: 3.186 MB / 445.2 MB, free: 9.594 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.330929636009387]