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.001169/0.001169, allocations: 168.1 kB / 16.8 MB, free: 4.891 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.537/1.537, allocations: 205.4 MB / 223 MB, free: 9.016 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.0007335/0.0007335, allocations: 89.39 kB / 271.3 MB, free: 8.242 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.07432/0.07432, allocations: 12.6 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004494/0.0004492, allocations: 15.94 kB / 393.2 MB, free: 65.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09274/0.09321, allocations: 50.37 MB / 443.6 MB, free: 15.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2836/0.3768, allocations: 82.02 MB / 0.5133 GB, free: 12.59 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002313/0.3771, allocations: 83.17 kB / 0.5134 GB, free: 12.58 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01413/0.3912, allocations: 6.073 MB / 0.5193 GB, free: 8.77 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3913, allocations: 0 / 0.5193 GB, free: 8.77 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.064e-05/0.3913, allocations: 4 kB / 0.5193 GB, free: 8.766 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.0005379/0.3919, allocations: 0.5331 MB / 0.5198 GB, free: 8.195 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.3919, allocations: 8.031 kB / 0.5198 GB, free: 8.188 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.233e-05/0.392, allocations: 36.5 kB / 0.5199 GB, free: 8.152 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003449/0.3923, allocations: 302.2 kB / 0.5202 GB, free: 7.84 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.631e-05/0.3924, allocations: 7.688 kB / 0.5202 GB, free: 7.836 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.946e-05/0.3924, allocations: 4.375 kB / 0.5202 GB, free: 7.832 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000301/0.3927, allocations: 181.3 kB / 0.5203 GB, free: 7.652 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.3927, allocations: 4.188 kB / 0.5204 GB, free: 7.648 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.636e-05/0.3927, allocations: 11.05 kB / 0.5204 GB, free: 7.641 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.3927, allocations: 0 / 0.5204 GB, free: 7.641 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000105/0.3929, allocations: 42.42 kB / 0.5204 GB, free: 7.609 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004289/0.3933, allocations: 423 kB / 0.5208 GB, free: 7.195 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002232/0.3935, allocations: 144.1 kB / 0.5209 GB, free: 7.039 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.287e-05/0.3936, allocations: 64.61 kB / 0.521 GB, free: 6.977 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.23e-05/0.3936, allocations: 7.922 kB / 0.521 GB, free: 6.969 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001413/0.3938, allocations: 90.27 kB / 0.5211 GB, free: 6.883 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 1.834e-06/0.3938, allocations: 0 / 0.5211 GB, free: 6.883 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003397/0.3942, allocations: 167.8 kB / 0.5213 GB, free: 6.742 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.288e-05/0.3942, allocations: 191.4 kB / 0.5214 GB, free: 6.516 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002683/0.3945, allocations: 329.6 kB / 0.5218 GB, free: 6.242 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.555e-05/0.3945, allocations: 36.77 kB / 0.5218 GB, free: 6.203 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.343e-05/0.3946, allocations: 128.5 kB / 0.5219 GB, free: 6.102 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.973e-05/0.3946, allocations: 19.64 kB / 0.5219 GB, free: 6.086 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.649e-06/0.3946, allocations: 0 / 0.5219 GB, free: 6.086 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.976e-05/0.3947, allocations: 341.6 kB / 0.5223 GB, free: 5.754 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.703e-05/0.3947, allocations: 22.92 kB / 0.5223 GB, free: 5.738 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.35e-05/0.3948, allocations: 106.4 kB / 0.5224 GB, free: 5.617 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001329/0.395, allocations: 111.2 kB / 0.5225 GB, free: 5.512 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.395, allocations: 0 / 0.5225 GB, free: 5.512 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002076/0.3952, allocations: 136.5 kB / 0.5226 GB, free: 5.395 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.3952, allocations: 4 kB / 0.5226 GB, free: 5.391 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.3952, allocations: 4 kB / 0.5226 GB, free: 5.387 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.3953, allocations: 4.031 kB / 0.5226 GB, free: 5.383 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001003/0.3954, allocations: 28.11 kB / 0.5227 GB, free: 5.355 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.705e-06/0.3954, allocations: 7.984 kB / 0.5227 GB, free: 5.348 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.833e-05/0.3955, allocations: 19.16 kB / 0.5227 GB, free: 5.332 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.217e-06/0.3955, allocations: 4 kB / 0.5227 GB, free: 5.328 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 () * Number of clocked 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 0.0001002/0.3956, allocations: 161.7 kB / 0.5228 GB, free: 5.176 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.918e-05/0.3957, allocations: 80.34 kB / 0.5229 GB, free: 5.098 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002202/0.3959, allocations: 135.3 kB / 0.523 GB, free: 4.988 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.065e-06/0.3959, allocations: 0 / 0.523 GB, free: 4.988 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.3959, allocations: 4 kB / 0.5231 GB, free: 4.984 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.3959, allocations: 0 / 0.5231 GB, free: 4.984 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001478/0.3961, allocations: 253.8 kB / 0.5233 GB, free: 4.719 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.3961, allocations: 0 / 0.5233 GB, free: 4.719 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.064e-05/0.3962, allocations: 27.92 kB / 0.5233 GB, free: 4.691 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.3962, allocations: 0 / 0.5233 GB, free: 4.691 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.207e-05/0.3962, allocations: 7.875 kB / 0.5233 GB, free: 4.688 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.013e-06/0.3962, allocations: 0 / 0.5233 GB, free: 4.688 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.3962, allocations: 0 / 0.5233 GB, free: 4.688 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000221/0.3964, allocations: 202.5 kB / 0.5235 GB, free: 4.492 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.191e-05/0.3965, allocations: 119.5 kB / 0.5236 GB, free: 4.363 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.985e-05/0.3966, allocations: 7.5 kB / 0.5236 GB, free: 4.359 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.543e-05/0.3966, allocations: 3.984 kB / 0.5236 GB, free: 4.355 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.583e-05/0.3967, allocations: 15.5 kB / 0.5237 GB, free: 4.344 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.117e-05/0.3967, allocations: 11.92 kB / 0.5237 GB, free: 4.332 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000189/0.3969, allocations: 244.2 kB / 0.5239 GB, free: 4.137 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3969, allocations: 0 / 0.5239 GB, free: 4.137 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002744/0.3972, allocations: 50.5 kB / 0.524 GB, free: 4.094 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) * Number of clocked states: 0 () * 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.0008122/0.398, allocations: 436.3 kB / 0.5244 GB, free: 3.676 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002371/0.3983, allocations: 104.1 kB / 0.5245 GB, free: 3.594 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.3983, allocations: 3.75 kB / 0.5245 GB, free: 3.594 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.466e-05/0.3983, allocations: 30.3 kB / 0.5245 GB, free: 3.57 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004225/0.3988, allocations: 80.02 kB / 0.5246 GB, free: 3.504 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005395/0.3993, allocations: 441.6 kB / 0.525 GB, free: 3.078 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001529/0.3995, allocations: 0.7465 MB / 0.5257 GB, free: 2.312 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 9.468e-05/0.3996, allocations: 33.69 kB / 0.5258 GB, free: 2.281 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.228e-05/0.3997, allocations: 23.42 kB / 0.5258 GB, free: 2.258 MB / 330.7 MB Notification: Performance of SimCode: time 3.01e-07/0.3997, allocations: 3.938 kB / 0.5258 GB, free: 2.254 MB / 330.7 MB Notification: Performance of Templates: time 0.00688/0.4065, allocations: 3.004 MB / 0.5287 GB, free: 15.27 MB / 346.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