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.001795/0.001795, allocations: 179.4 kB / 13.23 MB, free: 2.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.651/1.651, allocations: 205.2 MB / 219 MB, free: 9.215 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000809/0.0008092, allocations: 93.28 kB / 267.1 MB, free: 9.285 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.07933/0.07933, allocations: 12.58 MB / 327.8 MB, free: 12.49 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.223e-05/3.228e-05, allocations: 4 kB / 386 MB, free: 69.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08382/0.08386, allocations: 50.38 MB / 436.4 MB, free: 19.23 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4015/0.4854, allocations: 81.76 MB / 0.506 GB, free: 11.94 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002283/0.4857, allocations: 85.12 kB / 0.5061 GB, free: 11.93 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01418/0.4999, allocations: 5.927 MB / 0.5119 GB, free: 9.703 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.4999, allocations: 4 kB / 0.5119 GB, free: 9.699 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.555e-05/0.4999, allocations: 3.844 kB / 0.5119 GB, free: 9.699 MB / 330.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.0004234/0.5004, allocations: 0.4886 MB / 0.5123 GB, free: 9.223 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.328e-05/0.5004, allocations: 7.719 kB / 0.5124 GB, free: 9.223 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.368e-05/0.5005, allocations: 23.38 kB / 0.5124 GB, free: 9.211 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003327/0.5008, allocations: 287.3 kB / 0.5127 GB, free: 8.969 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.95e-05/0.5008, allocations: 15.2 kB / 0.5127 GB, free: 8.961 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.811e-05/0.5008, allocations: 3.812 kB / 0.5127 GB, free: 8.961 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002473/0.5011, allocations: 154.8 kB / 0.5128 GB, free: 8.852 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.5011, allocations: 0 / 0.5128 GB, free: 8.852 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.32e-05/0.5011, allocations: 0 / 0.5128 GB, free: 8.852 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.5012, allocations: 7.688 kB / 0.5128 GB, free: 8.848 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.158e-05/0.5012, allocations: 41.67 kB / 0.5129 GB, free: 8.836 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004051/0.5016, allocations: 404 kB / 0.5132 GB, free: 8.5 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001331/0.5018, allocations: 114.2 kB / 0.5134 GB, free: 8.418 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.25e-05/0.5018, allocations: 43.69 kB / 0.5134 GB, free: 8.391 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.455e-05/0.5019, allocations: 11.12 kB / 0.5134 GB, free: 8.387 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000125/0.502, allocations: 71.58 kB / 0.5135 GB, free: 8.328 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 1.533e-06/0.502, allocations: 0 / 0.5135 GB, free: 8.328 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002195/0.5022, allocations: 128.5 kB / 0.5136 GB, free: 8.27 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.501e-05/0.5023, allocations: 158 kB / 0.5138 GB, free: 8.082 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002406/0.5025, allocations: 297.2 kB / 0.514 GB, free: 7.957 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.5e-05/0.5026, allocations: 25.7 kB / 0.5141 GB, free: 7.926 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.572e-05/0.5026, allocations: 136.3 kB / 0.5142 GB, free: 7.828 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.013e-05/0.5027, allocations: 26.52 kB / 0.5142 GB, free: 7.812 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.23e-06/0.5027, allocations: 0 / 0.5142 GB, free: 7.812 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.915e-05/0.5027, allocations: 333.6 kB / 0.5145 GB, free: 7.492 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.926e-05/0.5028, allocations: 25.27 kB / 0.5146 GB, free: 7.488 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.599e-05/0.5029, allocations: 87.16 kB / 0.5146 GB, free: 7.422 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.147e-05/0.5029, allocations: 28.08 kB / 0.5147 GB, free: 7.414 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.5029, allocations: 3.906 kB / 0.5147 GB, free: 7.414 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001501/0.5031, allocations: 123.1 kB / 0.5148 GB, free: 7.355 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.5031, allocations: 3.844 kB / 0.5148 GB, free: 7.355 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.5031, allocations: 128 / 0.5148 GB, free: 7.355 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.5031, allocations: 7.969 kB / 0.5148 GB, free: 7.352 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/0.5033, allocations: 30.92 kB / 0.5148 GB, free: 7.34 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.5033, allocations: 0 / 0.5148 GB, free: 7.34 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.312e-05/0.5034, allocations: 7.688 kB / 0.5148 GB, free: 7.34 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.146e-05/0.5034, allocations: 7.875 kB / 0.5148 GB, free: 7.336 MB / 330.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 5.771e-05/0.5034, allocations: 123.8 kB / 0.515 GB, free: 7.215 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.297e-05/0.5035, allocations: 63.98 kB / 0.515 GB, free: 7.168 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000184/0.5037, allocations: 129.2 kB / 0.5151 GB, free: 7.117 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.5037, allocations: 0 / 0.5151 GB, free: 7.117 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.5037, allocations: 3.812 kB / 0.5151 GB, free: 7.117 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.5037, allocations: 3.938 kB / 0.5152 GB, free: 7.113 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001463/0.5039, allocations: 253.7 kB / 0.5154 GB, free: 6.887 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.5039, allocations: 0 / 0.5154 GB, free: 6.887 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.28e-05/0.504, allocations: 11.72 kB / 0.5154 GB, free: 6.883 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.504, allocations: 3.906 kB / 0.5154 GB, free: 6.883 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/0.504, allocations: 0 / 0.5154 GB, free: 6.883 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.504, allocations: 7.859 kB / 0.5154 GB, free: 6.879 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.504, allocations: 4 kB / 0.5154 GB, free: 6.875 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001718/0.5042, allocations: 191 kB / 0.5156 GB, free: 6.734 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.818e-05/0.5043, allocations: 119.9 kB / 0.5157 GB, free: 6.621 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.152e-05/0.5043, allocations: 10.83 kB / 0.5157 GB, free: 6.617 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.686e-05/0.5044, allocations: 7.875 kB / 0.5157 GB, free: 6.613 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.81e-05/0.5044, allocations: 10.83 kB / 0.5157 GB, free: 6.609 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.478e-06/0.5045, allocations: 3.875 kB / 0.5157 GB, free: 6.609 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001688/0.5046, allocations: 238.7 kB / 0.516 GB, free: 6.512 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5046, allocations: 0 / 0.516 GB, free: 6.512 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002437/0.5049, allocations: 57.19 kB / 0.516 GB, free: 6.496 MB / 330.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.0007311/0.5056, allocations: 395.2 kB / 0.5164 GB, free: 6.18 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001695/0.5058, allocations: 88.69 kB / 0.5165 GB, free: 6.164 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.5058, allocations: 0 / 0.5165 GB, free: 6.164 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.367e-05/0.5059, allocations: 30.19 kB / 0.5165 GB, free: 6.16 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002948/0.5062, allocations: 59.45 kB / 0.5166 GB, free: 6.141 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003812/0.5066, allocations: 278.7 kB / 0.5168 GB, free: 5.992 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001459/0.5067, allocations: 0.7457 MB / 0.5176 GB, free: 5.266 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 9.589e-05/0.5068, allocations: 36.23 kB / 0.5176 GB, free: 5.25 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.052e-05/0.5069, allocations: 22.95 kB / 0.5176 GB, free: 5.238 MB / 330.7 MB Notification: Performance of SimCode: time 2.7e-07/0.5069, allocations: 0 / 0.5176 GB, free: 5.238 MB / 330.7 MB Notification: Performance of Templates: time 0.004693/0.5116, allocations: 2.779 MB / 0.5203 GB, free: 3.582 MB / 330.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