Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00149/0.00149, allocations: 177.7 kB / 8.045 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.262/2.262, allocations: 205.3 MB / 213.8 MB, free: 13.75 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.001111/0.00111, allocations: 95.16 kB / 261.8 MB, free: 13.43 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.1101/0.1101, allocations: 12.59 MB / 322.3 MB, free: 0.7812 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.045e-05/2.06e-05, allocations: 4 kB / 378.9 MB, free: 75.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1028, allocations: 50.39 MB / 429.3 MB, free: 24.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4507/0.5535, allocations: 81.2 MB / 0.4986 GB, free: 11.96 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003237/0.5539, allocations: 88.3 kB / 0.4986 GB, free: 11.96 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02478/0.5787, allocations: 6.007 MB / 0.5045 GB, free: 10.75 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.5788, allocations: 0 / 0.5045 GB, free: 10.75 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.475e-05/0.5789, allocations: 11.81 kB / 0.5045 GB, free: 10.75 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007662/0.5796, allocations: 0.494 MB / 0.505 GB, free: 10.27 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.5797, allocations: 11.31 kB / 0.505 GB, free: 10.27 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.384e-05/0.5798, allocations: 23.22 kB / 0.505 GB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005679/0.5804, allocations: 298.6 kB / 0.5053 GB, free: 10 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.582e-05/0.5804, allocations: 3.953 kB / 0.5053 GB, free: 10 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.755e-05/0.5805, allocations: 7.688 kB / 0.5053 GB, free: 10 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001526/0.5806, allocations: 42.73 kB / 0.5054 GB, free: 9.996 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003437/0.581, allocations: 165.5 kB / 0.5055 GB, free: 9.871 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.581, allocations: 0 / 0.5055 GB, free: 9.871 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.987e-05/0.581, allocations: 3.812 kB / 0.5055 GB, free: 9.871 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.5811, allocations: 0.9375 kB / 0.5055 GB, free: 9.871 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006618/0.5817, allocations: 388.9 kB / 0.5059 GB, free: 9.555 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002101/0.582, allocations: 137.8 kB / 0.506 GB, free: 9.445 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.367e-05/0.5821, allocations: 52.28 kB / 0.5061 GB, free: 9.41 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.627e-05/0.5821, allocations: 3.844 kB / 0.5061 GB, free: 9.41 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001977/0.5823, allocations: 81 kB / 0.5062 GB, free: 9.348 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 2.935e-06/0.5823, allocations: 0 / 0.5062 GB, free: 9.348 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003986/0.5827, allocations: 129.4 kB / 0.5063 GB, free: 9.289 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.087e-05/0.5828, allocations: 191.7 kB / 0.5065 GB, free: 9.062 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004262/0.5833, allocations: 292.1 kB / 0.5067 GB, free: 8.941 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.53e-05/0.5833, allocations: 29.64 kB / 0.5068 GB, free: 8.906 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.435e-05/0.5834, allocations: 130.5 kB / 0.5069 GB, free: 8.812 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.465e-05/0.5835, allocations: 21.8 kB / 0.5069 GB, free: 8.801 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.717e-06/0.5835, allocations: 0 / 0.5069 GB, free: 8.801 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.746e-05/0.5836, allocations: 329.3 kB / 0.5072 GB, free: 8.484 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.232e-05/0.5837, allocations: 24.77 kB / 0.5073 GB, free: 8.48 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001254/0.5838, allocations: 103.3 kB / 0.5074 GB, free: 8.391 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.892e-05/0.5839, allocations: 34.25 kB / 0.5074 GB, free: 8.379 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.5839, allocations: 7.844 kB / 0.5074 GB, free: 8.375 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002719/0.5842, allocations: 121.6 kB / 0.5075 GB, free: 8.316 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.217e-05/0.5842, allocations: 11.8 kB / 0.5075 GB, free: 8.312 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.5842, allocations: 0 / 0.5075 GB, free: 8.312 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.295e-05/0.5843, allocations: 3.844 kB / 0.5075 GB, free: 8.312 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002073/0.5845, allocations: 15.41 kB / 0.5075 GB, free: 8.312 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.09e-05/0.5845, allocations: 11.77 kB / 0.5076 GB, free: 8.305 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001441/0.5847, allocations: 12 kB / 0.5076 GB, free: 8.297 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.734e-05/0.5847, allocations: 11.53 kB / 0.5076 GB, free: 8.297 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 9.511e-05/0.5848, allocations: 110.9 kB / 0.5077 GB, free: 8.188 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/0.5849, allocations: 75 kB / 0.5078 GB, free: 8.137 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000303/0.5853, allocations: 108.5 kB / 0.5079 GB, free: 8.086 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.735e-06/0.5853, allocations: 7.766 kB / 0.5079 GB, free: 8.082 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.5853, allocations: 96 / 0.5079 GB, free: 8.082 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.5853, allocations: 7.844 kB / 0.5079 GB, free: 8.078 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002415/0.5856, allocations: 230.9 kB / 0.5081 GB, free: 7.883 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.5856, allocations: 3.781 kB / 0.5081 GB, free: 7.883 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001315/0.5857, allocations: 18.92 kB / 0.5081 GB, free: 7.875 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.266e-06/0.5857, allocations: 7.797 kB / 0.5081 GB, free: 7.871 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/0.5858, allocations: 0 / 0.5081 GB, free: 7.871 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.5858, allocations: 3.781 kB / 0.5081 GB, free: 7.871 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.5858, allocations: 0 / 0.5081 GB, free: 7.871 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003066/0.5861, allocations: 215.3 kB / 0.5083 GB, free: 7.703 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001934/0.5863, allocations: 124.2 kB / 0.5084 GB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.066e-05/0.5864, allocations: 3.969 kB / 0.5085 GB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001264/0.5865, allocations: 15.78 kB / 0.5085 GB, free: 7.574 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.051e-05/0.5866, allocations: 10.14 kB / 0.5085 GB, free: 7.57 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.731e-05/0.5866, allocations: 3.844 kB / 0.5085 GB, free: 7.57 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003029/0.5869, allocations: 237 kB / 0.5087 GB, free: 7.469 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5869, allocations: 0 / 0.5087 GB, free: 7.469 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004477/0.5874, allocations: 44.97 kB / 0.5087 GB, free: 7.461 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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 (12): * Single equations (assignments): 10 * 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.001054/0.5885, allocations: 366 kB / 0.5091 GB, free: 7.184 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00032/0.5888, allocations: 83.47 kB / 0.5092 GB, free: 7.172 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.5888, allocations: 0 / 0.5092 GB, free: 7.172 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.128e-05/0.5889, allocations: 29.11 kB / 0.5092 GB, free: 7.168 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005886/0.5895, allocations: 76.17 kB / 0.5093 GB, free: 7.137 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007275/0.5903, allocations: 301.5 kB / 0.5096 GB, free: 6.961 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00024/0.5905, allocations: 0.7493 MB / 0.5103 GB, free: 6.23 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001583/0.5907, allocations: 40.02 kB / 0.5103 GB, free: 6.215 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.994e-05/0.5908, allocations: 22.94 kB / 0.5104 GB, free: 6.203 MB / 330.7 MB Notification: Performance of SimCode: time 9.42e-07/0.5908, allocations: 0 / 0.5104 GB, free: 6.203 MB / 330.7 MB Notification: Performance of Templates: time 0.009234/0.6, allocations: 2.786 MB / 0.5131 GB, free: 4.816 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,backSample1.y,sample.y,shiftSample1.y Variables in the result:backSample1.backCounter,backSample1.resolution,backSample1.y,backSample1.y_start,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