Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_cpp_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_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00103/0.00103, allocations: 195.4 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.263/1.263, allocations: 226.5 MB / 245.4 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007315/0.0007316, allocations: 98.31 kB / 297.4 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000258/0.000258, allocations: 4 kB / 357.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2004/0.2007, allocations: 51.29 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08899/0.2897, allocations: 77.79 MB / 486.5 MB, free: 13.84 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/0.29, allocations: 75.95 kB / 486.5 MB, free: 13.76 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004624/0.2947, allocations: 1.611 MB / 488.1 MB, free: 12.16 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.639e-06/0.2948, allocations: 4 kB / 488.1 MB, free: 12.15 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.234e-05/0.2948, allocations: 0 / 488.1 MB, free: 12.15 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000409/0.2952, allocations: 371.2 kB / 488.5 MB, free: 11.74 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.2953, allocations: 11.97 kB / 488.5 MB, free: 11.73 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001298/0.2954, allocations: 20.83 kB / 488.5 MB, free: 11.71 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001709/0.2956, allocations: 198.3 kB / 488.7 MB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.2956, allocations: 8.375 kB / 488.7 MB, free: 11.47 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.373e-05/0.2956, allocations: 384 / 488.7 MB, free: 11.47 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002878/0.2959, allocations: 109.6 kB / 488.8 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.2959, allocations: 4.188 kB / 488.8 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.022e-05/0.2959, allocations: 3.938 kB / 488.9 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.616e-06/0.296, allocations: 4 kB / 488.9 MB, free: 11.33 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.105e-05/0.296, allocations: 23.98 kB / 488.9 MB, free: 11.31 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003443/0.2964, allocations: 269.7 kB / 489.1 MB, free: 10.99 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.944e-05/0.2965, allocations: 49.14 kB / 489.2 MB, free: 10.93 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.613e-05/0.2966, allocations: 25.77 kB / 489.2 MB, free: 10.89 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.447e-05/0.2966, allocations: 0 / 489.2 MB, free: 10.89 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.981e-05/0.2966, allocations: 38.5 kB / 489.3 MB, free: 10.85 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 8.12e-07/0.2966, allocations: 0 / 489.3 MB, free: 10.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002532/0.2969, allocations: 77.52 kB / 489.3 MB, free: 10.77 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.59e-05/0.297, allocations: 81.11 kB / 489.4 MB, free: 10.67 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001264/0.2971, allocations: 133.8 kB / 489.5 MB, free: 10.53 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.672e-05/0.2971, allocations: 25.7 kB / 489.6 MB, free: 10.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.212e-05/0.2972, allocations: 96.38 kB / 489.7 MB, free: 10.4 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.121e-05/0.2972, allocations: 0 / 489.7 MB, free: 10.4 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.306e-06/0.2972, allocations: 0 / 489.7 MB, free: 10.4 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.2973, allocations: 318.8 kB / 490 MB, free: 10.08 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.001e-05/0.2974, allocations: 7.984 kB / 490 MB, free: 10.07 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.855e-05/0.2974, allocations: 21.72 kB / 490 MB, free: 10.04 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.949e-05/0.2975, allocations: 41.7 kB / 490 MB, free: 9.996 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.2975, allocations: 0 / 490 MB, free: 9.996 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001249/0.2976, allocations: 65.52 kB / 490.1 MB, free: 9.926 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.2977, allocations: 4 kB / 490.1 MB, free: 9.922 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.2977, allocations: 4.062 kB / 490.1 MB, free: 9.918 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.422e-05/0.2977, allocations: 4 kB / 490.1 MB, free: 9.914 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.532e-05/0.2978, allocations: 4 kB / 490.1 MB, free: 9.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.2978, allocations: 3.938 kB / 490.1 MB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.455e-05/0.2978, allocations: 4 kB / 490.1 MB, free: 9.902 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.235e-05/0.2978, allocations: 3.984 kB / 490.1 MB, free: 9.898 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.6e-05/0.2979, allocations: 121.7 kB / 490.2 MB, free: 9.77 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.138e-05/0.298, allocations: 41.61 kB / 490.3 MB, free: 9.723 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.259e-05/0.298, allocations: 15.86 kB / 490.3 MB, free: 9.703 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.298, allocations: 0 / 490.3 MB, free: 9.703 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.2981, allocations: 0 / 490.3 MB, free: 9.703 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.2981, allocations: 7.984 kB / 490.3 MB, free: 9.695 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001573/0.2982, allocations: 169.5 kB / 490.5 MB, free: 9.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.2982, allocations: 0 / 490.5 MB, free: 9.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.443e-05/0.2983, allocations: 4 kB / 490.5 MB, free: 9.477 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.2983, allocations: 4 kB / 490.5 MB, free: 9.473 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.799e-06/0.2983, allocations: 7.984 kB / 490.5 MB, free: 9.465 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.2983, allocations: 4.031 kB / 490.5 MB, free: 9.461 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.2983, allocations: 7.922 kB / 490.5 MB, free: 9.453 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001633/0.2985, allocations: 160.2 kB / 490.7 MB, free: 9.277 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.254e-05/0.2986, allocations: 89.09 kB / 490.7 MB, free: 9.172 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.305e-05/0.2986, allocations: 0 / 490.7 MB, free: 9.172 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.574e-05/0.2987, allocations: 12.02 kB / 490.8 MB, free: 9.16 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.581e-05/0.2987, allocations: 0 / 490.8 MB, free: 9.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.55e-06/0.2987, allocations: 4 kB / 490.8 MB, free: 9.156 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.749e-05/0.2988, allocations: 110.5 kB / 490.9 MB, free: 9.051 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2988, allocations: 0 / 490.9 MB, free: 9.051 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002193/0.299, allocations: 7.906 kB / 490.9 MB, free: 9.043 MB / 362.7 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 (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 9.375e-05/0.2991, allocations: 95.25 kB / 491 MB, free: 8.938 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001235/0.2993, allocations: 31.92 kB / 491 MB, free: 8.906 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.2993, allocations: 0 / 491 MB, free: 8.906 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.691e-05/0.2993, allocations: 12 kB / 491 MB, free: 8.895 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003284/0.2997, allocations: 19.95 kB / 491 MB, free: 8.875 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003465/0.3, allocations: 219.1 kB / 491.2 MB, free: 8.621 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002336/0.3003, allocations: 0.6926 MB / 491.9 MB, free: 7.902 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.567e-05/0.3003, allocations: 11.42 kB / 492 MB, free: 7.891 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3003, allocations: 0 / 492 MB, free: 7.891 MB / 362.7 MB Notification: Performance of Templates: time 0.001936/0.3022, allocations: 0.7443 MB / 492.7 MB, free: 7.164 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches