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.00105/0.00105, allocations: 181.4 kB / 8.051 MB, free: 1.023 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.453/1.453, allocations: 205.3 MB / 213.8 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000843/0.0008428, allocations: 78.72 kB / 261.8 MB, free: 1.691 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.07851/0.07851, allocations: 12.6 MB / 322.4 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.691e-05/1.693e-05, allocations: 0 / 378.9 MB, free: 6.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2519/0.2519, allocations: 50.37 MB / 429.3 MB, free: 18.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1049/0.3568, allocations: 81.21 MB / 0.4986 GB, free: 1.031 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002588/0.3571, allocations: 79.95 kB / 0.4986 GB, free: 0.9531 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01597/0.3731, allocations: 6.009 MB / 0.5045 GB, free: 10.94 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3732, allocations: 0 / 0.5045 GB, free: 10.94 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.024e-05/0.3732, allocations: 8 kB / 0.5045 GB, free: 10.93 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005654/0.3738, allocations: 0.4955 MB / 0.505 GB, free: 10.39 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.3738, allocations: 8.031 kB / 0.505 GB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.852e-05/0.3739, allocations: 23.72 kB / 0.505 GB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004256/0.3743, allocations: 302.4 kB / 0.5053 GB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.14e-05/0.3744, allocations: 7.953 kB / 0.5053 GB, free: 10.01 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.168e-05/0.3744, allocations: 8 kB / 0.5053 GB, free: 10 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001165/0.3745, allocations: 39.98 kB / 0.5054 GB, free: 9.965 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002867/0.3748, allocations: 165.3 kB / 0.5055 GB, free: 9.773 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.3748, allocations: 4 kB / 0.5055 GB, free: 9.77 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.5e-05/0.3749, allocations: 3.984 kB / 0.5055 GB, free: 9.766 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.3749, allocations: 0 / 0.5055 GB, free: 9.766 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005085/0.3754, allocations: 383.8 kB / 0.5059 GB, free: 9.344 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000177/0.3756, allocations: 138.5 kB / 0.506 GB, free: 9.172 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.82e-05/0.3756, allocations: 51.56 kB / 0.5061 GB, free: 9.109 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.664e-05/0.3757, allocations: 7.984 kB / 0.5061 GB, free: 9.102 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001398/0.3758, allocations: 75.39 kB / 0.5062 GB, free: 9.016 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 2.996e-06/0.3759, allocations: 0 / 0.5062 GB, free: 9.016 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002685/0.3761, allocations: 129.3 kB / 0.5063 GB, free: 8.883 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.556e-05/0.3762, allocations: 191.9 kB / 0.5065 GB, free: 8.652 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002825/0.3765, allocations: 290.3 kB / 0.5067 GB, free: 8.367 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.325e-05/0.3766, allocations: 29.7 kB / 0.5068 GB, free: 8.332 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.27e-05/0.3766, allocations: 128.3 kB / 0.5069 GB, free: 8.199 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.609e-05/0.3767, allocations: 19.88 kB / 0.5069 GB, free: 8.18 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.711e-06/0.3767, allocations: 0 / 0.5069 GB, free: 8.18 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.3768, allocations: 330.8 kB / 0.5072 GB, free: 7.848 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.218e-05/0.3768, allocations: 27.98 kB / 0.5072 GB, free: 7.82 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000106/0.377, allocations: 104.5 kB / 0.5073 GB, free: 7.688 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.953e-05/0.377, allocations: 35.94 kB / 0.5074 GB, free: 7.652 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.377, allocations: 0 / 0.5074 GB, free: 7.652 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001853/0.3772, allocations: 129.2 kB / 0.5075 GB, free: 7.52 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/0.3772, allocations: 8 kB / 0.5075 GB, free: 7.512 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.3773, allocations: 0 / 0.5075 GB, free: 7.512 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.3773, allocations: 4 kB / 0.5075 GB, free: 7.508 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001189/0.3774, allocations: 24.17 kB / 0.5075 GB, free: 7.484 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.3774, allocations: 7.938 kB / 0.5075 GB, free: 7.477 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.124e-05/0.3775, allocations: 7.938 kB / 0.5076 GB, free: 7.469 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.124e-05/0.3775, allocations: 4 kB / 0.5076 GB, free: 7.465 MB / 362.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 8.843e-05/0.3776, allocations: 112.9 kB / 0.5077 GB, free: 7.348 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001026/0.3777, allocations: 77.34 kB / 0.5077 GB, free: 7.266 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002063/0.3779, allocations: 123.6 kB / 0.5079 GB, free: 7.133 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.378, allocations: 4 kB / 0.5079 GB, free: 7.129 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.378, allocations: 0 / 0.5079 GB, free: 7.129 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.378, allocations: 3.938 kB / 0.5079 GB, free: 7.125 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002034/0.3782, allocations: 226 kB / 0.5081 GB, free: 6.867 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3782, allocations: 4 kB / 0.5081 GB, free: 6.863 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.944e-05/0.3783, allocations: 16.11 kB / 0.5081 GB, free: 6.848 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.131e-06/0.3783, allocations: 7.953 kB / 0.5081 GB, free: 6.84 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.078e-05/0.3783, allocations: 4 kB / 0.5081 GB, free: 6.836 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3783, allocations: 0 / 0.5081 GB, free: 6.836 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.3783, allocations: 4 kB / 0.5081 GB, free: 6.832 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002361/0.3786, allocations: 212.4 kB / 0.5083 GB, free: 6.578 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001114/0.3787, allocations: 132.8 kB / 0.5084 GB, free: 6.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.859e-05/0.3787, allocations: 4 kB / 0.5084 GB, free: 6.426 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.388e-05/0.3788, allocations: 7.938 kB / 0.5085 GB, free: 6.418 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.508e-05/0.3789, allocations: 7.984 kB / 0.5085 GB, free: 6.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.139e-05/0.3789, allocations: 4 kB / 0.5085 GB, free: 6.406 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002019/0.3791, allocations: 234 kB / 0.5087 GB, free: 6.176 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3791, allocations: 0 / 0.5087 GB, free: 6.176 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002831/0.3794, allocations: 47.94 kB / 0.5087 GB, free: 6.129 MB / 362.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.0007724/0.3802, allocations: 369.5 kB / 0.5091 GB, free: 5.77 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000198/0.3804, allocations: 87.91 kB / 0.5092 GB, free: 5.684 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3804, allocations: 0 / 0.5092 GB, free: 5.684 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.643e-05/0.3805, allocations: 35.97 kB / 0.5092 GB, free: 5.648 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003594/0.3808, allocations: 69.53 kB / 0.5093 GB, free: 5.578 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004817/0.3813, allocations: 297.5 kB / 0.5096 GB, free: 5.254 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002789/0.3816, allocations: 0.7516 MB / 0.5103 GB, free: 4.473 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.697e-05/0.3817, allocations: 33.84 kB / 0.5103 GB, free: 4.441 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.2e-05/0.3818, allocations: 27.38 kB / 0.5103 GB, free: 4.418 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3818, allocations: 0 / 0.5103 GB, free: 4.418 MB / 362.7 MB Notification: Performance of Templates: time 0.005641/0.3874, allocations: 2.789 MB / 0.5131 GB, free: 1.637 MB / 362.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/jenkins/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