Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001676/0.001675, allocations: 111.7 kB / 17.06 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002048/0.002048, allocations: 194.9 kB / 18 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000901/0.000901, allocations: 39.92 kB / 351.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2866/0.2875, allocations: 49.44 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.002523/0.29, allocations: 1.553 MB / 402.3 MB, free: 7.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007219/0.2908, allocations: 494.6 kB / 402.7 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.042e-05/0.2909, allocations: 4 kB / 402.7 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.051e-05/0.2909, allocations: 11.86 kB / 402.8 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001261/0.291, allocations: 3.938 kB / 402.8 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002312/0.2913, allocations: 51.83 kB / 402.8 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.329e-05/0.2914, allocations: 51.77 kB / 402.9 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.379e-05/0.2915, allocations: 16.19 kB / 402.9 MB, free: 6.695 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.974e-05/0.2915, allocations: 27.86 kB / 402.9 MB, free: 6.668 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.137e-05/0.2916, allocations: 23.86 kB / 402.9 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.382e-05/0.2916, allocations: 0 / 402.9 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.004e-05/0.2916, allocations: 4 kB / 402.9 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.935e-05/0.2917, allocations: 19.91 kB / 403 MB, free: 6.621 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.138e-05/0.2917, allocations: 27.75 kB / 403 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001005/0.2918, allocations: 59.73 kB / 403 MB, free: 6.535 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2918, allocations: 4 kB / 403 MB, free: 6.531 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2919, allocations: 0 / 403 MB, free: 6.531 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.905e-06/0.2919, allocations: 0 / 403 MB, free: 6.531 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004289/0.2923, allocations: 372.3 kB / 403.4 MB, free: 6.125 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.056e-05/0.2923, allocations: 8.031 kB / 403.4 MB, free: 6.117 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.075e-05/0.2924, allocations: 8.844 kB / 403.4 MB, free: 6.109 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002013/0.2926, allocations: 200 kB / 403.6 MB, free: 5.875 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.055e-05/0.2926, allocations: 4.375 kB / 403.6 MB, free: 5.871 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.899e-06/0.2926, allocations: 4.375 kB / 403.6 MB, free: 5.867 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002335/0.2929, allocations: 113.2 kB / 403.7 MB, free: 5.738 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.2929, allocations: 0 / 403.7 MB, free: 5.738 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.612e-05/0.2929, allocations: 4 kB / 403.7 MB, free: 5.734 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.898e-06/0.2929, allocations: 0 / 403.7 MB, free: 5.734 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.072e-05/0.293, allocations: 23.97 kB / 403.8 MB, free: 5.711 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002671/0.2932, allocations: 265.6 kB / 404 MB, free: 5.398 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.034e-05/0.2933, allocations: 45.2 kB / 404.1 MB, free: 5.336 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.485e-05/0.2934, allocations: 25.78 kB / 404.1 MB, free: 5.305 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.567e-05/0.2934, allocations: 0 / 404.1 MB, free: 5.305 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.732e-05/0.2934, allocations: 34.5 kB / 404.1 MB, free: 5.262 MB / 318.1 MB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.2934, allocations: 0 / 404.1 MB, free: 5.262 MB / 318.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002077/0.2936, allocations: 69.52 kB / 404.2 MB, free: 5.188 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.703e-05/0.2937, allocations: 77.36 kB / 404.3 MB, free: 5.094 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000116/0.2938, allocations: 153.8 kB / 404.4 MB, free: 4.934 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.174e-05/0.2938, allocations: 25.7 kB / 404.4 MB, free: 4.902 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.419e-05/0.2939, allocations: 88.12 kB / 404.5 MB, free: 4.812 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.312e-05/0.2939, allocations: 7.906 kB / 404.5 MB, free: 4.805 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.872e-05/0.294, allocations: 17.7 kB / 404.6 MB, free: 4.781 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.673e-05/0.2941, allocations: 318.8 kB / 404.9 MB, free: 4.461 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.836e-05/0.2941, allocations: 11.98 kB / 404.9 MB, free: 4.449 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.538e-05/0.2941, allocations: 17.72 kB / 404.9 MB, free: 4.426 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.803e-05/0.2942, allocations: 33.64 kB / 404.9 MB, free: 4.387 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.2942, allocations: 0 / 404.9 MB, free: 4.387 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001033/0.2943, allocations: 53.59 kB / 405 MB, free: 4.328 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.2944, allocations: 8.125 kB / 405 MB, free: 4.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.137e-06/0.2944, allocations: 4 kB / 405 MB, free: 4.316 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.2944, allocations: 3.984 kB / 405 MB, free: 4.312 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.419e-05/0.2945, allocations: 7.938 kB / 405 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.2945, allocations: 0 / 405 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.151e-05/0.2945, allocations: 4 kB / 405 MB, free: 4.301 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.292e-06/0.2945, allocations: 0 / 405 MB, free: 4.301 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 6.992e-05/0.2946, allocations: 125.7 kB / 405.1 MB, free: 4.168 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.032e-05/0.2946, allocations: 37.61 kB / 405.2 MB, free: 4.125 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.977e-05/0.2947, allocations: 19.89 kB / 405.2 MB, free: 4.102 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.2947, allocations: 0 / 405.2 MB, free: 4.102 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.2947, allocations: 0 / 405.2 MB, free: 4.102 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.2947, allocations: 4 kB / 405.2 MB, free: 4.098 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001531/0.2949, allocations: 173.5 kB / 405.4 MB, free: 3.879 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.2949, allocations: 0 / 405.4 MB, free: 3.879 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.045e-05/0.2949, allocations: 4 kB / 405.4 MB, free: 3.875 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.641e-06/0.2949, allocations: 4 kB / 405.4 MB, free: 3.871 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.453e-06/0.2949, allocations: 3.938 kB / 405.4 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.295, allocations: 0 / 405.4 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.295, allocations: 7.938 kB / 405.4 MB, free: 3.859 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001646/0.2951, allocations: 168.2 kB / 405.5 MB, free: 3.676 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.708e-05/0.2952, allocations: 85.09 kB / 405.6 MB, free: 3.574 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.205e-05/0.2952, allocations: 0 / 405.6 MB, free: 3.574 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.661e-05/0.2953, allocations: 8 kB / 405.6 MB, free: 3.566 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.395e-05/0.2953, allocations: 3.984 kB / 405.6 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.426e-06/0.2953, allocations: 4.031 kB / 405.6 MB, free: 3.559 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.44e-05/0.2954, allocations: 114 kB / 405.8 MB, free: 3.449 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2954, allocations: 0 / 405.8 MB, free: 3.449 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002126/0.2956, allocations: 7.906 kB / 405.8 MB, free: 3.441 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 8.407e-05/0.2957, allocations: 104 kB / 405.9 MB, free: 3.332 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001181/0.2958, allocations: 23.92 kB / 405.9 MB, free: 3.309 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.2958, allocations: 4.125 kB / 405.9 MB, free: 3.305 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.431e-05/0.2959, allocations: 8 kB / 405.9 MB, free: 3.297 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002943/0.2962, allocations: 23.2 kB / 405.9 MB, free: 3.277 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002895/0.2965, allocations: 159.5 kB / 406.1 MB, free: 3.094 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002343/0.2967, allocations: 0.6922 MB / 406.8 MB, free: 2.375 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.771e-05/0.2968, allocations: 4.406 kB / 406.8 MB, free: 2.371 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.405e-05/0.2968, allocations: 11.44 kB / 406.8 MB, free: 2.359 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2968, allocations: 0 / 406.8 MB, free: 2.359 MB / 318.1 MB Notification: Performance of Templates: time 0.00237/0.2992, allocations: 0.5827 MB / 407.4 MB, free: 1.789 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches