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.00118/0.00118, allocations: 171.8 kB / 16.8 MB, free: 5 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.585/1.585, allocations: 205.4 MB / 223 MB, free: 9.023 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.0007813/0.0007813, allocations: 85.17 kB / 271.3 MB, free: 8.258 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.08023/0.08023, allocations: 12.6 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004753/0.0004753, allocations: 24 kB / 393.2 MB, free: 65.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08636/0.08685, allocations: 50.37 MB / 443.6 MB, free: 15.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2726/0.3595, allocations: 81.91 MB / 0.5132 GB, free: 12.63 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002063/0.3598, allocations: 82.3 kB / 0.5133 GB, free: 12.62 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01326/0.3731, allocations: 5.955 MB / 0.5191 GB, free: 8.887 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3731, allocations: 0 / 0.5191 GB, free: 8.887 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.164e-05/0.3731, allocations: 4 kB / 0.5191 GB, free: 8.883 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.0005728/0.3737, allocations: 0.5262 MB / 0.5196 GB, free: 8.316 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.3738, allocations: 12.03 kB / 0.5196 GB, free: 8.305 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.723e-05/0.3738, allocations: 20.66 kB / 0.5196 GB, free: 8.285 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000349/0.3742, allocations: 300 kB / 0.5199 GB, free: 7.977 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.032e-05/0.3742, allocations: 11.81 kB / 0.5199 GB, free: 7.969 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.721e-05/0.3743, allocations: 4.375 kB / 0.5199 GB, free: 7.965 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002883/0.3745, allocations: 168.7 kB / 0.5201 GB, free: 7.797 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.3746, allocations: 4.125 kB / 0.5201 GB, free: 7.793 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.401e-05/0.3746, allocations: 7.938 kB / 0.5201 GB, free: 7.785 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.3746, allocations: 4 kB / 0.5201 GB, free: 7.781 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.754e-05/0.3747, allocations: 34.48 kB / 0.5201 GB, free: 7.758 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004147/0.3751, allocations: 401.8 kB / 0.5205 GB, free: 7.359 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001862/0.3753, allocations: 122.9 kB / 0.5206 GB, free: 7.234 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.77e-05/0.3754, allocations: 46.12 kB / 0.5207 GB, free: 7.191 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.099e-05/0.3754, allocations: 7.984 kB / 0.5207 GB, free: 7.184 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001277/0.3756, allocations: 77.83 kB / 0.5208 GB, free: 7.105 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 1.703e-06/0.3756, allocations: 0 / 0.5208 GB, free: 7.105 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.000314/0.3759, allocations: 155.4 kB / 0.5209 GB, free: 6.977 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.083e-05/0.3759, allocations: 169.5 kB / 0.5211 GB, free: 6.777 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002734/0.3762, allocations: 327.2 kB / 0.5214 GB, free: 6.504 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.557e-05/0.3763, allocations: 29.33 kB / 0.5214 GB, free: 6.473 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.427e-05/0.3763, allocations: 132.9 kB / 0.5215 GB, free: 6.367 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.245e-05/0.3763, allocations: 15.19 kB / 0.5216 GB, free: 6.359 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.43e-06/0.3764, allocations: 4 kB / 0.5216 GB, free: 6.355 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.49e-05/0.3764, allocations: 333.8 kB / 0.5219 GB, free: 6.027 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.967e-05/0.3765, allocations: 23.23 kB / 0.5219 GB, free: 6.012 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.746e-05/0.3766, allocations: 97.28 kB / 0.522 GB, free: 5.906 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001245/0.3767, allocations: 85.16 kB / 0.5221 GB, free: 5.828 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.3767, allocations: 4 kB / 0.5221 GB, free: 5.824 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002039/0.3769, allocations: 133.3 kB / 0.5222 GB, free: 5.711 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.377, allocations: 4 kB / 0.5222 GB, free: 5.707 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.377, allocations: 3.938 kB / 0.5222 GB, free: 5.703 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.377, allocations: 4 kB / 0.5222 GB, free: 5.699 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.744e-05/0.3771, allocations: 15.98 kB / 0.5222 GB, free: 5.684 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.3771, allocations: 4 kB / 0.5222 GB, free: 5.68 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.332e-05/0.3772, allocations: 7.562 kB / 0.5223 GB, free: 5.676 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.006e-05/0.3772, allocations: 12.06 kB / 0.5223 GB, free: 5.664 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 () * 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.0001202/0.3773, allocations: 163 kB / 0.5224 GB, free: 5.508 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.037e-05/0.3774, allocations: 68.48 kB / 0.5225 GB, free: 5.438 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002294/0.3776, allocations: 122.5 kB / 0.5226 GB, free: 5.336 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.3777, allocations: 0 / 0.5226 GB, free: 5.336 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.3777, allocations: 4 kB / 0.5226 GB, free: 5.332 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.3777, allocations: 0 / 0.5226 GB, free: 5.332 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001493/0.3778, allocations: 255.9 kB / 0.5228 GB, free: 5.066 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.3778, allocations: 4 kB / 0.5229 GB, free: 5.062 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.181e-05/0.3779, allocations: 11.44 kB / 0.5229 GB, free: 5.055 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.3779, allocations: 7.938 kB / 0.5229 GB, free: 5.047 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.1e-05/0.3779, allocations: 3.984 kB / 0.5229 GB, free: 5.043 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3779, allocations: 0 / 0.5229 GB, free: 5.043 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.378, allocations: 8.016 kB / 0.5229 GB, free: 5.035 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002065/0.3782, allocations: 176.8 kB / 0.5231 GB, free: 4.863 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.367e-05/0.3783, allocations: 122.8 kB / 0.5232 GB, free: 4.734 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.946e-05/0.3783, allocations: 4 kB / 0.5232 GB, free: 4.73 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.207e-05/0.3784, allocations: 7.312 kB / 0.5232 GB, free: 4.727 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.894e-05/0.3784, allocations: 7.984 kB / 0.5232 GB, free: 4.719 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.398e-06/0.3784, allocations: 7.938 kB / 0.5232 GB, free: 4.711 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000183/0.3786, allocations: 240.2 kB / 0.5234 GB, free: 4.52 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3786, allocations: 0 / 0.5234 GB, free: 4.52 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002756/0.3789, allocations: 59.61 kB / 0.5235 GB, free: 4.469 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) * 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.0007932/0.3797, allocations: 443.9 kB / 0.5239 GB, free: 4.043 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002183/0.3799, allocations: 88.95 kB / 0.524 GB, free: 3.973 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.38, allocations: 0 / 0.524 GB, free: 3.973 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.123e-05/0.38, allocations: 34.73 kB / 0.524 GB, free: 3.949 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003943/0.3804, allocations: 63.42 kB / 0.5241 GB, free: 3.898 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004994/0.3809, allocations: 407 kB / 0.5245 GB, free: 3.504 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001623/0.3811, allocations: 0.7438 MB / 0.5252 GB, free: 2.738 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.26e-05/0.3812, allocations: 21.55 kB / 0.5252 GB, free: 2.719 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.711e-05/0.3813, allocations: 26.67 kB / 0.5252 GB, free: 2.695 MB / 330.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3813, allocations: 0 / 0.5252 GB, free: 2.695 MB / 330.7 MB Notification: Performance of Templates: time 0.00534/0.3866, allocations: 2.825 MB / 0.528 GB, free: 15.88 MB / 346.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