Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001066/0.001065, allocations: 93.78 kB / 17 MB, free: 6.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001369/0.001369, allocations: 192.8 kB / 17.91 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.546/1.546, allocations: 227.7 MB / 246.4 MB, free: 9.809 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000267/0.0002671, allocations: 8 kB / 307.1 MB, free: 0.9531 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1315, allocations: 51.52 MB / 358.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.002545/0.1342, allocations: 1.568 MB / 360.2 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002035/0.1362, allocations: 1.186 MB / 361.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001356/0.1364, allocations: 7.938 kB / 361.4 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003654/0.1368, allocations: 63.73 kB / 361.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003238/0.1371, allocations: 103.6 kB / 361.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005948/0.1377, allocations: 179.2 kB / 361.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002282/0.1379, allocations: 155.5 kB / 361.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001204/0.1381, allocations: 33.53 kB / 361.9 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001021/0.1382, allocations: 63.7 kB / 362 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001258/0.1383, allocations: 67.67 kB / 362 MB, free: 10 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.833e-05/0.1383, allocations: 4 kB / 362 MB, free: 10 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001323/0.1385, allocations: 51.92 kB / 362.1 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.191e-05/0.1386, allocations: 51.81 kB / 362.2 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.184e-05/0.1386, allocations: 53.58 kB / 362.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002393/0.1389, allocations: 175.9 kB / 362.4 MB, free: 9.668 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.1389, allocations: 0 / 362.4 MB, free: 9.668 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.1389, allocations: 3.938 kB / 362.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.1389, allocations: 0 / 362.4 MB, free: 9.664 MB / 302.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.0006902/0.1396, allocations: 0.5 MB / 362.9 MB, free: 9.109 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.403e-05/0.1397, allocations: 8.031 kB / 362.9 MB, free: 9.102 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.211e-05/0.1397, allocations: 23.72 kB / 362.9 MB, free: 9.078 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003498/0.1401, allocations: 278.4 kB / 363.2 MB, free: 8.766 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.246e-05/0.1401, allocations: 8 kB / 363.2 MB, free: 8.758 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.159e-05/0.1401, allocations: 15.97 kB / 363.2 MB, free: 8.742 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003406/0.1405, allocations: 151.5 kB / 363.4 MB, free: 8.566 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.1405, allocations: 3.984 kB / 363.4 MB, free: 8.562 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/0.1405, allocations: 4 kB / 363.4 MB, free: 8.559 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.1405, allocations: 4 kB / 363.4 MB, free: 8.555 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001036/0.1407, allocations: 35.92 kB / 363.4 MB, free: 8.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005132/0.1412, allocations: 382.4 kB / 363.8 MB, free: 8.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002266/0.1414, allocations: 119.9 kB / 363.9 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.099e-05/0.1415, allocations: 46.5 kB / 363.9 MB, free: 7.891 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.634e-05/0.1415, allocations: 8.062 kB / 363.9 MB, free: 7.883 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001873/0.1417, allocations: 75.38 kB / 364 MB, free: 7.797 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.433e-06/0.1417, allocations: 0 / 364 MB, free: 7.797 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003774/0.1421, allocations: 157.2 kB / 364.2 MB, free: 7.637 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.837e-05/0.1422, allocations: 162.2 kB / 364.3 MB, free: 7.441 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003608/0.1426, allocations: 334.9 kB / 364.7 MB, free: 7.105 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.848e-05/0.1426, allocations: 25.7 kB / 364.7 MB, free: 7.074 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.903e-05/0.1427, allocations: 132.1 kB / 364.8 MB, free: 6.941 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.586e-05/0.1428, allocations: 15.75 kB / 364.8 MB, free: 6.926 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.572e-06/0.1428, allocations: 4 kB / 364.8 MB, free: 6.922 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.1429, allocations: 330.8 kB / 365.2 MB, free: 6.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.523e-05/0.143, allocations: 23.98 kB / 365.2 MB, free: 6.566 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001113/0.1431, allocations: 90.8 kB / 365.3 MB, free: 6.453 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.086e-05/0.1432, allocations: 39.86 kB / 365.3 MB, free: 6.414 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.1432, allocations: 3.953 kB / 365.3 MB, free: 6.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002118/0.1434, allocations: 121.3 kB / 365.4 MB, free: 6.285 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.1434, allocations: 11.94 kB / 365.4 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.1435, allocations: 320 / 365.4 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.1435, allocations: 0 / 365.4 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.1436, allocations: 23.98 kB / 365.5 MB, free: 6.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.788e-06/0.1436, allocations: 4 kB / 365.5 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.646e-05/0.1437, allocations: 11.98 kB / 365.5 MB, free: 6.234 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.908e-06/0.1437, allocations: 4 kB / 365.5 MB, free: 6.23 MB / 302.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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001465/0.1439, allocations: 157.9 kB / 365.6 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.882e-05/0.144, allocations: 69.36 kB / 365.7 MB, free: 5.992 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.383e-05/0.144, allocations: 25.7 kB / 365.7 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.144, allocations: 4 kB / 365.7 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.144, allocations: 0 / 365.7 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.1441, allocations: 0 / 365.7 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002062/0.1443, allocations: 237.5 kB / 366 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.1443, allocations: 4 kB / 366 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.605e-05/0.1443, allocations: 23.88 kB / 366 MB, free: 5.656 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.1444, allocations: 4.062 kB / 366 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.1444, allocations: 4 kB / 366 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.1444, allocations: 0 / 366 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1444, allocations: 0 / 366 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002499/0.1446, allocations: 162.5 kB / 366.2 MB, free: 5.465 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001096/0.1448, allocations: 116.8 kB / 366.3 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.301e-05/0.1448, allocations: 11.95 kB / 366.3 MB, free: 5.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.114e-05/0.1449, allocations: 7.984 kB / 366.3 MB, free: 5.312 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.979e-05/0.1449, allocations: 4 kB / 366.3 MB, free: 5.309 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.815e-05/0.145, allocations: 7.984 kB / 366.3 MB, free: 5.301 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002229/0.1452, allocations: 249.9 kB / 366.5 MB, free: 5.059 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1452, allocations: 0 / 366.5 MB, free: 5.059 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002641/0.1455, allocations: 35.98 kB / 366.6 MB, free: 5.023 MB / 302.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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001076/0.1465, allocations: 439 kB / 367 MB, free: 4.727 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002266/0.1468, allocations: 75.84 kB / 367.1 MB, free: 4.652 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1468, allocations: 0 / 367.1 MB, free: 4.652 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.86e-05/0.1469, allocations: 27.98 kB / 367.1 MB, free: 4.625 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003888/0.1473, allocations: 57.97 kB / 367.2 MB, free: 4.562 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006568/0.1479, allocations: 404.6 kB / 367.6 MB, free: 4.137 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003212/0.1483, allocations: 0.74 MB / 368.3 MB, free: 3.371 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001061/0.1484, allocations: 37.77 kB / 368.3 MB, free: 3.332 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.281e-05/0.1484, allocations: 23.38 kB / 368.4 MB, free: 3.312 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1485, allocations: 0 / 368.4 MB, free: 3.312 MB / 302.1 MB Notification: Performance of Templates: time 0.006701/0.1552, allocations: 2.666 MB / 371 MB, free: 0.668 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.isCsvExt,table.combiTimeTable.nHeaderLines,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.p_offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.table[4,1],table.combiTimeTable.table[4,2],table.combiTimeTable.table[5,1],table.combiTimeTable.table[5,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.extrapolation,table.n,table.shiftTime,table.startTime,table.table[1,1],table.table[1,2],table.table[2,1],table.table[2,2],table.table[3,1],table.table[3,2],table.table[4,1],table.table[4,2],table.table[5,1],table.table[5,2],time