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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001159/0.001159, allocations: 191.2 kB / 7.846 MB, free: 2.48 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.354/1.354, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.0008901/0.0008901, allocations: 89.12 kB / 261.4 MB, free: 13.55 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.07753/0.07753, allocations: 12.59 MB / 322 MB, free: 0.9141 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 5.872e-06/5.901e-06, allocations: 0 / 378.4 MB, free: 75.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09074/0.09076, allocations: 50.38 MB / 428.8 MB, free: 25.27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2591/0.3499, allocations: 81.02 MB / 0.4978 GB, free: 11.6 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002409/0.3502, allocations: 77.72 kB / 0.4979 GB, free: 11.6 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.0147/0.3649, allocations: 5.535 MB / 0.5033 GB, free: 10.86 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.012e-05/0.365, allocations: 4.438 kB / 0.5033 GB, free: 10.86 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.0004799/0.3655, allocations: 0.4936 MB / 0.5038 GB, free: 10.38 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.3655, allocations: 7.594 kB / 0.5038 GB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.258e-05/0.3656, allocations: 23.25 kB / 0.5038 GB, free: 10.37 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003644/0.366, allocations: 290.4 kB / 0.5041 GB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.619e-05/0.366, allocations: 0 / 0.5041 GB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.946e-05/0.366, allocations: 7.766 kB / 0.5041 GB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000135/0.3662, allocations: 37.56 kB / 0.5042 GB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002259/0.3664, allocations: 144.4 kB / 0.5043 GB, free: 10.01 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.3664, allocations: 7.812 kB / 0.5043 GB, free: 10 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.408e-05/0.3665, allocations: 0 / 0.5043 GB, free: 10 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.758e-06/0.3665, allocations: 0 / 0.5043 GB, free: 10 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004295/0.3669, allocations: 380.6 kB / 0.5047 GB, free: 9.699 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001265/0.367, allocations: 108.6 kB / 0.5048 GB, free: 9.617 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.335e-05/0.3671, allocations: 44.52 kB / 0.5048 GB, free: 9.59 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.365e-05/0.3671, allocations: 3.906 kB / 0.5048 GB, free: 9.586 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.385e-05/0.3672, allocations: 78.89 kB / 0.5049 GB, free: 9.523 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 1.503e-06/0.3672, allocations: 0 / 0.5049 GB, free: 9.523 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.000221/0.3675, allocations: 113.8 kB / 0.505 GB, free: 9.465 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/0.3675, allocations: 157.5 kB / 0.5051 GB, free: 9.277 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002416/0.3678, allocations: 286.2 kB / 0.5054 GB, free: 9.152 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.457e-05/0.3678, allocations: 25.7 kB / 0.5054 GB, free: 9.121 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.585e-05/0.3678, allocations: 110.9 kB / 0.5056 GB, free: 9.023 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.974e-05/0.3678, allocations: 15.22 kB / 0.5056 GB, free: 9.016 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.37e-06/0.3679, allocations: 0 / 0.5056 GB, free: 9.016 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.636e-05/0.3679, allocations: 333.9 kB / 0.5059 GB, free: 8.691 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.799e-05/0.368, allocations: 18.62 kB / 0.5059 GB, free: 8.691 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.356e-05/0.368, allocations: 87.92 kB / 0.506 GB, free: 8.625 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.964e-05/0.3681, allocations: 38.11 kB / 0.506 GB, free: 8.609 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3681, allocations: 3.906 kB / 0.506 GB, free: 8.605 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001479/0.3682, allocations: 108.6 kB / 0.5061 GB, free: 8.555 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.105e-05/0.3683, allocations: 3.812 kB / 0.5061 GB, free: 8.555 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.3683, allocations: 0 / 0.5061 GB, free: 8.555 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.3683, allocations: 7.672 kB / 0.5061 GB, free: 8.551 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001092/0.3684, allocations: 18.97 kB / 0.5062 GB, free: 8.547 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.3684, allocations: 0 / 0.5062 GB, free: 8.547 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.194e-05/0.3685, allocations: 19.55 kB / 0.5062 GB, free: 8.535 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-06/0.3685, allocations: 3.812 kB / 0.5062 GB, free: 8.535 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 6.14e-05/0.3686, allocations: 113.3 kB / 0.5063 GB, free: 8.426 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.359e-05/0.3687, allocations: 68.03 kB / 0.5064 GB, free: 8.375 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001745/0.3689, allocations: 99.59 kB / 0.5064 GB, free: 8.324 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.3689, allocations: 3.844 kB / 0.5065 GB, free: 8.324 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.3689, allocations: 3.969 kB / 0.5065 GB, free: 8.32 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.3689, allocations: 8.031 kB / 0.5065 GB, free: 8.312 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001434/0.369, allocations: 228.4 kB / 0.5067 GB, free: 8.121 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.3691, allocations: 0 / 0.5067 GB, free: 8.121 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.247e-05/0.3691, allocations: 15.36 kB / 0.5067 GB, free: 8.117 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.3691, allocations: 3.938 kB / 0.5067 GB, free: 8.113 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.194e-05/0.3692, allocations: 0 / 0.5067 GB, free: 8.113 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.3692, allocations: 7.75 kB / 0.5067 GB, free: 8.109 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.3692, allocations: 4.062 kB / 0.5067 GB, free: 8.105 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001639/0.3693, allocations: 185.1 kB / 0.5069 GB, free: 7.961 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.518e-05/0.3694, allocations: 118.9 kB / 0.507 GB, free: 7.848 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.874e-05/0.3695, allocations: 3.844 kB / 0.507 GB, free: 7.848 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.546e-05/0.3696, allocations: 0 / 0.507 GB, free: 7.848 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.014e-05/0.3696, allocations: 11.52 kB / 0.507 GB, free: 7.844 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.021e-05/0.3696, allocations: 7.656 kB / 0.507 GB, free: 7.84 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001637/0.3698, allocations: 231.9 kB / 0.5072 GB, free: 7.742 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002892/0.3701, allocations: 50.03 kB / 0.5073 GB, free: 7.73 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.0005983/0.3707, allocations: 323.5 kB / 0.5076 GB, free: 7.484 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001728/0.3709, allocations: 82.66 kB / 0.5077 GB, free: 7.469 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3709, allocations: 256 / 0.5077 GB, free: 7.469 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.212e-05/0.371, allocations: 36.52 kB / 0.5077 GB, free: 7.465 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003214/0.3713, allocations: 49.45 kB / 0.5078 GB, free: 7.453 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004396/0.3717, allocations: 281.6 kB / 0.508 GB, free: 7.297 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002056/0.372, allocations: 0.7735 MB / 0.5088 GB, free: 6.555 MB / 330.7 MB Notification: Performance of SimCode: time 2.71e-07/0.372, allocations: 0 / 0.5088 GB, free: 6.555 MB / 330.7 MB Notification: Performance of Templates: time 0.00557/0.3775, allocations: 2.588 MB / 0.5113 GB, free: 5.254 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