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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001934/0.001933, allocations: 109.5 kB / 17.32 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001896/0.001896, allocations: 205.8 kB / 18.26 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.542/1.542, allocations: 227.4 MB / 246.4 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 59.52 kB / 306.6 MB, free: 0.8398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1586/0.16, allocations: 50.53 MB / 357.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.005148/0.1652, allocations: 1.975 MB / 359.1 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002968/0.1682, allocations: 1.294 MB / 360.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002058/0.1685, allocations: 4 kB / 360.4 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004638/0.169, allocations: 71.72 kB / 360.4 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004664/0.1695, allocations: 115.6 kB / 360.5 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009344/0.1704, allocations: 199 kB / 360.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003228/0.1708, allocations: 191.5 kB / 360.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000107/0.1709, allocations: 41.64 kB / 361 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001143/0.171, allocations: 87.58 kB / 361 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001295/0.1712, allocations: 87.61 kB / 361.1 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.461e-05/0.1712, allocations: 8 kB / 361.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001943/0.1714, allocations: 67.95 kB / 361.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.33e-05/0.1715, allocations: 55.77 kB / 361.3 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.606e-05/0.1716, allocations: 79.42 kB / 361.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004428/0.1721, allocations: 251.4 kB / 361.6 MB, free: 9.785 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1721, allocations: 0 / 361.6 MB, free: 9.785 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.1721, allocations: 4 kB / 361.6 MB, free: 9.781 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.1721, allocations: 0 / 361.6 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.0008927/0.173, allocations: 0.5428 MB / 362.1 MB, free: 9.184 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.1731, allocations: 12.03 kB / 362.1 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.47e-05/0.1731, allocations: 46.67 kB / 362.2 MB, free: 9.117 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.923e-05/0.1732, allocations: 24.56 kB / 362.2 MB, free: 9.094 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000443/0.1737, allocations: 291.6 kB / 362.5 MB, free: 8.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.718e-05/0.1737, allocations: 16.3 kB / 362.5 MB, free: 8.754 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.133e-05/0.1737, allocations: 7.938 kB / 362.5 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004564/0.1742, allocations: 180.4 kB / 362.7 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.1742, allocations: 0 / 362.7 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.643e-05/0.1743, allocations: 7.984 kB / 362.7 MB, free: 8.531 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.1743, allocations: 0 / 362.7 MB, free: 8.531 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001592/0.1745, allocations: 43.92 kB / 362.7 MB, free: 8.488 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006658/0.1751, allocations: 403.1 kB / 363.1 MB, free: 8.035 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003468/0.1755, allocations: 138.5 kB / 363.3 MB, free: 7.863 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001576/0.1757, allocations: 59.36 kB / 363.3 MB, free: 7.793 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.838e-05/0.1757, allocations: 8 kB / 363.3 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002965/0.176, allocations: 75.38 kB / 363.4 MB, free: 7.699 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 2.014e-06/0.176, allocations: 0 / 363.4 MB, free: 7.699 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005448/0.1766, allocations: 177.7 kB / 363.6 MB, free: 7.52 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001395/0.1767, allocations: 195.9 kB / 363.8 MB, free: 7.285 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004972/0.1773, allocations: 346.9 kB / 364.1 MB, free: 6.938 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.201e-05/0.1773, allocations: 29.7 kB / 364.1 MB, free: 6.902 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001219/0.1774, allocations: 132.3 kB / 364.3 MB, free: 6.766 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.582e-05/0.1775, allocations: 27.8 kB / 364.3 MB, free: 6.738 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.65e-05/0.1776, allocations: 33.7 kB / 364.3 MB, free: 6.699 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.1777, allocations: 334.8 kB / 364.7 MB, free: 6.363 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.936e-05/0.1778, allocations: 24 kB / 364.7 MB, free: 6.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001745/0.178, allocations: 100.6 kB / 364.8 MB, free: 6.211 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00024/0.1783, allocations: 105.9 kB / 364.9 MB, free: 6.086 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1783, allocations: 0 / 364.9 MB, free: 6.086 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003673/0.1787, allocations: 137.3 kB / 365 MB, free: 5.945 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.1787, allocations: 8 kB / 365 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.1787, allocations: 0 / 365 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.1787, allocations: 4 kB / 365 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001634/0.1789, allocations: 23.92 kB / 365.1 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.1789, allocations: 7.938 kB / 365.1 MB, free: 5.902 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001302/0.1791, allocations: 15.92 kB / 365.1 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.613e-05/0.1791, allocations: 4 kB / 365.1 MB, free: 5.883 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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002/0.1793, allocations: 158 kB / 365.2 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001556/0.1795, allocations: 81.34 kB / 365.3 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.302e-05/0.1796, allocations: 29.73 kB / 365.3 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.1796, allocations: 0 / 365.3 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.1796, allocations: 4 kB / 365.4 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.1796, allocations: 7.875 kB / 365.4 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003154/0.1799, allocations: 253.3 kB / 365.6 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.1799, allocations: 0 / 365.6 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001095/0.1801, allocations: 20.08 kB / 365.6 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.1801, allocations: 0 / 365.6 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.119e-05/0.1801, allocations: 12.12 kB / 365.6 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.1801, allocations: 0 / 365.6 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.1801, allocations: 4 kB / 365.6 MB, free: 5.258 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004003/0.1805, allocations: 187.2 kB / 365.8 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001382/0.1807, allocations: 116.8 kB / 365.9 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.217e-05/0.1807, allocations: 4 kB / 365.9 MB, free: 4.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001044/0.1808, allocations: 7.984 kB / 366 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.557e-05/0.1809, allocations: 11.94 kB / 366 MB, free: 4.891 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.399e-05/0.1809, allocations: 7.984 kB / 366 MB, free: 4.883 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003446/0.1813, allocations: 249.9 kB / 366.2 MB, free: 4.637 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1813, allocations: 0 / 366.2 MB, free: 4.637 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004418/0.1818, allocations: 39.98 kB / 366.3 MB, free: 4.598 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 (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.001983/0.1838, allocations: 1.036 MB / 367.3 MB, free: 3.672 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003446/0.1841, allocations: 87.84 kB / 367.4 MB, free: 3.586 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.1841, allocations: 0 / 367.4 MB, free: 3.586 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001197/0.1843, allocations: 31.98 kB / 367.4 MB, free: 3.555 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006561/0.1849, allocations: 81.05 kB / 367.5 MB, free: 3.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004372/0.1893, allocations: 2.358 MB / 369.8 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004757/0.1898, allocations: 0.7476 MB / 370.6 MB, free: 220 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001634/0.19, allocations: 33.52 kB / 370.6 MB, free: 188 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001588/0.1902, allocations: 67.41 kB / 370.7 MB, free: 120 kB / 302.1 MB Notification: Performance of SimCode: time 1.383e-06/0.1902, allocations: 0 / 370.7 MB, free: 120 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3068/0.497, allocations: 5.437 MB / 376.1 MB, free: 19.66 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003135/0.4974, allocations: 260.5 kB / 376.4 MB, free: 19.41 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.154/2.651, allocations: 3.5 kB / 376.4 MB, free: 19.41 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Error getting time " Variables in the reference:time,sample1.y,shiftSample1.y,backSample1.y Variables in the result:backSample1.backCounter,backSample1.resolution,backSample1.u,backSample1.y,backSample1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.u,shiftSample1.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nHeaderLines,table.combiTimeTable.nout,table.combiTimeTable.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.combiTimeTable.y[1],table.extrapolation,table.realToInteger.u,table.realToInteger.y,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],table.y,time