Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.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.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 176.3 kB / 17.4 MB, free: 4.273 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.443/1.443, allocations: 223.3 MB / 241.4 MB, free: 11.57 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.0008228/0.000823, allocations: 90.86 kB / 292.6 MB, free: 10.74 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003666/0.0003667, allocations: 8 kB / 352.3 MB, free: 14.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.2712, allocations: 50.4 MB / 402.7 MB, free: 32.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09893/0.3702, allocations: 81.29 MB / 484 MB, free: 15.04 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002441/0.3705, allocations: 88.84 kB / 484.1 MB, free: 14.95 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01618/0.3867, allocations: 6.093 MB / 490.2 MB, free: 8.859 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.414e-06/0.3868, allocations: 0 / 490.2 MB, free: 8.859 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.182e-05/0.3868, allocations: 8.188 kB / 490.2 MB, free: 8.852 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.0007556/0.3876, allocations: 0.5118 MB / 490.7 MB, free: 8.281 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.3876, allocations: 8.031 kB / 490.7 MB, free: 8.273 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.461e-05/0.3877, allocations: 28.64 kB / 490.8 MB, free: 8.246 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004174/0.3881, allocations: 266.9 kB / 491 MB, free: 7.945 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.316e-05/0.3882, allocations: 12.31 kB / 491 MB, free: 7.934 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.877e-05/0.3882, allocations: 8.375 kB / 491.1 MB, free: 7.926 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003999/0.3886, allocations: 160.1 kB / 491.2 MB, free: 7.742 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.3886, allocations: 192 / 491.2 MB, free: 7.742 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.05e-05/0.3887, allocations: 15.88 kB / 491.2 MB, free: 7.727 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.854e-06/0.3887, allocations: 4 kB / 491.2 MB, free: 7.723 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001458/0.3888, allocations: 43.91 kB / 491.3 MB, free: 7.68 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006824/0.3895, allocations: 379.2 kB / 491.6 MB, free: 7.25 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003031/0.3899, allocations: 142.8 kB / 491.8 MB, free: 7.074 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001228/0.39, allocations: 55.42 kB / 491.8 MB, free: 7.008 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.443e-05/0.39, allocations: 7.938 kB / 491.8 MB, free: 7 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000182/0.3902, allocations: 75.39 kB / 491.9 MB, free: 6.914 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 3.847e-06/0.3902, allocations: 3.984 kB / 491.9 MB, free: 6.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004951/0.3907, allocations: 165.3 kB / 492.1 MB, free: 6.742 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/0.3909, allocations: 162.2 kB / 492.2 MB, free: 6.547 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004016/0.3913, allocations: 272.9 kB / 492.5 MB, free: 6.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.399e-05/0.3913, allocations: 29.7 kB / 492.5 MB, free: 6.234 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.194e-05/0.3914, allocations: 116.4 kB / 492.6 MB, free: 6.113 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.676e-05/0.3915, allocations: 20.17 kB / 492.7 MB, free: 6.094 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.564e-06/0.3915, allocations: 4 kB / 492.7 MB, free: 6.09 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.3916, allocations: 334.7 kB / 493 MB, free: 5.754 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.727e-05/0.3917, allocations: 23.98 kB / 493 MB, free: 5.73 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001278/0.3919, allocations: 84.58 kB / 493.1 MB, free: 5.621 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001965/0.3921, allocations: 93.97 kB / 493.2 MB, free: 5.508 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.3921, allocations: 7.938 kB / 493.2 MB, free: 5.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002872/0.3924, allocations: 129.4 kB / 493.3 MB, free: 5.367 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.3924, allocations: 11.94 kB / 493.3 MB, free: 5.355 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.3924, allocations: 0 / 493.3 MB, free: 5.355 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.782e-05/0.3925, allocations: 4 kB / 493.3 MB, free: 5.352 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.489e-05/0.3926, allocations: 11.98 kB / 493.4 MB, free: 5.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.614e-05/0.3926, allocations: 7.938 kB / 493.4 MB, free: 5.332 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.3927, allocations: 11.84 kB / 493.4 MB, free: 5.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.534e-05/0.3927, allocations: 8.188 kB / 493.4 MB, free: 5.312 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,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,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 (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.0001515/0.3929, allocations: 150.6 kB / 493.5 MB, free: 5.156 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001228/0.393, allocations: 73.44 kB / 493.6 MB, free: 5.078 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002871/0.3933, allocations: 119.4 kB / 493.7 MB, free: 4.949 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.3934, allocations: 0 / 493.7 MB, free: 4.949 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.3934, allocations: 4 kB / 493.7 MB, free: 4.945 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.3934, allocations: 3.984 kB / 493.7 MB, free: 4.941 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002687/0.3937, allocations: 241.5 kB / 494 MB, free: 4.656 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.3937, allocations: 0 / 494 MB, free: 4.656 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.917e-05/0.3937, allocations: 12.3 kB / 494 MB, free: 4.645 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.3937, allocations: 0 / 494 MB, free: 4.645 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.641e-05/0.3938, allocations: 12 kB / 494 MB, free: 4.633 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.796e-06/0.3938, allocations: 0 / 494 MB, free: 4.633 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.3938, allocations: 4 kB / 494 MB, free: 4.629 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003529/0.3942, allocations: 183.3 kB / 494.2 MB, free: 4.422 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001436/0.3943, allocations: 116.8 kB / 494.3 MB, free: 4.289 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.722e-05/0.3944, allocations: 0 / 494.3 MB, free: 4.289 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.454e-05/0.3945, allocations: 12 kB / 494.3 MB, free: 4.277 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.614e-05/0.3945, allocations: 3.984 kB / 494.3 MB, free: 4.273 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.177e-05/0.3945, allocations: 4 kB / 494.3 MB, free: 4.27 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002624/0.3948, allocations: 200.5 kB / 494.5 MB, free: 4.07 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3948, allocations: 4 kB / 494.5 MB, free: 4.066 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004062/0.3952, allocations: 47.86 kB / 494.6 MB, free: 4.02 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,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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 (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.001297/0.3966, allocations: 429.2 kB / 495 MB, free: 3.758 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003281/0.3969, allocations: 83.89 kB / 495.1 MB, free: 3.676 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.3969, allocations: 384 / 495.1 MB, free: 3.676 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000106/0.397, allocations: 31.94 kB / 495.1 MB, free: 3.645 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005983/0.3976, allocations: 72.31 kB / 495.2 MB, free: 3.574 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007943/0.3985, allocations: 376.9 kB / 495.5 MB, free: 3.172 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003505/0.3988, allocations: 0.7362 MB / 496.3 MB, free: 2.41 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001207/0.399, allocations: 29.67 kB / 496.3 MB, free: 2.383 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.984e-05/0.399, allocations: 19.44 kB / 496.3 MB, free: 2.363 MB / 362.7 MB Notification: Performance of SimCode: time 2.81e-07/0.399, allocations: 0 / 496.3 MB, free: 2.363 MB / 362.7 MB Notification: Performance of Templates: time 0.00777/0.4068, allocations: 2.566 MB / 498.9 MB, free: 15.82 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y,backSample1.y Variables in the result:backSample1.backCounter,backSample1.resolution,backSample1.y,backSample1.y_start,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.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.extrapolation,table.n,table.realToBoolean.threshold,table.shiftTime,table.startTime,table.startValue,table.table[1],table.table[2],time