Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008883/0.0008883, allocations: 176.4 kB / 17.4 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.498/1.498, allocations: 223.3 MB / 241.4 MB, free: 11.73 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009462/0.0009466, allocations: 96.28 kB / 292.6 MB, free: 10.79 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003993/0.0003994, allocations: 11.94 kB / 352.3 MB, free: 15.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3022/0.3027, allocations: 50.4 MB / 402.7 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1122/0.4149, allocations: 81.37 MB / 484.1 MB, free: 14.96 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002502/0.4152, allocations: 83.95 kB / 484.2 MB, free: 14.88 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01684/0.4321, allocations: 6.241 MB / 490.4 MB, free: 8.641 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.296e-06/0.4321, allocations: 0 / 490.4 MB, free: 8.641 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.615e-05/0.4321, allocations: 8 kB / 490.5 MB, free: 8.633 MB / 362.7 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.000933/0.4331, allocations: 0.5273 MB / 491 MB, free: 8.047 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.264e-05/0.4332, allocations: 12.03 kB / 491 MB, free: 8.035 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001062/0.4333, allocations: 20.66 kB / 491 MB, free: 8.016 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005548/0.4338, allocations: 303.5 kB / 491.3 MB, free: 7.68 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.367e-05/0.4339, allocations: 4.375 kB / 491.3 MB, free: 7.676 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.951e-05/0.4339, allocations: 12.38 kB / 491.3 MB, free: 7.664 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003978/0.4343, allocations: 176 kB / 491.5 MB, free: 7.465 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.4343, allocations: 192 / 491.5 MB, free: 7.465 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.65e-05/0.4344, allocations: 7.938 kB / 491.5 MB, free: 7.457 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.4344, allocations: 4 kB / 491.5 MB, free: 7.453 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001347/0.4345, allocations: 39.92 kB / 491.5 MB, free: 7.414 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007207/0.4353, allocations: 494.4 kB / 492 MB, free: 6.871 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002789/0.4356, allocations: 150.8 kB / 492.2 MB, free: 6.688 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.4357, allocations: 55.42 kB / 492.2 MB, free: 6.621 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.542e-05/0.4357, allocations: 7.984 kB / 492.2 MB, free: 6.613 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002275/0.436, allocations: 105 kB / 492.3 MB, free: 6.492 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 2.224e-06/0.436, allocations: 3.938 kB / 492.3 MB, free: 6.488 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004935/0.4365, allocations: 169.2 kB / 492.5 MB, free: 6.316 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001251/0.4366, allocations: 192.3 kB / 492.7 MB, free: 6.086 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004835/0.4371, allocations: 326.7 kB / 493 MB, free: 5.754 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.159e-05/0.4371, allocations: 29.7 kB / 493 MB, free: 5.719 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.885e-05/0.4372, allocations: 132.3 kB / 493.2 MB, free: 5.582 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.061e-05/0.4373, allocations: 19.81 kB / 493.2 MB, free: 5.562 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.107e-06/0.4373, allocations: 8 kB / 493.2 MB, free: 5.555 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.4375, allocations: 338.7 kB / 493.5 MB, free: 5.215 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.82e-05/0.4375, allocations: 27.98 kB / 493.6 MB, free: 5.188 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001352/0.4377, allocations: 107.6 kB / 493.7 MB, free: 5.055 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001759/0.4379, allocations: 105.1 kB / 493.8 MB, free: 4.934 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.4379, allocations: 0 / 493.8 MB, free: 4.934 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002912/0.4382, allocations: 129.4 kB / 493.9 MB, free: 4.801 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.764e-05/0.4382, allocations: 8 kB / 493.9 MB, free: 4.793 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.4382, allocations: 3.984 kB / 493.9 MB, free: 4.789 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.356e-05/0.4383, allocations: 4.156 kB / 493.9 MB, free: 4.785 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001483/0.4384, allocations: 24.25 kB / 493.9 MB, free: 4.762 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.181e-05/0.4384, allocations: 3.984 kB / 493.9 MB, free: 4.758 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001165/0.4386, allocations: 15.91 kB / 494 MB, free: 4.742 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.617e-05/0.4386, allocations: 8 kB / 494 MB, free: 4.734 MB / 362.7 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.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sample1.u,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.0002035/0.4388, allocations: 153.8 kB / 494.1 MB, free: 4.574 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001281/0.4389, allocations: 77.28 kB / 494.2 MB, free: 4.492 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003084/0.4392, allocations: 131.4 kB / 494.3 MB, free: 4.355 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.4393, allocations: 0 / 494.3 MB, free: 4.355 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.525e-06/0.4393, allocations: 4 kB / 494.3 MB, free: 4.352 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.4393, allocations: 0 / 494.3 MB, free: 4.352 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002715/0.4396, allocations: 253.5 kB / 494.6 MB, free: 4.055 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.4396, allocations: 0 / 494.6 MB, free: 4.055 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.099e-05/0.4397, allocations: 19.98 kB / 494.6 MB, free: 4.035 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.4397, allocations: 0 / 494.6 MB, free: 4.035 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/0.4397, allocations: 8 kB / 494.6 MB, free: 4.027 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.554e-06/0.4397, allocations: 0 / 494.6 MB, free: 4.027 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.4397, allocations: 0 / 494.6 MB, free: 4.027 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002853/0.44, allocations: 199.2 kB / 494.8 MB, free: 3.805 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001335/0.4401, allocations: 136.8 kB / 494.9 MB, free: 3.652 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.245e-05/0.4402, allocations: 0 / 494.9 MB, free: 3.652 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.319e-05/0.4403, allocations: 8 kB / 494.9 MB, free: 3.645 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.151e-05/0.4403, allocations: 15.98 kB / 494.9 MB, free: 3.629 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.379e-05/0.4404, allocations: 7.984 kB / 495 MB, free: 3.621 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002576/0.4406, allocations: 237.9 kB / 495.2 MB, free: 3.387 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4406, allocations: 0 / 495.2 MB, free: 3.387 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004023/0.441, allocations: 51.98 kB / 495.2 MB, free: 3.336 MB / 362.7 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.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,sample1.u,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * 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.001097/0.4421, allocations: 441.1 kB / 495.7 MB, free: 3.062 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003294/0.4425, allocations: 107.8 kB / 495.8 MB, free: 2.957 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.4425, allocations: 0 / 495.8 MB, free: 2.957 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001111/0.4426, allocations: 39.92 kB / 495.8 MB, free: 2.918 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005014/0.4431, allocations: 71.09 kB / 495.9 MB, free: 2.852 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008603/0.444, allocations: 433.6 kB / 496.3 MB, free: 2.395 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004432/0.4445, allocations: 0.7401 MB / 497 MB, free: 1.629 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001324/0.4446, allocations: 41.61 kB / 497.1 MB, free: 1.59 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.19e-05/0.4447, allocations: 19.44 kB / 497.1 MB, free: 1.574 MB / 362.7 MB Notification: Performance of SimCode: time 1.953e-06/0.4447, allocations: 0 / 497.1 MB, free: 1.574 MB / 362.7 MB Notification: Performance of Templates: time 0.007512/0.4522, allocations: 2.875 MB / 500 MB, free: 14.73 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","../files/Modelica_4.0.0_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.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