Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001409/0.001408, allocations: 196 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.551/1.551, allocations: 226.5 MB / 245.4 MB, free: 6.469 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008091/0.000809, allocations: 103 kB / 297.5 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002263/0.0002263, allocations: 8 kB / 358.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.274/0.2743, allocations: 51.29 MB / 409.4 MB, free: 27.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1192/0.3936, allocations: 82.41 MB / 491.8 MB, free: 9.102 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003522/0.394, allocations: 87.89 kB / 491.9 MB, free: 9.016 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01966/0.4137, allocations: 6.892 MB / 498.8 MB, free: 2.133 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.477e-06/0.4137, allocations: 0 / 498.8 MB, free: 2.133 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.327e-05/0.4138, allocations: 4 kB / 498.8 MB, free: 2.129 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.001041/0.4148, allocations: 0.5276 MB / 499.3 MB, free: 1.543 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.127e-05/0.4149, allocations: 8.031 kB / 499.3 MB, free: 1.535 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001223/0.415, allocations: 24.66 kB / 499.3 MB, free: 1.512 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006648/0.4157, allocations: 282.7 kB / 499.6 MB, free: 1.195 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.482e-05/0.4157, allocations: 12.38 kB / 499.6 MB, free: 1.184 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.426e-05/0.4158, allocations: 4.375 kB / 499.6 MB, free: 1.18 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004916/0.4163, allocations: 180 kB / 499.8 MB, free: 0.9766 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/0.4163, allocations: 192 / 499.8 MB, free: 0.9766 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.189e-05/0.4164, allocations: 7.938 kB / 499.8 MB, free: 0.9688 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.329e-05/0.4164, allocations: 7.984 kB / 499.8 MB, free: 0.9609 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001482/0.4165, allocations: 39.92 kB / 499.8 MB, free: 0.9219 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000815/0.4174, allocations: 379.2 kB / 0.4885 GB, free: 0.4922 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002989/0.4177, allocations: 142.4 kB / 0.4886 GB, free: 324 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001217/0.4178, allocations: 59.42 kB / 0.4887 GB, free: 252 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.957e-05/0.4179, allocations: 3.984 kB / 0.4887 GB, free: 248 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002058/0.4181, allocations: 75.33 kB / 0.4888 GB, free: 160 kB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 3.657e-06/0.4181, allocations: 0 / 0.4888 GB, free: 160 kB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.000589/0.4187, allocations: 165.3 kB / 0.4889 GB, free: 15.99 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001226/0.4188, allocations: 162.2 kB / 0.4891 GB, free: 15.79 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004421/0.4193, allocations: 282.5 kB / 0.4893 GB, free: 15.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.831e-05/0.4193, allocations: 29.7 kB / 0.4894 GB, free: 15.47 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.4195, allocations: 120.4 kB / 0.4895 GB, free: 15.34 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.77e-05/0.4195, allocations: 24.17 kB / 0.4895 GB, free: 15.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.029e-06/0.4195, allocations: 8 kB / 0.4895 GB, free: 15.31 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.4197, allocations: 330.8 kB / 0.4898 GB, free: 14.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.965e-05/0.4198, allocations: 23.98 kB / 0.4899 GB, free: 14.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001094/0.4199, allocations: 87.64 kB / 0.4899 GB, free: 14.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001619/0.42, allocations: 93.97 kB / 0.49 GB, free: 14.73 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.4201, allocations: 0 / 0.49 GB, free: 14.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002546/0.4203, allocations: 133.4 kB / 0.4902 GB, free: 14.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.4203, allocations: 7.938 kB / 0.4902 GB, free: 14.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.176e-06/0.4204, allocations: 4 kB / 0.4902 GB, free: 14.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.4204, allocations: 0 / 0.4902 GB, free: 14.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.017e-05/0.4205, allocations: 15.98 kB / 0.4902 GB, free: 14.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/0.4205, allocations: 4.312 kB / 0.4902 GB, free: 14.56 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.579e-05/0.4206, allocations: 11.91 kB / 0.4902 GB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.513e-05/0.4206, allocations: 8.188 kB / 0.4902 GB, free: 14.54 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.0001512/0.4208, allocations: 153.6 kB / 0.4904 GB, free: 14.38 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000114/0.4209, allocations: 77.44 kB / 0.4904 GB, free: 14.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002709/0.4212, allocations: 111.4 kB / 0.4905 GB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.4212, allocations: 0 / 0.4905 GB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.4212, allocations: 4 kB / 0.4905 GB, free: 14.17 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.4212, allocations: 3.984 kB / 0.4905 GB, free: 14.17 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002576/0.4215, allocations: 253.4 kB / 0.4908 GB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.197e-06/0.4215, allocations: 0 / 0.4908 GB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.803e-05/0.4215, allocations: 11.94 kB / 0.4908 GB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.4215, allocations: 0 / 0.4908 GB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.425e-05/0.4216, allocations: 4 kB / 0.4908 GB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.4216, allocations: 0 / 0.4908 GB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.4216, allocations: 4 kB / 0.4908 GB, free: 13.85 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003049/0.4219, allocations: 185.5 kB / 0.491 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001555/0.4221, allocations: 116.8 kB / 0.4911 GB, free: 13.51 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.074e-05/0.4221, allocations: 4 kB / 0.4911 GB, free: 13.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.174e-05/0.4222, allocations: 15.92 kB / 0.4911 GB, free: 13.49 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.09e-05/0.4223, allocations: 7.938 kB / 0.4911 GB, free: 13.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.372e-05/0.4223, allocations: 4 kB / 0.4911 GB, free: 13.48 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002738/0.4226, allocations: 209.9 kB / 0.4913 GB, free: 13.28 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.4226, allocations: 4 kB / 0.4913 GB, free: 13.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000374/0.423, allocations: 36 kB / 0.4914 GB, free: 13.24 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.00131/0.4243, allocations: 424.9 kB / 0.4918 GB, free: 12.96 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002945/0.4246, allocations: 83.78 kB / 0.4918 GB, free: 12.88 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.4247, allocations: 384 / 0.4918 GB, free: 12.88 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.364e-05/0.4248, allocations: 35.98 kB / 0.4919 GB, free: 12.85 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005739/0.4253, allocations: 86.77 kB / 0.492 GB, free: 12.76 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007063/0.4261, allocations: 373.7 kB / 0.4923 GB, free: 12.36 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004218/0.4265, allocations: 0.7439 MB / 0.493 GB, free: 11.59 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001724/0.4267, allocations: 25.69 kB / 0.4931 GB, free: 11.57 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.909e-05/0.4267, allocations: 23.44 kB / 0.4931 GB, free: 11.55 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4268, allocations: 0 / 0.4931 GB, free: 11.55 MB / 378.7 MB Notification: Performance of Templates: time 0.00726/0.434, allocations: 2.605 MB / 0.4956 GB, free: 8.977 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.extrapolation,table.n,table.realToBoolean.threshold,table.shiftTime,table.startTime,table.startValue,table.table[1],table.table[2],time