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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001071/0.001071, allocations: 180.3 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.209/1.209, allocations: 223.2 MB / 240.3 MB, free: 10.13 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008296/0.0008296, allocations: 86.72 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002589/0.000259, allocations: 11.98 kB / 351.1 MB, free: 15.11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2248/0.2251, allocations: 50.4 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08722/0.3123, allocations: 77.04 MB / 478.5 MB, free: 3.438 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002273/0.3126, allocations: 82.55 kB / 478.6 MB, free: 3.359 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004108/0.3167, allocations: 1.522 MB / 480.1 MB, free: 1.848 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.399e-06/0.3168, allocations: 0 / 480.1 MB, free: 1.848 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.306e-06/0.3168, allocations: 7.938 kB / 480.1 MB, free: 1.84 MB / 346.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.0003421/0.3171, allocations: 367 kB / 480.5 MB, free: 1.434 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.271e-05/0.3172, allocations: 8.031 kB / 480.5 MB, free: 1.426 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.021e-05/0.3172, allocations: 11.86 kB / 480.5 MB, free: 1.414 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001583/0.3174, allocations: 193.8 kB / 480.7 MB, free: 1.188 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.995e-06/0.3174, allocations: 0 / 480.7 MB, free: 1.188 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.26e-05/0.3174, allocations: 4 kB / 480.7 MB, free: 1.184 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002292/0.3176, allocations: 105 kB / 480.8 MB, free: 1.062 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.702e-06/0.3177, allocations: 0 / 480.8 MB, free: 1.062 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.086e-05/0.3177, allocations: 7.953 kB / 480.8 MB, free: 1.055 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.3177, allocations: 7.938 kB / 480.8 MB, free: 1.047 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.371e-05/0.3178, allocations: 19.92 kB / 480.9 MB, free: 1.027 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003124/0.3181, allocations: 261.8 kB / 481.1 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.174e-05/0.3182, allocations: 57.14 kB / 481.2 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.574e-05/0.3182, allocations: 3.984 kB / 481.2 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.962e-05/0.3182, allocations: 34.52 kB / 481.2 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.182e-06/0.3182, allocations: 0 / 481.2 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.000213/0.3184, allocations: 81.67 kB / 481.3 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.417e-05/0.3185, allocations: 77.11 kB / 481.4 MB, free: 428 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.773e-05/0.3186, allocations: 129 kB / 481.5 MB, free: 292 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.16e-05/0.3186, allocations: 25.7 kB / 481.5 MB, free: 260 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.632e-05/0.3187, allocations: 92.12 kB / 481.6 MB, free: 164 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.025e-05/0.3187, allocations: 160 / 481.6 MB, free: 164 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.806e-06/0.3187, allocations: 4 kB / 481.6 MB, free: 160 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.781e-05/0.3188, allocations: 314.8 kB / 481.9 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.819e-05/0.3188, allocations: 11.98 kB / 481.9 MB, free: 15.83 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.062e-05/0.3189, allocations: 21.66 kB / 481.9 MB, free: 15.8 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.172e-05/0.3189, allocations: 20.05 kB / 482 MB, free: 15.78 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.3189, allocations: 0 / 482 MB, free: 15.78 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001049/0.319, allocations: 57.59 kB / 482 MB, free: 15.72 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.3191, allocations: 7.953 kB / 482 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.3191, allocations: 0 / 482 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.3191, allocations: 4 kB / 482 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.525e-05/0.3192, allocations: 11.92 kB / 482 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-06/0.3192, allocations: 4.062 kB / 482 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.4e-05/0.3192, allocations: 4 kB / 482 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.012e-06/0.3192, allocations: 0 / 482 MB, free: 15.69 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.206e-05/0.3193, allocations: 113.8 kB / 482.2 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.29e-05/0.3194, allocations: 41.59 kB / 482.2 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.045e-05/0.3194, allocations: 15.83 kB / 482.2 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.3194, allocations: 3.984 kB / 482.2 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.055e-06/0.3194, allocations: 0 / 482.2 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.3194, allocations: 8.031 kB / 482.2 MB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001429/0.3196, allocations: 165.7 kB / 482.4 MB, free: 15.28 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.3196, allocations: 0 / 482.4 MB, free: 15.28 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.503e-05/0.3196, allocations: 7.984 kB / 482.4 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.3196, allocations: 15.88 kB / 482.4 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-06/0.3197, allocations: 0 / 482.4 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.3197, allocations: 7.891 kB / 482.4 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3197, allocations: 0 / 482.4 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001656/0.3198, allocations: 178 kB / 482.6 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.377e-05/0.3199, allocations: 89 kB / 482.7 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.453e-05/0.3199, allocations: 3.953 kB / 482.7 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.223e-05/0.32, allocations: 4 kB / 482.7 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.018e-05/0.32, allocations: 4.031 kB / 482.7 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.418e-06/0.32, allocations: 4 kB / 482.7 MB, free: 14.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.791e-05/0.3201, allocations: 114.2 kB / 482.8 MB, free: 14.82 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3201, allocations: 0 / 482.8 MB, free: 14.82 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002104/0.3203, allocations: 4 kB / 482.8 MB, free: 14.81 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 8.483e-05/0.3204, allocations: 99.19 kB / 482.9 MB, free: 14.71 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001256/0.3205, allocations: 31.98 kB / 482.9 MB, free: 14.68 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.3206, allocations: 0 / 482.9 MB, free: 14.68 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.59e-05/0.3206, allocations: 11.98 kB / 483 MB, free: 14.66 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002252/0.3208, allocations: 19.95 kB / 483 MB, free: 14.64 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002852/0.3211, allocations: 189.8 kB / 483.2 MB, free: 14.42 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002317/0.3214, allocations: 0.6887 MB / 483.8 MB, free: 13.71 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.669e-05/0.3214, allocations: 0 / 483.8 MB, free: 13.71 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.484e-05/0.3214, allocations: 15.42 kB / 483.9 MB, free: 13.69 MB / 362.7 MB Notification: Performance of SimCode: time 2.11e-07/0.3214, allocations: 0 / 483.9 MB, free: 13.69 MB / 362.7 MB Notification: Performance of Templates: time 0.002113/0.3236, allocations: 0.4997 MB / 484.4 MB, free: 13.2 MB / 362.7 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","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,time