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.001517/0.001517, allocations: 177.9 kB / 15.8 MB, free: 6.34 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.606/1.606, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.0009997/0.0009993, allocations: 86.8 kB / 270.3 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06799/0.06799, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003586/0.0003588, allocations: 13.78 kB / 392 MB, free: 54.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08617/0.08654, allocations: 50.37 MB / 442.4 MB, free: 10.95 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1096/0.1962, allocations: 81.86 MB / 0.5119 GB, free: 8.969 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/0.1965, allocations: 79.95 kB / 0.512 GB, free: 8.891 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01587/0.2123, allocations: 5.953 MB / 0.5178 GB, free: 2.93 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2124, allocations: 0 / 0.5178 GB, free: 2.93 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.229e-05/0.2124, allocations: 7.938 kB / 0.5178 GB, free: 2.922 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.0007177/0.2131, allocations: 0.531 MB / 0.5184 GB, free: 2.336 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.2132, allocations: 8.031 kB / 0.5184 GB, free: 2.328 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.326e-05/0.2133, allocations: 23.72 kB / 0.5184 GB, free: 2.305 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004423/0.2137, allocations: 290.4 kB / 0.5187 GB, free: 1.977 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.134e-05/0.2137, allocations: 3.953 kB / 0.5187 GB, free: 1.973 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.019e-05/0.2138, allocations: 19.98 kB / 0.5187 GB, free: 1.953 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003364/0.2141, allocations: 147.6 kB / 0.5188 GB, free: 1.781 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.657e-06/0.2141, allocations: 0 / 0.5188 GB, free: 1.781 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.642e-05/0.2142, allocations: 4 kB / 0.5188 GB, free: 1.777 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.2142, allocations: 4 kB / 0.5188 GB, free: 1.773 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001102/0.2143, allocations: 39.92 kB / 0.5189 GB, free: 1.734 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005997/0.2149, allocations: 398.4 kB / 0.5193 GB, free: 1.289 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002484/0.2152, allocations: 123.9 kB / 0.5194 GB, free: 1.141 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.321e-05/0.2152, allocations: 3.938 kB / 0.5194 GB, free: 1.137 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001885/0.2154, allocations: 87.41 kB / 0.5195 GB, free: 1.039 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.553e-06/0.2154, allocations: 4 kB / 0.5195 GB, free: 1.035 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003707/0.2158, allocations: 153.4 kB / 0.5196 GB, free: 0.8789 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.673e-05/0.2159, allocations: 158.2 kB / 0.5198 GB, free: 0.6875 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003151/0.2162, allocations: 305.7 kB / 0.5201 GB, free: 388 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.05e-05/0.2162, allocations: 29.7 kB / 0.5201 GB, free: 352 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.963e-05/0.2163, allocations: 128.3 kB / 0.5202 GB, free: 220 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.306e-05/0.2163, allocations: 23.75 kB / 0.5202 GB, free: 196 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.984e-06/0.2164, allocations: 4 kB / 0.5202 GB, free: 192 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.1904/0.4068, allocations: 338.1 kB / 0.5206 GB, free: 83.82 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001498/0.407, allocations: 21.77 kB / 0.5206 GB, free: 83.82 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001269/0.4071, allocations: 90.8 kB / 0.5207 GB, free: 83.75 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.561e-05/0.4072, allocations: 33.98 kB / 0.5207 GB, free: 83.75 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.4072, allocations: 0.8125 kB / 0.5207 GB, free: 83.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002873/0.4075, allocations: 126.3 kB / 0.5208 GB, free: 83.72 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.4076, allocations: 5.266 kB / 0.5208 GB, free: 83.72 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.4076, allocations: 4 kB / 0.5208 GB, free: 83.72 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.4076, allocations: 0.7031 kB / 0.5208 GB, free: 83.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/0.4077, allocations: 25.77 kB / 0.5208 GB, free: 83.72 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.193e-06/0.4077, allocations: 5.531 kB / 0.5209 GB, free: 83.72 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001017/0.4079, allocations: 9.125 kB / 0.5209 GB, free: 83.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.151e-05/0.4079, allocations: 5.047 kB / 0.5209 GB, free: 83.72 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 () * Number of clocked 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.0001808/0.4081, allocations: 158.3 kB / 0.521 GB, free: 83.61 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.177e-05/0.4081, allocations: 69.61 kB / 0.5211 GB, free: 83.57 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002648/0.4084, allocations: 122.7 kB / 0.5212 GB, free: 83.53 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.4084, allocations: 1.219 kB / 0.5212 GB, free: 83.53 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.4084, allocations: 1.734 kB / 0.5212 GB, free: 83.53 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.4085, allocations: 4.969 kB / 0.5212 GB, free: 83.53 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001946/0.4087, allocations: 250.4 kB / 0.5214 GB, free: 83.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.4087, allocations: 2.125 kB / 0.5214 GB, free: 83.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001157/0.4088, allocations: 15.47 kB / 0.5215 GB, free: 83.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.4088, allocations: 1.281 kB / 0.5215 GB, free: 83.34 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.719e-05/0.4088, allocations: 10.27 kB / 0.5215 GB, free: 83.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.4088, allocations: 1.156 kB / 0.5215 GB, free: 83.34 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.4088, allocations: 0.9688 kB / 0.5215 GB, free: 83.34 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002741/0.4091, allocations: 199.7 kB / 0.5217 GB, free: 83.22 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001212/0.4093, allocations: 124.6 kB / 0.5218 GB, free: 83.12 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.408e-05/0.4093, allocations: 2.125 kB / 0.5218 GB, free: 83.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.103e-05/0.4094, allocations: 9.781 kB / 0.5218 GB, free: 83.12 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.384e-05/0.4094, allocations: 5.625 kB / 0.5218 GB, free: 83.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.403e-05/0.4094, allocations: 9.594 kB / 0.5218 GB, free: 83.12 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002554/0.4097, allocations: 243.1 kB / 0.522 GB, free: 83.04 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4097, allocations: 0.9844 kB / 0.522 GB, free: 83.04 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000323/0.41, allocations: 45.84 kB / 0.5221 GB, free: 83.04 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) * Number of clocked states: 0 () * 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.0009697/0.411, allocations: 445.1 kB / 0.5225 GB, free: 82.76 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002762/0.4113, allocations: 87.42 kB / 0.5226 GB, free: 82.76 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.4113, allocations: 1.188 kB / 0.5226 GB, free: 82.76 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.772e-05/0.4114, allocations: 38.64 kB / 0.5226 GB, free: 82.75 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003733/0.4118, allocations: 57.75 kB / 0.5227 GB, free: 82.75 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006246/0.4124, allocations: 411.6 kB / 0.5231 GB, free: 82.52 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002107/0.4127, allocations: 0.7525 MB / 0.5238 GB, free: 81.82 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001404/0.4128, allocations: 32.81 kB / 0.5238 GB, free: 81.81 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.003e-05/0.4129, allocations: 20.66 kB / 0.5239 GB, free: 81.81 MB / 362.7 MB Notification: Performance of SimCode: time 3.11e-07/0.4129, allocations: 2.062 kB / 0.5239 GB, free: 81.81 MB / 362.7 MB Notification: Performance of Templates: time 0.006741/0.4196, allocations: 2.785 MB / 0.5266 GB, free: 81.55 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