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.001494/0.001494, allocations: 181 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 2.268/2.268, allocations: 205.3 MB / 213.8 MB, free: 1.668 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.001128/0.001128, allocations: 94.28 kB / 261.8 MB, free: 1.609 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.1051/0.1051, allocations: 12.6 MB / 322.4 MB, free: 15.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.316e-05/2.314e-05, allocations: 4 kB / 378.9 MB, free: 6.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.32/0.3201, allocations: 50.38 MB / 429.3 MB, free: 18.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1475/0.4677, allocations: 81.1 MB / 0.4985 GB, free: 1.137 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003208/0.468, allocations: 83.94 kB / 0.4985 GB, free: 1.055 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02713/0.4952, allocations: 5.896 MB / 0.5043 GB, free: 11.16 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.4953, allocations: 0 / 0.5043 GB, free: 11.16 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.581e-05/0.4953, 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.0007999/0.4961, allocations: 499.5 kB / 0.5048 GB, free: 10.61 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.4962, allocations: 8.031 kB / 0.5048 GB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.138e-05/0.4963, allocations: 23.72 kB / 0.5048 GB, free: 10.58 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006365/0.4969, allocations: 286.5 kB / 0.5051 GB, free: 10.26 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.659e-05/0.497, allocations: 7.953 kB / 0.5051 GB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.892e-05/0.497, allocations: 4 kB / 0.5051 GB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001643/0.4972, allocations: 35.98 kB / 0.5051 GB, free: 10.21 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003656/0.4976, allocations: 147.5 kB / 0.5053 GB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.4976, allocations: 0 / 0.5053 GB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.245e-05/0.4976, allocations: 4 kB / 0.5053 GB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.4977, allocations: 0 / 0.5053 GB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000755/0.4984, allocations: 383.8 kB / 0.5056 GB, free: 9.621 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002324/0.4987, allocations: 107.9 kB / 0.5057 GB, free: 9.488 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.855e-05/0.4988, allocations: 46.7 kB / 0.5058 GB, free: 9.434 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.869e-05/0.4988, allocations: 0 / 0.5058 GB, free: 9.434 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000201/0.499, allocations: 79.31 kB / 0.5059 GB, free: 9.344 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 2.144e-06/0.4991, allocations: 4 kB / 0.5059 GB, free: 9.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0004077/0.4995, allocations: 121.3 kB / 0.506 GB, free: 9.215 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001024/0.4996, allocations: 162.2 kB / 0.5061 GB, free: 9.02 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005187/0.5001, allocations: 282.3 kB / 0.5064 GB, free: 8.742 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.445e-05/0.5002, allocations: 25.7 kB / 0.5064 GB, free: 8.711 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001214/0.5004, allocations: 132 kB / 0.5065 GB, free: 8.578 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.658e-05/0.5004, allocations: 11.81 kB / 0.5066 GB, free: 8.566 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.246e-06/0.5004, allocations: 0 / 0.5066 GB, free: 8.566 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.5006, allocations: 338.8 kB / 0.5069 GB, free: 8.227 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.148e-05/0.5007, allocations: 24 kB / 0.5069 GB, free: 8.203 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001404/0.5008, allocations: 86.8 kB / 0.507 GB, free: 8.094 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001072/0.5009, allocations: 35.98 kB / 0.507 GB, free: 8.059 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.501, allocations: 0 / 0.507 GB, free: 8.059 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003229/0.5013, allocations: 113.4 kB / 0.5071 GB, free: 7.941 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.369e-05/0.5013, allocations: 8 kB / 0.5071 GB, free: 7.934 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.5013, allocations: 0 / 0.5071 GB, free: 7.934 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.142e-05/0.5014, allocations: 4 kB / 0.5071 GB, free: 7.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002043/0.5016, allocations: 19.92 kB / 0.5072 GB, free: 7.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.5016, allocations: 4 kB / 0.5072 GB, free: 7.906 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001392/0.5018, allocations: 12.11 kB / 0.5072 GB, free: 7.895 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.618e-05/0.5018, allocations: 4 kB / 0.5072 GB, free: 7.891 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 0.0001276/0.5019, allocations: 116.9 kB / 0.5073 GB, free: 7.77 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001279/0.5021, allocations: 61.36 kB / 0.5073 GB, free: 7.703 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003442/0.5024, allocations: 119.5 kB / 0.5075 GB, free: 7.574 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.5024, allocations: 0 / 0.5075 GB, free: 7.574 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.5025, allocations: 4 kB / 0.5075 GB, free: 7.57 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/0.5025, allocations: 64 / 0.5075 GB, free: 7.57 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002864/0.5028, allocations: 226.1 kB / 0.5077 GB, free: 7.312 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.5028, allocations: 0 / 0.5077 GB, free: 7.312 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001332/0.5029, allocations: 23.88 kB / 0.5077 GB, free: 7.289 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.61e-06/0.503, allocations: 0 / 0.5077 GB, free: 7.289 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.496e-05/0.503, allocations: 0 / 0.5077 GB, free: 7.289 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.503, allocations: 4 kB / 0.5077 GB, free: 7.285 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.503, allocations: 0 / 0.5077 GB, free: 7.285 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003452/0.5034, allocations: 193.8 kB / 0.5079 GB, free: 7.059 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001839/0.5036, allocations: 124.8 kB / 0.508 GB, free: 6.918 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.753e-05/0.5036, allocations: 0 / 0.508 GB, free: 6.918 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001224/0.5038, allocations: 4 kB / 0.508 GB, free: 6.914 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.863e-05/0.5038, allocations: 7.984 kB / 0.508 GB, free: 6.906 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-05/0.5039, allocations: 7.984 kB / 0.508 GB, free: 6.898 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003886/0.5043, allocations: 234 kB / 0.5083 GB, free: 6.668 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5043, allocations: 0 / 0.5083 GB, free: 6.668 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004539/0.5047, 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.001114/0.5059, allocations: 359.4 kB / 0.5086 GB, free: 6.273 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003382/0.5062, allocations: 80.09 kB / 0.5087 GB, free: 6.195 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/0.5063, allocations: 4.062 kB / 0.5087 GB, free: 6.191 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.333e-05/0.5064, allocations: 31.92 kB / 0.5087 GB, free: 6.16 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005652/0.5069, allocations: 67.75 kB / 0.5088 GB, free: 6.098 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007572/0.5077, allocations: 271.5 kB / 0.5091 GB, free: 5.805 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004088/0.5081, allocations: 0.7477 MB / 0.5098 GB, free: 5.031 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002095/0.5084, allocations: 33.58 kB / 0.5098 GB, free: 5 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.304e-05/0.5085, allocations: 23.44 kB / 0.5099 GB, free: 4.98 MB / 362.7 MB Notification: Performance of SimCode: time 1.203e-06/0.5085, allocations: 0 / 0.5099 GB, free: 4.98 MB / 362.7 MB Notification: Performance of Templates: time 0.009819/0.5183, allocations: 2.621 MB / 0.5124 GB, free: 2.363 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/jenkins1/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