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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.002242/0.002241, allocations: 196 kB / 18.1 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.696/1.696, allocations: 226.5 MB / 245.4 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008903/0.0008904, allocations: 97.98 kB / 297.5 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002887/0.0002888, allocations: 8 kB / 358.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3095/0.3098, allocations: 51.29 MB / 409.4 MB, free: 27.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1287/0.4385, allocations: 82.5 MB / 491.9 MB, free: 8.996 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002731/0.4389, allocations: 83.95 kB / 492 MB, free: 8.914 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01914/0.458, allocations: 7.031 MB / 499 MB, free: 1.887 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.156e-06/0.4581, allocations: 0 / 499 MB, free: 1.887 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.373e-05/0.4581, allocations: 4 kB / 499 MB, free: 1.883 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.0009623/0.4591, allocations: 0.5468 MB / 499.5 MB, free: 1.277 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.4592, allocations: 8.031 kB / 499.6 MB, free: 1.27 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.905e-05/0.4593, allocations: 28.64 kB / 499.6 MB, free: 1.242 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004504/0.4597, allocations: 311.5 kB / 499.9 MB, free: 0.8984 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.462e-05/0.4597, allocations: 12.31 kB / 499.9 MB, free: 0.8867 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.272e-05/0.4598, allocations: 8.359 kB / 499.9 MB, free: 0.8789 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003655/0.4602, allocations: 176.9 kB / 0.4884 GB, free: 0.6758 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.4602, allocations: 192 / 0.4884 GB, free: 0.6758 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.092e-05/0.4602, allocations: 11.94 kB / 0.4884 GB, free: 0.6641 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.4602, allocations: 0 / 0.4884 GB, free: 0.6641 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001213/0.4603, allocations: 43.91 kB / 0.4884 GB, free: 0.6211 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006515/0.461, allocations: 498.4 kB / 0.4889 GB, free: 76 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000288/0.4613, allocations: 142.5 kB / 0.489 GB, free: 15.9 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001039/0.4614, allocations: 71.41 kB / 0.4891 GB, free: 15.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.762e-05/0.4615, allocations: 0 / 0.4891 GB, free: 15.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002015/0.4617, allocations: 101.1 kB / 0.4892 GB, free: 15.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=11): time 1.332e-06/0.4617, allocations: 0 / 0.4892 GB, free: 15.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004097/0.4621, allocations: 173.3 kB / 0.4894 GB, free: 15.52 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/0.4622, allocations: 183.9 kB / 0.4895 GB, free: 15.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000361/0.4626, allocations: 335 kB / 0.4898 GB, free: 14.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.096e-05/0.4626, allocations: 34.08 kB / 0.4899 GB, free: 14.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.158e-05/0.4627, allocations: 140.4 kB / 0.49 GB, free: 14.78 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.036e-05/0.4627, allocations: 11.81 kB / 0.49 GB, free: 14.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.43e-06/0.4628, allocations: 4 kB / 0.49 GB, free: 14.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.4629, allocations: 338.8 kB / 0.4903 GB, free: 14.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.236e-05/0.463, allocations: 27.98 kB / 0.4904 GB, free: 14.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001299/0.4631, allocations: 103.7 kB / 0.4905 GB, free: 14.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001685/0.4633, allocations: 101.2 kB / 0.4906 GB, free: 14.15 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.4633, allocations: 0 / 0.4906 GB, free: 14.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002486/0.4636, allocations: 149.2 kB / 0.4907 GB, free: 14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.4636, allocations: 8 kB / 0.4907 GB, free: 13.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.4636, allocations: 0 / 0.4907 GB, free: 13.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.4636, allocations: 4 kB / 0.4907 GB, free: 13.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001141/0.4637, allocations: 19.98 kB / 0.4907 GB, free: 13.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/0.4638, allocations: 4 kB / 0.4907 GB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.239e-05/0.4638, allocations: 11.84 kB / 0.4908 GB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.4639, allocations: 16.09 kB / 0.4908 GB, free: 13.94 MB / 378.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.000162/0.464, allocations: 157.7 kB / 0.4909 GB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.313e-05/0.4641, allocations: 73.36 kB / 0.491 GB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002718/0.4644, allocations: 127.4 kB / 0.4911 GB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.4644, allocations: 4 kB / 0.4911 GB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.85e-06/0.4644, allocations: 0 / 0.4911 GB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.4645, allocations: 4 kB / 0.4911 GB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002344/0.4647, allocations: 265.5 kB / 0.4914 GB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.4647, allocations: 0 / 0.4914 GB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.215e-05/0.4648, allocations: 19.88 kB / 0.4914 GB, free: 13.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.021e-06/0.4648, allocations: 4 kB / 0.4914 GB, free: 13.22 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.718e-05/0.4648, allocations: 7.984 kB / 0.4914 GB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.4648, allocations: 4 kB / 0.4914 GB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4648, allocations: 0 / 0.4914 GB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003105/0.4652, allocations: 193.3 kB / 0.4916 GB, free: 13 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001267/0.4653, allocations: 128.8 kB / 0.4917 GB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.149e-05/0.4653, allocations: 3.984 kB / 0.4917 GB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.886e-05/0.4654, allocations: 8 kB / 0.4917 GB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.578e-05/0.4655, allocations: 7.984 kB / 0.4917 GB, free: 12.83 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.16e-05/0.4655, allocations: 8 kB / 0.4917 GB, free: 12.82 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002475/0.4657, allocations: 253.9 kB / 0.492 GB, free: 12.57 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4658, allocations: 0 / 0.492 GB, free: 12.57 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003109/0.4661, allocations: 51.92 kB / 0.492 GB, free: 12.52 MB / 378.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.000986/0.4671, allocations: 433.5 kB / 0.4925 GB, free: 12.24 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002986/0.4674, allocations: 99.77 kB / 0.4925 GB, free: 12.14 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.4674, allocations: 320 / 0.4925 GB, free: 12.14 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001001/0.4675, allocations: 47.97 kB / 0.4926 GB, free: 12.09 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004396/0.4679, allocations: 70.98 kB / 0.4927 GB, free: 12.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006865/0.4686, allocations: 441.5 kB / 0.4931 GB, free: 11.56 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003751/0.469, allocations: 0.7479 MB / 0.4938 GB, free: 10.79 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.739e-05/0.4691, allocations: 33.66 kB / 0.4938 GB, free: 10.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.714e-05/0.4692, allocations: 23.44 kB / 0.4939 GB, free: 10.73 MB / 378.7 MB Notification: Performance of SimCode: time 3.31e-07/0.4692, allocations: 4 kB / 0.4939 GB, free: 10.72 MB / 378.7 MB Notification: Performance of Templates: time 0.006502/0.4757, allocations: 2.913 MB / 0.4967 GB, free: 7.832 MB / 378.7 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","../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