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/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.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/Complex trunk/package.mo): time 0.001234/0.001234, allocations: 200.7 kB / 18.1 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 226.5 MB / 245.4 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008535/0.0008533, allocations: 96.14 kB / 297.5 MB, free: 6.652 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004208/0.0004208, allocations: 8 kB / 358.1 MB, free: 10.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3045/0.3049, allocations: 51.29 MB / 409.4 MB, free: 27.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1176/0.4226, allocations: 82.43 MB / 491.8 MB, free: 9.039 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002565/0.4229, allocations: 79.95 kB / 491.9 MB, free: 8.961 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02007/0.443, allocations: 7.035 MB / 498.9 MB, free: 1.934 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.443, allocations: 0 / 498.9 MB, free: 1.934 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.52e-05/0.4431, allocations: 4 kB / 498.9 MB, free: 1.93 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.0008607/0.444, allocations: 0.5585 MB / 499.5 MB, free: 1.312 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.444, allocations: 8.031 kB / 499.5 MB, free: 1.305 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.915e-05/0.4441, allocations: 32.55 kB / 499.5 MB, free: 1.273 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004889/0.4446, allocations: 307.5 kB / 499.8 MB, free: 0.9336 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.505e-05/0.4446, allocations: 12.38 kB / 499.8 MB, free: 0.9219 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.407e-05/0.4447, allocations: 12.31 kB / 499.9 MB, free: 0.9102 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003695/0.445, allocations: 184.8 kB / 0.4883 GB, free: 0.6992 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.759e-06/0.4451, allocations: 192 / 0.4883 GB, free: 0.6992 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.063e-05/0.4451, allocations: 11.94 kB / 0.4883 GB, free: 0.6875 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.4451, allocations: 4 kB / 0.4883 GB, free: 0.6836 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001327/0.4453, allocations: 43.91 kB / 0.4884 GB, free: 0.6406 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006247/0.4459, allocations: 419.1 kB / 0.4888 GB, free: 176 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002822/0.4462, allocations: 146.5 kB / 0.4889 GB, free: 15.99 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001061/0.4463, allocations: 59.38 kB / 0.489 GB, free: 15.92 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.07e-05/0.4463, allocations: 0 / 0.489 GB, free: 15.92 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002032/0.4465, allocations: 83.31 kB / 0.489 GB, free: 15.83 MB / 378.7 MB Notification: Performance of pre-optimization done (n=11): time 2.304e-06/0.4466, allocations: 0 / 0.489 GB, free: 15.83 MB / 378.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004443/0.447, allocations: 173.3 kB / 0.4892 GB, free: 15.65 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001146/0.4471, allocations: 191.9 kB / 0.4894 GB, free: 15.42 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000393/0.4475, allocations: 346.9 kB / 0.4897 GB, free: 15.07 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.312e-05/0.4476, allocations: 25.7 kB / 0.4897 GB, free: 15.04 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.972e-05/0.4477, allocations: 132.4 kB / 0.4899 GB, free: 14.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.741e-05/0.4477, allocations: 20.25 kB / 0.4899 GB, free: 14.89 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.732e-06/0.4477, allocations: 8 kB / 0.4899 GB, free: 14.88 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.4479, allocations: 338.8 kB / 0.4902 GB, free: 14.54 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.41e-05/0.4479, allocations: 23.98 kB / 0.4902 GB, free: 14.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001417/0.4481, allocations: 108.5 kB / 0.4904 GB, free: 14.38 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001754/0.4483, allocations: 105.8 kB / 0.4905 GB, free: 14.25 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.4483, allocations: 0 / 0.4905 GB, free: 14.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002633/0.4486, allocations: 149.2 kB / 0.4906 GB, free: 14.1 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.4486, allocations: 4 kB / 0.4906 GB, free: 14.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.4486, allocations: 4 kB / 0.4906 GB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.4486, allocations: 0 / 0.4906 GB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000121/0.4487, allocations: 27.92 kB / 0.4906 GB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.4488, allocations: 0 / 0.4906 GB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.142e-05/0.4489, allocations: 8.312 kB / 0.4906 GB, free: 14.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.805e-05/0.4489, allocations: 8.188 kB / 0.4906 GB, free: 14.05 MB / 378.7 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,sample1.u,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.0002061/0.4491, allocations: 169.6 kB / 0.4908 GB, free: 13.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001266/0.4492, allocations: 81.34 kB / 0.4909 GB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002989/0.4495, allocations: 123.4 kB / 0.491 GB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.4496, allocations: 4 kB / 0.491 GB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.4496, allocations: 0 / 0.491 GB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.4496, allocations: 0 / 0.491 GB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002547/0.4498, allocations: 265.5 kB / 0.4913 GB, free: 13.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.4499, allocations: 4 kB / 0.4913 GB, free: 13.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.027e-05/0.4499, allocations: 19.92 kB / 0.4913 GB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.45, allocations: 3.938 kB / 0.4913 GB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.627e-05/0.45, allocations: 4 kB / 0.4913 GB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.45, allocations: 0 / 0.4913 GB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.45, allocations: 4.047 kB / 0.4913 GB, free: 13.31 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003031/0.4503, allocations: 205 kB / 0.4915 GB, free: 13.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001525/0.4505, allocations: 120.8 kB / 0.4916 GB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.944e-05/0.4505, allocations: 8 kB / 0.4916 GB, free: 12.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.323e-05/0.4506, allocations: 4 kB / 0.4916 GB, free: 12.94 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.974e-05/0.4507, allocations: 11.98 kB / 0.4916 GB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.289e-05/0.4507, allocations: 4 kB / 0.4916 GB, free: 12.92 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002722/0.451, allocations: 253.9 kB / 0.4919 GB, free: 12.67 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.451, allocations: 4 kB / 0.4919 GB, free: 12.67 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003251/0.4513, allocations: 55.88 kB / 0.4919 GB, free: 12.61 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,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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.001025/0.4523, allocations: 437.8 kB / 0.4923 GB, free: 12.33 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002892/0.4526, allocations: 99.81 kB / 0.4924 GB, free: 12.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.4526, allocations: 4.312 kB / 0.4924 GB, free: 12.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.887e-05/0.4527, allocations: 35.98 kB / 0.4925 GB, free: 12.19 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004944/0.4532, allocations: 87.42 kB / 0.4926 GB, free: 12.11 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007258/0.454, allocations: 446.4 kB / 0.493 GB, free: 11.63 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003869/0.4544, allocations: 0.7517 MB / 0.4937 GB, free: 10.86 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001552/0.4545, allocations: 25.53 kB / 0.4937 GB, free: 10.83 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.262e-05/0.4546, allocations: 31.44 kB / 0.4938 GB, free: 10.8 MB / 378.7 MB Notification: Performance of SimCode: time 1.984e-06/0.4546, allocations: 0 / 0.4938 GB, free: 10.8 MB / 378.7 MB Notification: Performance of Templates: time 0.006992/0.4616, allocations: 3.027 MB / 0.4967 GB, free: 7.793 MB / 378.7 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","../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