Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001653/0.001653, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002074/0.002074, allocations: 213.2 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.651/1.651, allocations: 230.3 MB / 258 MB, free: 8.238 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002026/0.002026, allocations: 55.91 kB / 378.7 MB, free: 2.797 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3719/0.374, allocations: 53.36 MB / 432.1 MB, free: 7.102 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.004219/0.3782, allocations: 1.922 MB / 434 MB, free: 5.172 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002605/0.3808, allocations: 1.312 MB / 435.3 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001862/0.381, allocations: 11.94 kB / 435.4 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004061/0.3814, allocations: 63.67 kB / 435.4 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000447/0.3818, allocations: 135.4 kB / 435.6 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000817/0.3826, allocations: 234.5 kB / 435.8 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002989/0.3829, allocations: 187.5 kB / 436 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001354/0.3831, allocations: 21.73 kB / 436 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001386/0.3832, allocations: 75.69 kB / 436.1 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001513/0.3834, allocations: 87.61 kB / 436.1 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.111e-05/0.3834, allocations: 8 kB / 436.2 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002073/0.3836, allocations: 79.89 kB / 436.2 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001074/0.3837, allocations: 51.77 kB / 436.3 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001044/0.3838, allocations: 79.42 kB / 436.4 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004249/0.3842, allocations: 244.6 kB / 436.6 MB, free: 2.602 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.3842, allocations: 0 / 436.6 MB, free: 2.602 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3842, allocations: 4 kB / 436.6 MB, free: 2.598 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.193e-06/0.3842, allocations: 0 / 436.6 MB, free: 2.598 MB / 334.1 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.0008557/0.3851, allocations: 482.5 kB / 437.1 MB, free: 2.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.3851, allocations: 8.031 kB / 437.1 MB, free: 2.082 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.019e-05/0.3852, allocations: 24.8 kB / 437.1 MB, free: 2.059 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004964/0.3857, allocations: 233.4 kB / 437.3 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.967e-05/0.3857, allocations: 4.375 kB / 437.3 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.469e-05/0.3858, allocations: 12.38 kB / 437.3 MB, free: 1.789 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004018/0.3862, allocations: 155.9 kB / 437.5 MB, free: 1.609 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.3862, allocations: 0 / 437.5 MB, free: 1.609 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.84e-05/0.3862, allocations: 4 kB / 437.5 MB, free: 1.605 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.3862, allocations: 4 kB / 437.5 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001322/0.3863, allocations: 35.91 kB / 437.5 MB, free: 1.566 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005941/0.3869, allocations: 353.5 kB / 437.9 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002925/0.3872, allocations: 119.9 kB / 438 MB, free: 1.027 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.396e-05/0.3873, allocations: 42.5 kB / 438 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.734e-05/0.3874, allocations: 11.98 kB / 438.1 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002175/0.3876, allocations: 75.38 kB / 438.1 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.483e-06/0.3876, allocations: 0 / 438.1 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004506/0.388, allocations: 161.4 kB / 438.3 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001501/0.3882, allocations: 154.2 kB / 438.4 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000424/0.3886, allocations: 337.8 kB / 438.8 MB, free: 196 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.899e-05/0.3886, allocations: 33.95 kB / 438.8 MB, free: 156 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001249/0.3887, allocations: 132.1 kB / 438.9 MB, free: 20 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.004e-05/0.3888, allocations: 15.91 kB / 438.9 MB, free: 4 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001345/0.3889, allocations: 29.7 kB / 439 MB, free: 15.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.3891, allocations: 338.8 kB / 439.3 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.434e-05/0.3892, allocations: 23.92 kB / 439.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002325/0.3894, allocations: 94.8 kB / 439.4 MB, free: 15.49 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001694/0.3896, allocations: 84.16 kB / 439.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.3896, allocations: 256 / 439.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002591/0.3898, allocations: 137.5 kB / 439.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.3898, allocations: 4 kB / 439.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.3899, allocations: 0 / 439.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.3899, allocations: 4 kB / 439.6 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.39, allocations: 23.92 kB / 439.7 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.39, allocations: 0 / 439.7 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.768e-05/0.3901, allocations: 4 kB / 439.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.488e-05/0.3901, allocations: 11.94 kB / 439.7 MB, free: 15.2 MB / 350.1 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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001767/0.3903, allocations: 166.6 kB / 439.8 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.815e-05/0.3904, allocations: 69.45 kB / 439.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003012/0.3907, allocations: 119.4 kB / 440 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.3907, allocations: 4 kB / 440 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.3907, allocations: 3.938 kB / 440 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.3907, allocations: 0 / 440 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002941/0.391, allocations: 216.7 kB / 440.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.391, allocations: 4.062 kB / 440.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.631e-05/0.391, allocations: 11.98 kB / 440.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.391, allocations: 0 / 440.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.476e-05/0.3911, allocations: 4 kB / 440.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.3911, allocations: 0 / 440.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3911, allocations: 0 / 440.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003277/0.3914, allocations: 174.5 kB / 440.4 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001054/0.3915, allocations: 35.83 kB / 440.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.243e-05/0.3915, allocations: 4 kB / 440.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.172e-05/0.3916, allocations: 12.12 kB / 440.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.806e-05/0.3917, allocations: 7.984 kB / 440.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.061e-05/0.3917, allocations: 8 kB / 440.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002739/0.392, allocations: 245.2 kB / 440.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.392, allocations: 3.938 kB / 440.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002847/0.3922, allocations: 35.94 kB / 440.8 MB, free: 14.01 MB / 350.1 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,table.y,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 (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001654/0.3939, allocations: 420.8 kB / 441.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002686/0.3942, allocations: 71.91 kB / 441.3 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3942, allocations: 3.938 kB / 441.3 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001005/0.3943, allocations: 27.98 kB / 441.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004622/0.3947, allocations: 71.7 kB / 441.4 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008/0.3955, allocations: 376.9 kB / 441.7 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000466/0.396, allocations: 0.7359 MB / 442.5 MB, free: 12.4 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001008/0.3961, allocations: 37.45 kB / 442.5 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.211e-05/0.3962, allocations: 23.42 kB / 442.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3962, allocations: 0 / 442.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of Templates: time 0.0083/0.4045, allocations: 2.941 MB / 445.5 MB, free: 9.418 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.401328824460506]