Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009173/0.0009172, allocations: 101.5 kB / 17.01 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001135/0.001135, allocations: 194.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.564/1.564, allocations: 227.7 MB / 246.4 MB, free: 11.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002518/0.0002518, allocations: 8 kB / 307.1 MB, free: 1.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1272, allocations: 51.52 MB / 358.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.00236/0.1295, allocations: 1.591 MB / 360.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002026/0.1316, allocations: 1.209 MB / 361.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001241/0.1317, allocations: 4 kB / 361.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003064/0.1321, allocations: 63.73 kB / 361.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003147/0.1324, allocations: 111.6 kB / 361.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006168/0.133, allocations: 195.2 kB / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002299/0.1333, allocations: 159.5 kB / 362 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000114/0.1334, allocations: 37.66 kB / 362 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001136/0.1335, allocations: 67.64 kB / 362.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001134/0.1336, allocations: 71.69 kB / 362.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.033e-05/0.1336, allocations: 4 kB / 362.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001383/0.1338, allocations: 47.97 kB / 362.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.305e-05/0.1339, allocations: 43.83 kB / 362.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.811e-05/0.134, allocations: 57.58 kB / 362.3 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002677/0.1342, allocations: 195.8 kB / 362.5 MB, free: 9.781 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.1342, allocations: 0 / 362.5 MB, free: 9.781 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1343, allocations: 0 / 362.5 MB, free: 9.781 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.1343, allocations: 0 / 362.5 MB, free: 9.781 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008134/0.1351, allocations: 0.5193 MB / 363 MB, free: 9.207 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.1351, allocations: 8.031 kB / 363 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.081e-05/0.1352, allocations: 23.72 kB / 363 MB, free: 9.176 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003737/0.1356, allocations: 278.4 kB / 363.3 MB, free: 8.863 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.126e-05/0.1356, allocations: 4 kB / 363.3 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.679e-05/0.1356, allocations: 15.94 kB / 363.3 MB, free: 8.844 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003908/0.136, allocations: 182.8 kB / 363.5 MB, free: 8.637 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.1361, allocations: 3.984 kB / 363.5 MB, free: 8.633 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.854e-05/0.1361, allocations: 4 kB / 363.5 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.1361, allocations: 4 kB / 363.5 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001345/0.1362, allocations: 39.91 kB / 363.5 MB, free: 8.586 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005838/0.1368, allocations: 403.2 kB / 363.9 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002603/0.1371, allocations: 142.5 kB / 364.1 MB, free: 7.957 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001048/0.1372, allocations: 59.41 kB / 364.1 MB, free: 7.887 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.293e-05/0.1373, allocations: 7.938 kB / 364.1 MB, free: 7.879 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001923/0.1375, allocations: 75.39 kB / 364.2 MB, free: 7.793 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.523e-06/0.1375, allocations: 3.938 kB / 364.2 MB, free: 7.789 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004107/0.1379, allocations: 169.2 kB / 364.4 MB, free: 7.617 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001362/0.138, allocations: 192.3 kB / 364.6 MB, free: 7.387 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005085/0.1386, allocations: 343 kB / 364.9 MB, free: 7.043 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.473e-05/0.1386, allocations: 25.7 kB / 364.9 MB, free: 7.012 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.1387, allocations: 132.3 kB / 365.1 MB, free: 6.875 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.053e-05/0.1388, allocations: 19.83 kB / 365.1 MB, free: 6.855 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.327e-05/0.1388, allocations: 4 kB / 365.1 MB, free: 6.852 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000181/0.139, allocations: 338.8 kB / 365.4 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001173/0.1391, allocations: 23.98 kB / 365.4 MB, free: 6.488 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001645/0.1393, allocations: 96.58 kB / 365.5 MB, free: 6.363 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001291/0.1395, allocations: 39.94 kB / 365.6 MB, free: 6.324 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1395, allocations: 3.938 kB / 365.6 MB, free: 6.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003622/0.1398, allocations: 141.2 kB / 365.7 MB, free: 6.176 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.251e-05/0.1399, allocations: 7.125 kB / 365.7 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.1399, allocations: 0 / 365.7 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.1399, allocations: 4.312 kB / 365.7 MB, free: 6.168 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001623/0.1401, allocations: 28.17 kB / 365.7 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/0.1401, allocations: 3.938 kB / 365.8 MB, free: 6.137 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001254/0.1402, allocations: 15.91 kB / 365.8 MB, free: 6.121 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.84e-05/0.1403, allocations: 8 kB / 365.8 MB, free: 6.113 MB / 302.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.000207/0.1405, allocations: 157.8 kB / 365.9 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001355/0.1406, allocations: 77.36 kB / 366 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.867e-05/0.1407, allocations: 25.73 kB / 366 MB, free: 5.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.1407, allocations: 8.094 kB / 366 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.1407, allocations: 3.984 kB / 366 MB, free: 5.828 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.1407, allocations: 4 kB / 366 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00021/0.141, allocations: 241.5 kB / 366.3 MB, free: 5.539 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.141, allocations: 3.953 kB / 366.3 MB, free: 5.535 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.533e-05/0.1411, allocations: 19.94 kB / 366.3 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.1411, allocations: 11.88 kB / 366.3 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.42e-05/0.1411, allocations: 7.984 kB / 366.3 MB, free: 5.496 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.1411, allocations: 0 / 366.3 MB, free: 5.496 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1411, allocations: 0 / 366.3 MB, free: 5.496 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000264/0.1414, allocations: 187.3 kB / 366.5 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.612e-05/0.1415, allocations: 124.8 kB / 366.6 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.41e-05/0.1415, allocations: 8 kB / 366.6 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.07e-05/0.1416, allocations: 0 / 366.6 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.2e-05/0.1416, allocations: 15.98 kB / 366.7 MB, free: 5.121 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.883e-05/0.1417, allocations: 11.98 kB / 366.7 MB, free: 5.109 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002394/0.1419, allocations: 245.9 kB / 366.9 MB, free: 4.867 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1419, allocations: 0 / 366.9 MB, free: 4.867 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002713/0.1422, allocations: 39.91 kB / 366.9 MB, free: 4.828 MB / 302.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.001005/0.1432, allocations: 419.5 kB / 367.4 MB, free: 4.547 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002372/0.1435, allocations: 87.84 kB / 367.4 MB, free: 4.461 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.1435, allocations: 0 / 367.4 MB, free: 4.461 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.205e-05/0.1436, allocations: 27.98 kB / 367.5 MB, free: 4.434 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005439/0.1441, allocations: 72.16 kB / 367.5 MB, free: 4.363 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007305/0.1449, allocations: 430.8 kB / 368 MB, free: 3.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003343/0.1452, allocations: 0.7479 MB / 368.7 MB, free: 3.137 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.964e-05/0.1453, allocations: 29.53 kB / 368.7 MB, free: 3.105 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.216e-05/0.1454, allocations: 27.42 kB / 368.8 MB, free: 3.078 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1454, allocations: 0 / 368.8 MB, free: 3.078 MB / 302.1 MB Notification: Performance of Templates: time 0.007114/0.1525, allocations: 2.836 MB / 371.6 MB, free: 276 kB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.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