Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.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.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009491/0.0009491, allocations: 195.7 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.281/1.281, allocations: 226.5 MB / 245.4 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007882/0.0007882, allocations: 99.95 kB / 297.4 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000227/0.000227, allocations: 4 kB / 357.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2031/0.2033, allocations: 51.3 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09179/0.2951, allocations: 77.81 MB / 486.5 MB, free: 13.78 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002612/0.2955, allocations: 75.95 kB / 486.6 MB, free: 13.71 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004453/0.2999, allocations: 1.61 MB / 488.2 MB, free: 12.1 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3, allocations: 0 / 488.2 MB, free: 12.1 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.3, allocations: 7.5 kB / 488.2 MB, free: 12.1 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.0004062/0.3004, allocations: 371.1 kB / 488.5 MB, free: 11.68 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.3004, allocations: 8.031 kB / 488.5 MB, free: 11.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001356/0.3006, allocations: 24.83 kB / 488.6 MB, free: 11.65 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001939/0.3008, allocations: 198.4 kB / 488.8 MB, free: 11.42 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.3008, allocations: 8.375 kB / 488.8 MB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.167e-06/0.3008, allocations: 384 / 488.8 MB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000291/0.3011, allocations: 122.3 kB / 488.9 MB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.665e-06/0.3011, allocations: 192 / 488.9 MB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.3012, allocations: 7.938 kB / 488.9 MB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.3012, allocations: 4 kB / 488.9 MB, free: 11.26 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.719e-05/0.3013, allocations: 27.92 kB / 488.9 MB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003469/0.3016, allocations: 278.6 kB / 489.2 MB, free: 10.91 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001152/0.3017, allocations: 75.73 kB / 489.3 MB, free: 10.8 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.894e-05/0.3018, allocations: 34.62 kB / 489.3 MB, free: 10.76 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.106e-05/0.3019, allocations: 4 kB / 489.3 MB, free: 10.76 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.527e-05/0.3019, allocations: 34.5 kB / 489.3 MB, free: 10.71 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 1.112e-06/0.3019, allocations: 4 kB / 489.3 MB, free: 10.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002836/0.3022, allocations: 93.84 kB / 489.4 MB, free: 10.61 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.09e-05/0.3023, allocations: 106.8 kB / 489.5 MB, free: 10.48 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001281/0.3024, allocations: 137.8 kB / 489.7 MB, free: 10.34 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.287e-05/0.3024, allocations: 25.7 kB / 489.7 MB, free: 10.31 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.069e-05/0.3025, allocations: 92.12 kB / 489.8 MB, free: 10.21 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.19e-05/0.3025, allocations: 0 / 489.8 MB, free: 10.21 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.627e-06/0.3025, allocations: 4 kB / 489.8 MB, free: 10.21 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.3026, allocations: 314.8 kB / 490.1 MB, free: 9.895 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.262e-05/0.3027, allocations: 15.98 kB / 490.1 MB, free: 9.879 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.004e-05/0.3027, allocations: 39.36 kB / 490.2 MB, free: 9.828 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.501e-05/0.3028, allocations: 51.42 kB / 490.2 MB, free: 9.766 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3028, allocations: 3.938 kB / 490.2 MB, free: 9.762 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001317/0.303, allocations: 69.47 kB / 490.3 MB, free: 9.688 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.303, allocations: 11.98 kB / 490.3 MB, free: 9.676 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-06/0.303, allocations: 8.062 kB / 490.3 MB, free: 9.668 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.303, allocations: 0 / 490.3 MB, free: 9.668 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.626e-05/0.3031, allocations: 12 kB / 490.3 MB, free: 9.656 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.3031, allocations: 4 kB / 490.3 MB, free: 9.652 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.126e-05/0.3032, allocations: 7.938 kB / 490.3 MB, free: 9.645 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.588e-06/0.3032, allocations: 3.984 kB / 490.3 MB, free: 9.641 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * 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 9.543e-05/0.3033, allocations: 126.9 kB / 490.5 MB, free: 9.508 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.972e-05/0.3034, allocations: 53.62 kB / 490.5 MB, free: 9.449 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.491e-05/0.3034, allocations: 11.88 kB / 490.5 MB, free: 9.434 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.3034, allocations: 0 / 490.5 MB, free: 9.434 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.3034, allocations: 0 / 490.5 MB, free: 9.434 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.3035, allocations: 4 kB / 490.5 MB, free: 9.43 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001772/0.3036, allocations: 173.6 kB / 490.7 MB, free: 9.211 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.3036, allocations: 4 kB / 490.7 MB, free: 9.207 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.946e-05/0.3037, allocations: 15.94 kB / 490.7 MB, free: 9.191 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.3037, allocations: 0 / 490.7 MB, free: 9.191 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.315e-06/0.3037, allocations: 0 / 490.7 MB, free: 9.191 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.3037, allocations: 32 / 490.7 MB, free: 9.191 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.3037, allocations: 8 kB / 490.7 MB, free: 9.184 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002007/0.3039, allocations: 181.1 kB / 490.9 MB, free: 8.984 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.371e-05/0.304, allocations: 89 kB / 491 MB, free: 8.879 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.739e-05/0.3041, allocations: 7.984 kB / 491 MB, free: 8.871 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.753e-05/0.3041, allocations: 11.94 kB / 491 MB, free: 8.859 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.395e-05/0.3042, allocations: 4 kB / 491 MB, free: 8.855 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.781e-06/0.3042, allocations: 0 / 491 MB, free: 8.855 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.213e-05/0.3043, allocations: 114.3 kB / 491.1 MB, free: 8.746 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3043, allocations: 0 / 491.1 MB, free: 8.746 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002193/0.3045, allocations: 8 kB / 491.1 MB, free: 8.738 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 0.0001347/0.3046, allocations: 95.25 kB / 491.2 MB, free: 8.633 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001428/0.3048, allocations: 43.91 kB / 491.3 MB, free: 8.59 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.3048, allocations: 4 kB / 491.3 MB, free: 8.586 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.733e-05/0.3048, allocations: 8 kB / 491.3 MB, free: 8.578 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000362/0.3052, allocations: 28.09 kB / 491.3 MB, free: 8.551 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003947/0.3056, allocations: 244.6 kB / 491.5 MB, free: 8.27 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/0.3059, allocations: 0.6887 MB / 492.2 MB, free: 7.555 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.873e-05/0.306, allocations: 11.44 kB / 492.2 MB, free: 7.543 MB / 362.7 MB Notification: Performance of SimCode: time 2.7e-07/0.306, allocations: 4 kB / 492.2 MB, free: 7.539 MB / 362.7 MB Notification: Performance of Templates: time 0.002117/0.3081, allocations: 0.8384 MB / 493.1 MB, free: 6.719 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/ShiftSample/ShiftSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches