Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001172/0.001172, allocations: 180.9 kB / 8.049 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.471/1.471, allocations: 205.3 MB / 213.8 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008247/0.0008247, allocations: 90.14 kB / 261.8 MB, free: 1.676 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0719/0.0719, allocations: 12.59 MB / 322.3 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.517e-05/1.52e-05, allocations: 4 kB / 378.9 MB, free: 6.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2525/0.2525, allocations: 50.37 MB / 429.3 MB, free: 18.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1066/0.3592, allocations: 81.1 MB / 0.4984 GB, free: 1.141 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002538/0.3595, allocations: 83.94 kB / 0.4985 GB, free: 1.059 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01591/0.3754, allocations: 5.9 MB / 0.5043 GB, free: 11.16 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3755, allocations: 4 kB / 0.5043 GB, free: 11.15 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.896e-05/0.3755, allocations: 4 kB / 0.5043 GB, free: 11.15 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000601/0.3761, allocations: 499.5 kB / 0.5048 GB, free: 10.61 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.3761, allocations: 8.031 kB / 0.5048 GB, free: 10.6 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.772e-05/0.3762, allocations: 23.72 kB / 0.5048 GB, free: 10.58 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004071/0.3766, allocations: 278.5 kB / 0.5051 GB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.345e-05/0.3767, allocations: 15.94 kB / 0.5051 GB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.948e-05/0.3767, allocations: 4 kB / 0.5051 GB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001054/0.3768, allocations: 36 kB / 0.5051 GB, free: 10.21 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000277/0.3771, allocations: 143.5 kB / 0.5053 GB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.3771, allocations: 0 / 0.5053 GB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.579e-05/0.3771, allocations: 0 / 0.5053 GB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.3771, allocations: 4 kB / 0.5053 GB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005241/0.3777, allocations: 383.8 kB / 0.5056 GB, free: 9.621 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001685/0.3779, allocations: 111.9 kB / 0.5057 GB, free: 9.484 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.725e-05/0.3779, allocations: 38.7 kB / 0.5058 GB, free: 9.438 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.234e-05/0.378, allocations: 0 / 0.5058 GB, free: 9.438 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001692/0.3781, allocations: 75.33 kB / 0.5058 GB, free: 9.352 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.363e-06/0.3781, allocations: 4 kB / 0.5058 GB, free: 9.348 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002594/0.3784, allocations: 125.3 kB / 0.506 GB, free: 9.219 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.968e-05/0.3785, allocations: 154.2 kB / 0.5061 GB, free: 9.031 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003187/0.3788, allocations: 286.3 kB / 0.5064 GB, free: 8.75 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.191e-05/0.3789, allocations: 29.7 kB / 0.5064 GB, free: 8.715 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.477e-05/0.3789, allocations: 128.1 kB / 0.5065 GB, free: 8.586 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.361e-05/0.379, allocations: 19.8 kB / 0.5066 GB, free: 8.566 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.27e-06/0.379, allocations: 4.062 kB / 0.5066 GB, free: 8.562 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.3791, allocations: 334.8 kB / 0.5069 GB, free: 8.227 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.052e-05/0.3792, allocations: 23.98 kB / 0.5069 GB, free: 8.203 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.25e-05/0.3793, allocations: 78.86 kB / 0.507 GB, free: 8.102 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.352e-05/0.3793, allocations: 43.86 kB / 0.507 GB, free: 8.059 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3794, allocations: 0 / 0.507 GB, free: 8.059 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000167/0.3795, allocations: 113.4 kB / 0.5071 GB, free: 7.941 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.3795, allocations: 8 kB / 0.5071 GB, free: 7.934 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.3796, allocations: 48 / 0.5071 GB, free: 7.934 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.3796, allocations: 7.984 kB / 0.5071 GB, free: 7.926 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001091/0.3797, allocations: 24.05 kB / 0.5072 GB, free: 7.902 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.3797, allocations: 8 kB / 0.5072 GB, free: 7.895 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.213e-05/0.3798, allocations: 4 kB / 0.5072 GB, free: 7.891 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.112e-05/0.3798, allocations: 4 kB / 0.5072 GB, free: 7.887 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 9.523e-05/0.3799, allocations: 116.9 kB / 0.5073 GB, free: 7.766 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.043e-05/0.38, allocations: 65.36 kB / 0.5073 GB, free: 7.695 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002142/0.3802, allocations: 111.5 kB / 0.5075 GB, free: 7.574 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.544e-06/0.3802, allocations: 4.062 kB / 0.5075 GB, free: 7.57 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.3802, allocations: 4 kB / 0.5075 GB, free: 7.566 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.882e-06/0.3803, allocations: 0 / 0.5075 GB, free: 7.566 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001956/0.3805, allocations: 226.1 kB / 0.5077 GB, free: 7.309 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.3805, allocations: 0 / 0.5077 GB, free: 7.309 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.332e-05/0.3805, allocations: 23.88 kB / 0.5077 GB, free: 7.285 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.3806, allocations: 4 kB / 0.5077 GB, free: 7.281 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.05e-05/0.3806, allocations: 0 / 0.5077 GB, free: 7.281 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.3806, allocations: 4 kB / 0.5077 GB, free: 7.277 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3806, allocations: 0 / 0.5077 GB, free: 7.277 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002228/0.3808, allocations: 185.9 kB / 0.5079 GB, free: 7.059 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001051/0.3809, allocations: 124.8 kB / 0.508 GB, free: 6.918 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.149e-05/0.381, allocations: 0 / 0.508 GB, free: 6.918 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.902e-05/0.381, allocations: 4 kB / 0.508 GB, free: 6.914 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.869e-05/0.3811, allocations: 15.98 kB / 0.508 GB, free: 6.898 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.131e-05/0.3811, allocations: 4 kB / 0.508 GB, free: 6.895 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002104/0.3813, allocations: 230 kB / 0.5082 GB, free: 6.668 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3813, allocations: 0 / 0.5082 GB, free: 6.668 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002688/0.3816, allocations: 43.94 kB / 0.5083 GB, free: 6.625 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * 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.0008282/0.3825, allocations: 371.4 kB / 0.5086 GB, free: 6.262 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001906/0.3827, allocations: 75.91 kB / 0.5087 GB, free: 6.188 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.3827, allocations: 0 / 0.5087 GB, free: 6.188 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.568e-05/0.3827, allocations: 31.92 kB / 0.5087 GB, free: 6.156 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003367/0.3831, allocations: 67.95 kB / 0.5088 GB, free: 6.094 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004567/0.3836, allocations: 275.8 kB / 0.5091 GB, free: 5.797 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002994/0.3839, allocations: 0.7514 MB / 0.5098 GB, free: 5.02 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.045e-05/0.384, allocations: 25.45 kB / 0.5098 GB, free: 4.996 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.109e-05/0.384, allocations: 23.42 kB / 0.5099 GB, free: 4.977 MB / 362.7 MB Notification: Performance of SimCode: time 2.51e-07/0.384, allocations: 0 / 0.5099 GB, free: 4.977 MB / 362.7 MB Notification: Performance of Templates: time 0.005558/0.3896, allocations: 2.629 MB / 0.5124 GB, free: 2.352 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,sample.y,shiftSample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.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