Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.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.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009562/0.0009561, allocations: 202.8 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.351/1.351, allocations: 226.5 MB / 245.4 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007908/0.0007912, allocations: 92.66 kB / 297.4 MB, free: 6.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002333/0.0002334, allocations: 4 kB / 357.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2076/0.2078, allocations: 51.29 MB / 408.7 MB, free: 27.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08938/0.2973, allocations: 77.81 MB / 486.5 MB, free: 13.84 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002116/0.2975, allocations: 79.94 kB / 486.5 MB, free: 13.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005884/0.3034, allocations: 2.216 MB / 488.8 MB, free: 11.55 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.456e-06/0.3034, allocations: 0 / 488.8 MB, free: 11.55 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.714e-06/0.3035, allocations: 7.938 kB / 488.8 MB, free: 11.55 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.0003367/0.3038, allocations: 371.3 kB / 489.1 MB, free: 11.13 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.3038, allocations: 8.031 kB / 489.1 MB, free: 11.12 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001336/0.304, allocations: 32.77 kB / 489.2 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001868/0.3042, allocations: 190.6 kB / 489.4 MB, free: 10.87 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.658e-06/0.3042, allocations: 384 / 489.4 MB, free: 10.87 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.119e-05/0.3042, allocations: 8.312 kB / 489.4 MB, free: 10.86 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002289/0.3045, allocations: 105.6 kB / 489.5 MB, free: 10.74 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.3045, allocations: 4.188 kB / 489.5 MB, free: 10.74 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.168e-05/0.3045, allocations: 11.92 kB / 489.5 MB, free: 10.73 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.012e-06/0.3045, allocations: 0 / 489.5 MB, free: 10.73 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.657e-05/0.3046, allocations: 23.92 kB / 489.5 MB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003307/0.3049, allocations: 265.8 kB / 489.8 MB, free: 10.39 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.276e-05/0.305, allocations: 53.09 kB / 489.8 MB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.847e-05/0.3051, allocations: 21.77 kB / 489.8 MB, free: 10.29 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.705e-05/0.3051, allocations: 0 / 489.8 MB, free: 10.29 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.423e-05/0.3051, allocations: 35.88 kB / 489.9 MB, free: 10.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 8.52e-07/0.3051, allocations: 0 / 489.9 MB, free: 10.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002398/0.3054, allocations: 77.61 kB / 489.9 MB, free: 10.17 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.476e-05/0.3054, allocations: 77.11 kB / 490 MB, free: 10.07 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.3056, allocations: 138.2 kB / 490.2 MB, free: 9.926 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.062e-05/0.3056, allocations: 25.7 kB / 490.2 MB, free: 9.895 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.73e-05/0.3056, allocations: 92.12 kB / 490.3 MB, free: 9.801 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.266e-05/0.3056, allocations: 7.844 kB / 490.3 MB, free: 9.793 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.876e-06/0.3056, allocations: 4.156 kB / 490.3 MB, free: 9.789 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.268e-05/0.3057, allocations: 314.8 kB / 490.6 MB, free: 9.473 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.575e-05/0.3058, allocations: 11.98 kB / 490.6 MB, free: 9.461 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.702e-05/0.3059, allocations: 21.66 kB / 490.6 MB, free: 9.434 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.981e-05/0.3059, allocations: 37.77 kB / 490.7 MB, free: 9.391 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.306, allocations: 0 / 490.7 MB, free: 9.391 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001175/0.3061, allocations: 65.55 kB / 490.7 MB, free: 9.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/0.3061, allocations: 4 kB / 490.7 MB, free: 9.316 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.3061, allocations: 4 kB / 490.7 MB, free: 9.312 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.3061, allocations: 4.062 kB / 490.7 MB, free: 9.309 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.421e-05/0.3062, allocations: 4 kB / 490.7 MB, free: 9.305 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.139e-06/0.3062, allocations: 0 / 490.7 MB, free: 9.305 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.619e-05/0.3063, allocations: 7.984 kB / 490.8 MB, free: 9.297 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.911e-06/0.3063, allocations: 0 / 490.8 MB, free: 9.297 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 8.014e-05/0.3064, allocations: 121.8 kB / 490.9 MB, free: 9.168 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.414e-05/0.3064, allocations: 37.55 kB / 490.9 MB, free: 9.125 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.98e-05/0.3064, allocations: 15.86 kB / 490.9 MB, free: 9.105 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.3065, allocations: 4.031 kB / 490.9 MB, free: 9.102 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.86e-06/0.3065, allocations: 7.938 kB / 490.9 MB, free: 9.094 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.3065, allocations: 0 / 490.9 MB, free: 9.094 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001523/0.3066, allocations: 169.6 kB / 491.1 MB, free: 8.879 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3066, allocations: 3.938 kB / 491.1 MB, free: 8.875 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.453e-05/0.3067, allocations: 8 kB / 491.1 MB, free: 8.867 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.3067, allocations: 3.984 kB / 491.1 MB, free: 8.863 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.251e-06/0.3067, allocations: 0 / 491.1 MB, free: 8.863 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.3067, allocations: 0 / 491.1 MB, free: 8.863 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.3067, allocations: 4 kB / 491.1 MB, free: 8.859 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001579/0.3069, allocations: 168.2 kB / 491.3 MB, free: 8.676 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.091e-05/0.307, allocations: 92.94 kB / 491.4 MB, free: 8.566 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.351e-05/0.307, allocations: 0 / 491.4 MB, free: 8.566 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.71e-05/0.307, allocations: 7.984 kB / 491.4 MB, free: 8.559 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.809e-05/0.3071, allocations: 8.016 kB / 491.4 MB, free: 8.551 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.28e-06/0.3071, allocations: 4 kB / 491.4 MB, free: 8.547 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.41e-05/0.3072, allocations: 110.2 kB / 491.5 MB, free: 8.441 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3072, allocations: 0 / 491.5 MB, free: 8.441 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002132/0.3074, allocations: 8 kB / 491.5 MB, free: 8.434 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.588e-05/0.3075, allocations: 99.25 kB / 491.6 MB, free: 8.324 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000119/0.3076, allocations: 27.98 kB / 491.6 MB, free: 8.297 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.3076, allocations: 0 / 491.6 MB, free: 8.297 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.623e-05/0.3077, allocations: 11.94 kB / 491.6 MB, free: 8.285 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002974/0.308, allocations: 19.95 kB / 491.7 MB, free: 8.266 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003215/0.3083, allocations: 211.2 kB / 491.9 MB, free: 8.02 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002424/0.3086, allocations: 0.6926 MB / 492.6 MB, free: 7.301 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.45e-05/0.3086, allocations: 11.44 kB / 492.6 MB, free: 7.289 MB / 362.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3086, allocations: 0 / 492.6 MB, free: 7.289 MB / 362.7 MB Notification: Performance of Templates: time 0.001722/0.3103, allocations: 0.7126 MB / 493.3 MB, free: 6.586 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/SubSample/SubSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches