Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 95.3 kB / 16.3 MB, free: 5.988 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 179.2 kB / 17.19 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.497/1.497, allocations: 223.2 MB / 241.1 MB, free: 5.461 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000311/0.0003111, allocations: 10.16 kB / 300.7 MB, free: 6.016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1255, allocations: 50.42 MB / 351.1 MB, free: 11.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003254/0.1289, allocations: 1.576 MB / 352.7 MB, free: 10.18 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002172/0.1311, allocations: 1.041 MB / 353.8 MB, free: 9.129 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001535/0.1312, allocations: 4 kB / 353.8 MB, free: 9.125 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003857/0.1316, allocations: 59.73 kB / 353.8 MB, free: 9.066 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002559/0.1319, allocations: 83.75 kB / 353.9 MB, free: 8.984 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006454/0.1325, allocations: 222.5 kB / 354.1 MB, free: 8.77 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002165/0.1328, allocations: 111.7 kB / 354.2 MB, free: 8.66 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001323/0.1329, allocations: 33.75 kB / 354.3 MB, free: 8.629 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001049/0.133, allocations: 63.7 kB / 354.3 MB, free: 8.566 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001169/0.1331, allocations: 59.75 kB / 354.4 MB, free: 8.508 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.749e-05/0.1332, allocations: 4 kB / 354.4 MB, free: 8.504 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001266/0.1333, allocations: 47.86 kB / 354.4 MB, free: 8.457 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.623e-05/0.1334, allocations: 51.81 kB / 354.5 MB, free: 8.406 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.453e-05/0.1335, allocations: 49.64 kB / 354.5 MB, free: 8.352 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002728/0.1337, allocations: 179.6 kB / 354.7 MB, free: 8.176 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.1338, allocations: 0 / 354.7 MB, free: 8.176 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.256e-06/0.1338, allocations: 0 / 354.7 MB, free: 8.176 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.022e-05/0.1338, allocations: 0 / 354.7 MB, free: 8.176 MB / 286.1 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.0008331/0.1346, allocations: 0.5077 MB / 355.2 MB, free: 7.613 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.1347, allocations: 12.03 kB / 355.2 MB, free: 7.602 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.019e-05/0.1348, allocations: 27.67 kB / 355.2 MB, free: 7.574 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004905/0.1353, allocations: 282.3 kB / 355.5 MB, free: 7.262 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.129e-05/0.1353, allocations: 8 kB / 355.5 MB, free: 7.254 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.13e-05/0.1353, allocations: 4 kB / 355.5 MB, free: 7.25 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004389/0.1358, allocations: 178.5 kB / 355.7 MB, free: 7.047 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.1358, allocations: 0 / 355.7 MB, free: 7.047 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.07e-05/0.1358, allocations: 4 kB / 355.7 MB, free: 7.043 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.305e-06/0.1358, allocations: 4 kB / 355.7 MB, free: 7.039 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001277/0.136, allocations: 43.86 kB / 355.8 MB, free: 6.996 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006763/0.1367, allocations: 399.2 kB / 356.2 MB, free: 6.547 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003192/0.137, allocations: 142.5 kB / 356.3 MB, free: 6.371 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.044e-05/0.137, allocations: 0 / 356.3 MB, free: 6.371 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002978/0.1373, allocations: 91.39 kB / 356.4 MB, free: 6.27 MB / 286.1 MB Notification: Performance of pre-optimization done (n=11): time 1.963e-06/0.1374, allocations: 0 / 356.4 MB, free: 6.27 MB / 286.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004458/0.1378, allocations: 165.2 kB / 356.5 MB, free: 6.102 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000142/0.138, allocations: 187.9 kB / 356.7 MB, free: 5.875 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003957/0.1384, allocations: 330.7 kB / 357 MB, free: 5.539 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.409e-05/0.1384, allocations: 38.02 kB / 357.1 MB, free: 5.496 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.1385, allocations: 132.2 kB / 357.2 MB, free: 5.359 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.846e-05/0.1386, allocations: 15.89 kB / 357.2 MB, free: 5.344 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.007e-06/0.1386, allocations: 8 kB / 357.2 MB, free: 5.336 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001904/0.1388, allocations: 330.8 kB / 357.6 MB, free: 5.004 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.142e-05/0.1389, allocations: 23.98 kB / 357.6 MB, free: 4.98 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001242/0.139, allocations: 100.5 kB / 357.7 MB, free: 4.852 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.662e-05/0.1391, allocations: 31.98 kB / 357.7 MB, free: 4.82 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.269e-06/0.1391, allocations: 4 kB / 357.7 MB, free: 4.816 MB / 286.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000249/0.1394, allocations: 145.4 kB / 357.9 MB, free: 4.668 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.1394, allocations: 4 kB / 357.9 MB, free: 4.664 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/0.1394, allocations: 7.953 kB / 357.9 MB, free: 4.656 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.1394, allocations: 4 kB / 357.9 MB, free: 4.652 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001238/0.1395, allocations: 27.98 kB / 357.9 MB, free: 4.625 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.1396, allocations: 0 / 357.9 MB, free: 4.625 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.526e-05/0.1397, allocations: 19.84 kB / 357.9 MB, free: 4.605 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.185e-05/0.1397, allocations: 4.188 kB / 357.9 MB, free: 4.602 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,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 (13): * Single equations (assignments): 13 * 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.000158/0.1398, allocations: 157.8 kB / 358.1 MB, free: 4.438 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.971e-05/0.1399, allocations: 81.34 kB / 358.2 MB, free: 4.352 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.097e-05/0.14, allocations: 25.7 kB / 358.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/0.14, allocations: 7.953 kB / 358.2 MB, free: 4.32 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.1401, allocations: 0 / 358.2 MB, free: 4.32 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.1401, allocations: 3.984 kB / 358.2 MB, free: 4.316 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002363/0.1403, allocations: 241.6 kB / 358.4 MB, free: 4.031 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1403, allocations: 4.094 kB / 358.4 MB, free: 4.027 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.241e-05/0.1404, allocations: 19.92 kB / 358.5 MB, free: 4.008 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.489e-06/0.1404, allocations: 4 kB / 358.5 MB, free: 4.004 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/0.1404, allocations: 0 / 358.5 MB, free: 4.004 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.1404, allocations: 4 kB / 358.5 MB, free: 4 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.1404, allocations: 3.953 kB / 358.5 MB, free: 3.996 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003117/0.1408, allocations: 220.4 kB / 358.7 MB, free: 3.734 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001237/0.1409, allocations: 120.8 kB / 358.8 MB, free: 3.598 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.365e-05/0.1409, allocations: 4 kB / 358.8 MB, free: 3.594 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.814e-05/0.141, allocations: 4 kB / 358.8 MB, free: 3.59 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.688e-05/0.1411, allocations: 11.92 kB / 358.8 MB, free: 3.578 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.949e-05/0.1411, allocations: 12 kB / 358.8 MB, free: 3.566 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002481/0.1414, allocations: 245.9 kB / 359.1 MB, free: 3.328 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1414, allocations: 0 / 359.1 MB, free: 3.328 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002706/0.1416, allocations: 32 kB / 359.1 MB, free: 3.297 MB / 286.1 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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * 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.001118/0.1428, allocations: 423.8 kB / 359.5 MB, free: 3.035 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002585/0.143, allocations: 92.09 kB / 359.6 MB, free: 2.945 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1431, allocations: 0 / 359.6 MB, free: 2.945 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.834e-05/0.1431, allocations: 27.98 kB / 359.6 MB, free: 2.918 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003987/0.1435, allocations: 84.7 kB / 359.7 MB, free: 2.832 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007046/0.1443, allocations: 416.2 kB / 360.1 MB, free: 2.395 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003608/0.1446, allocations: 0.7479 MB / 360.9 MB, free: 1.621 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.028e-05/0.1447, allocations: 33.78 kB / 360.9 MB, free: 1.582 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.209e-05/0.1448, allocations: 23.42 kB / 360.9 MB, free: 1.559 MB / 286.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1448, allocations: 0 / 360.9 MB, free: 1.559 MB / 286.1 MB Notification: Performance of Templates: time 0.006675/0.1515, allocations: 2.806 MB / 363.7 MB, free: 14.78 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y,backSample1.y Variables in the result:backSample1.backCounter,backSample1.resolution,backSample1.y,backSample1.y_start,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.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