Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001374/0.001375, allocations: 176.5 kB / 17.4 MB, free: 4.414 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.527/1.527, allocations: 223.3 MB / 241.4 MB, free: 9.852 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008685/0.0008685, allocations: 103.8 kB / 292.6 MB, free: 10.52 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003203/0.0003203, allocations: 12 kB / 352.3 MB, free: 14.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2596/0.26, allocations: 50.39 MB / 402.7 MB, free: 32.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1073/0.3673, allocations: 81.14 MB / 483.9 MB, free: 15.14 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002549/0.3676, allocations: 83.94 kB / 484 MB, free: 15.06 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01642/0.384, allocations: 6.113 MB / 490.1 MB, free: 8.953 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.3841, allocations: 0 / 490.1 MB, free: 8.953 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.386e-05/0.3841, allocations: 4 kB / 490.1 MB, free: 8.949 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007959/0.3849, allocations: 0.5312 MB / 490.6 MB, free: 8.359 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.385, allocations: 8.031 kB / 490.6 MB, free: 8.352 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.474e-05/0.3851, allocations: 20.75 kB / 490.6 MB, free: 8.332 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004523/0.3855, allocations: 315.4 kB / 490.9 MB, free: 7.984 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.827e-05/0.3855, allocations: 4.375 kB / 491 MB, free: 7.98 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.161e-05/0.3856, allocations: 8.375 kB / 491 MB, free: 7.973 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003522/0.3859, allocations: 153 kB / 491.1 MB, free: 7.797 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.386, allocations: 4.188 kB / 491.1 MB, free: 7.793 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.832e-05/0.386, allocations: 7.922 kB / 491.1 MB, free: 7.785 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.386, allocations: 4 kB / 491.1 MB, free: 7.781 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001183/0.3861, allocations: 39.91 kB / 491.2 MB, free: 7.742 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005925/0.3867, allocations: 402.4 kB / 491.6 MB, free: 7.293 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002429/0.387, allocations: 119.9 kB / 491.7 MB, free: 7.148 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.061e-05/0.3871, allocations: 50.56 kB / 491.7 MB, free: 7.09 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.715e-05/0.3871, allocations: 11.94 kB / 491.7 MB, free: 7.078 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001804/0.3873, allocations: 75.38 kB / 491.8 MB, free: 6.992 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.873e-06/0.3873, allocations: 0 / 491.8 MB, free: 6.992 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003886/0.3877, allocations: 157.3 kB / 492 MB, free: 6.832 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.3878, allocations: 170.4 kB / 492.1 MB, free: 6.629 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003596/0.3882, allocations: 326.7 kB / 492.5 MB, free: 6.297 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.092e-05/0.3882, allocations: 25.7 kB / 492.5 MB, free: 6.266 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.42e-05/0.3883, allocations: 136 kB / 492.6 MB, free: 6.129 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.489e-05/0.3884, allocations: 7.812 kB / 492.6 MB, free: 6.121 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.464e-06/0.3884, allocations: 4 kB / 492.6 MB, free: 6.117 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.3885, allocations: 338.8 kB / 493 MB, free: 5.777 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.88e-05/0.3886, allocations: 23.98 kB / 493 MB, free: 5.754 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001192/0.3887, allocations: 90.84 kB / 493.1 MB, free: 5.641 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001616/0.3889, allocations: 96.2 kB / 493.2 MB, free: 5.531 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3889, allocations: 0 / 493.2 MB, free: 5.531 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002213/0.3891, allocations: 121.4 kB / 493.3 MB, free: 5.406 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.3892, allocations: 4 kB / 493.3 MB, free: 5.402 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.3892, allocations: 0 / 493.3 MB, free: 5.402 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.3892, allocations: 7.938 kB / 493.3 MB, free: 5.395 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001052/0.3893, allocations: 19.92 kB / 493.3 MB, free: 5.375 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.3893, allocations: 4 kB / 493.3 MB, free: 5.371 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.973e-05/0.3894, allocations: 19.97 kB / 493.3 MB, free: 5.352 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.087e-05/0.3894, allocations: 4 kB / 493.3 MB, free: 5.348 MB / 362.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,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,shiftSample1.u,sample1.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.0001457/0.3896, allocations: 153.8 kB / 493.5 MB, free: 5.188 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.118e-05/0.3897, allocations: 69.44 kB / 493.6 MB, free: 5.113 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002628/0.39, allocations: 119.4 kB / 493.7 MB, free: 4.988 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.39, allocations: 0 / 493.7 MB, free: 4.988 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.39, allocations: 4 kB / 493.7 MB, free: 4.984 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.39, allocations: 8.047 kB / 493.7 MB, free: 4.977 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002207/0.3902, allocations: 249.4 kB / 493.9 MB, free: 4.684 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.3902, allocations: 4 kB / 493.9 MB, free: 4.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.727e-05/0.3903, allocations: 15.92 kB / 493.9 MB, free: 4.664 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.3903, allocations: 0 / 493.9 MB, free: 4.664 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.3903, allocations: 4 kB / 493.9 MB, free: 4.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.3903, allocations: 320 / 493.9 MB, free: 4.66 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.3904, allocations: 4 kB / 494 MB, free: 4.656 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002732/0.3906, allocations: 178.4 kB / 494.1 MB, free: 4.457 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001174/0.3908, allocations: 116.9 kB / 494.2 MB, free: 4.324 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.257e-05/0.3908, allocations: 8 kB / 494.2 MB, free: 4.316 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.516e-05/0.3909, allocations: 7.984 kB / 494.3 MB, free: 4.309 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.668e-05/0.3909, allocations: 11.98 kB / 494.3 MB, free: 4.297 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.344e-05/0.391, allocations: 4 kB / 494.3 MB, free: 4.293 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002332/0.3912, allocations: 241.9 kB / 494.5 MB, free: 4.055 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3912, allocations: 4.094 kB / 494.5 MB, free: 4.051 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002965/0.3915, allocations: 55.88 kB / 494.6 MB, free: 3.996 MB / 362.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,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample1.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.0009893/0.3925, allocations: 439.2 kB / 495 MB, free: 3.723 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002676/0.3928, allocations: 91.88 kB / 495.1 MB, free: 3.633 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3928, allocations: 3.938 kB / 495.1 MB, free: 3.629 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.898e-05/0.3929, allocations: 36.23 kB / 495.1 MB, free: 3.594 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004311/0.3933, allocations: 72.31 kB / 495.2 MB, free: 3.523 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006381/0.394, allocations: 412.4 kB / 495.6 MB, free: 3.09 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003537/0.3944, allocations: 0.7478 MB / 496.3 MB, free: 2.316 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.717e-05/0.3944, allocations: 21.55 kB / 496.4 MB, free: 2.297 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.126e-05/0.3945, allocations: 19.44 kB / 496.4 MB, free: 2.281 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3945, allocations: 0 / 496.4 MB, free: 2.281 MB / 362.7 MB Notification: Performance of Templates: time 0.006576/0.4011, allocations: 2.817 MB / 499.2 MB, free: 15.49 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.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