Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009594/0.0009593, allocations: 100.4 kB / 17 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00137/0.00137, allocations: 192.1 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.48/1.48, allocations: 227.7 MB / 246.4 MB, free: 11.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003667/0.0003668, allocations: 11.98 kB / 307.1 MB, free: 1.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1482/0.1486, allocations: 51.52 MB / 358.6 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003407/0.1521, allocations: 1.584 MB / 360.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002318/0.1544, allocations: 1.209 MB / 361.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002461/0.1547, allocations: 0 / 361.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004445/0.1552, allocations: 59.8 kB / 361.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000443/0.1556, allocations: 99.64 kB / 361.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001011/0.1567, allocations: 195 kB / 361.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005129/0.1572, allocations: 159.5 kB / 361.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001972/0.1574, allocations: 29.52 kB / 362 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002198/0.1576, allocations: 67.7 kB / 362 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001829/0.1578, allocations: 67.62 kB / 362.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.832e-05/0.1578, allocations: 4 kB / 362.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002355/0.1581, allocations: 51.95 kB / 362.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001287/0.1582, allocations: 47.84 kB / 362.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001015/0.1583, allocations: 65.56 kB / 362.3 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004454/0.1588, allocations: 175.9 kB / 362.4 MB, free: 9.816 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.496e-06/0.1588, allocations: 0 / 362.4 MB, free: 9.816 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.089e-06/0.1588, allocations: 0 / 362.4 MB, free: 9.816 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.293e-05/0.1588, allocations: 3.938 kB / 362.4 MB, free: 9.812 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.0009517/0.1598, allocations: 0.5039 MB / 362.9 MB, free: 9.254 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.1598, allocations: 12.03 kB / 362.9 MB, free: 9.242 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.842e-05/0.1599, allocations: 27.62 kB / 363 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004888/0.1604, allocations: 286.5 kB / 363.3 MB, free: 8.895 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.366e-05/0.1605, allocations: 0 / 363.3 MB, free: 8.895 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.151e-05/0.1605, allocations: 12 kB / 363.3 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004911/0.161, allocations: 176.3 kB / 363.4 MB, free: 8.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.161, allocations: 0 / 363.4 MB, free: 8.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.102e-05/0.1611, allocations: 7.984 kB / 363.4 MB, free: 8.672 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.1611, allocations: 11.92 kB / 363.5 MB, free: 8.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001392/0.1612, allocations: 39.92 kB / 363.5 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007328/0.162, allocations: 470.5 kB / 364 MB, free: 8.102 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002566/0.1622, allocations: 142.5 kB / 364.1 MB, free: 7.926 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.948e-05/0.1623, allocations: 59.41 kB / 364.2 MB, free: 7.855 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.567e-05/0.1624, allocations: 4 kB / 364.2 MB, free: 7.852 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002301/0.1626, allocations: 101.1 kB / 364.3 MB, free: 7.734 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.733e-06/0.1626, allocations: 0 / 364.3 MB, free: 7.734 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004413/0.1631, allocations: 161.3 kB / 364.4 MB, free: 7.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002322/0.1633, allocations: 191.9 kB / 364.6 MB, free: 7.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003957/0.1637, allocations: 343.3 kB / 364.9 MB, free: 6.996 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.627e-05/0.1638, allocations: 33.7 kB / 365 MB, free: 6.957 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.879e-05/0.1639, allocations: 128.4 kB / 365.1 MB, free: 6.824 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.363e-05/0.1639, allocations: 19.75 kB / 365.1 MB, free: 6.805 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.132e-06/0.1639, allocations: 0 / 365.1 MB, free: 6.805 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.1641, allocations: 342.8 kB / 365.4 MB, free: 6.461 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.587e-05/0.1642, allocations: 23.98 kB / 365.5 MB, free: 6.438 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001236/0.1643, allocations: 99.64 kB / 365.6 MB, free: 6.312 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.296e-05/0.1644, allocations: 35.94 kB / 365.6 MB, free: 6.277 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1644, allocations: 0 / 365.6 MB, free: 6.277 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002616/0.1647, allocations: 145.2 kB / 365.7 MB, free: 6.129 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.1647, allocations: 4 kB / 365.7 MB, free: 6.125 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.1647, allocations: 0 / 365.7 MB, free: 6.125 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/0.1648, allocations: 4 kB / 365.8 MB, free: 6.121 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000122/0.1649, allocations: 23.92 kB / 365.8 MB, free: 6.098 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.869e-06/0.1649, allocations: 4 kB / 365.8 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.646e-05/0.165, allocations: 8 kB / 365.8 MB, free: 6.086 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.279e-05/0.165, allocations: 4 kB / 365.8 MB, free: 6.082 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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,shiftSample1.y,hold1.u,hold1.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.0001556/0.1652, allocations: 166.2 kB / 366 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.809e-05/0.1653, allocations: 73.34 kB / 366 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.342e-05/0.1653, allocations: 29.73 kB / 366.1 MB, free: 5.797 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.1654, allocations: 4 kB / 366.1 MB, free: 5.793 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.1654, allocations: 0 / 366.1 MB, free: 5.793 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.1654, allocations: 0 / 366.1 MB, free: 5.793 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002358/0.1656, allocations: 257.4 kB / 366.3 MB, free: 5.492 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.1656, allocations: 0 / 366.3 MB, free: 5.492 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.043e-05/0.1657, allocations: 12 kB / 366.3 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.1657, allocations: 8.062 kB / 366.3 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.39e-05/0.1657, allocations: 3.984 kB / 366.3 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.703e-06/0.1657, allocations: 7.938 kB / 366.3 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1658, allocations: 0 / 366.3 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002924/0.1661, allocations: 191.2 kB / 366.5 MB, free: 5.246 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001348/0.1662, allocations: 120.8 kB / 366.6 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.385e-05/0.1662, allocations: 4 kB / 366.7 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.108e-05/0.1663, allocations: 7.984 kB / 366.7 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.471e-05/0.1664, allocations: 8 kB / 366.7 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.978e-05/0.1664, allocations: 7.984 kB / 366.7 MB, free: 5.082 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003009/0.1667, allocations: 249.9 kB / 366.9 MB, free: 4.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1667, allocations: 4 kB / 366.9 MB, free: 4.836 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002857/0.167, allocations: 35.98 kB / 367 MB, free: 4.801 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,hold1.y,hold1.u,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 (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.001105/0.1681, allocations: 428.1 kB / 367.4 MB, free: 4.512 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002679/0.1684, allocations: 75.91 kB / 367.4 MB, free: 4.438 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.1684, allocations: 0 / 367.4 MB, free: 4.438 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.65e-05/0.1685, allocations: 39.92 kB / 367.5 MB, free: 4.398 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004333/0.169, allocations: 64.78 kB / 367.6 MB, free: 4.336 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008069/0.1698, allocations: 426.1 kB / 368 MB, free: 3.887 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004017/0.1702, allocations: 0.7556 MB / 368.7 MB, free: 3.105 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000107/0.1703, allocations: 25.53 kB / 368.7 MB, free: 3.078 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.743e-05/0.1704, allocations: 19.44 kB / 368.8 MB, free: 3.062 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1704, allocations: 0 / 368.8 MB, free: 3.062 MB / 302.1 MB Notification: Performance of Templates: time 0.007028/0.1774, allocations: 2.726 MB / 371.5 MB, free: 364 kB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y,hold1.y Variables in the result:hold1.y,hold1.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