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.0008874/0.0008874, allocations: 88.97 kB / 16.3 MB, free: 5.996 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.0008642/0.0008646, allocations: 186.9 kB / 17.2 MB, free: 5.91 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.273/1.273, allocations: 223.2 MB / 241.1 MB, free: 5.441 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002711/0.0002713, allocations: 8.312 kB / 300.7 MB, free: 6.055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1045, allocations: 50.42 MB / 351.1 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.002294/0.1068, allocations: 1.255 MB / 352.4 MB, free: 10.46 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001006/0.1079, allocations: 463.2 kB / 352.8 MB, free: 10.01 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.53e-05/0.108, allocations: 3.938 kB / 352.8 MB, free: 10 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.985e-05/0.1081, allocations: 7.984 kB / 352.9 MB, free: 9.996 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001572/0.1082, allocations: 11.86 kB / 352.9 MB, free: 9.984 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003332/0.1086, allocations: 43.89 kB / 352.9 MB, free: 9.941 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001114/0.1087, allocations: 23.97 kB / 352.9 MB, free: 9.918 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.1088, allocations: 16.45 kB / 353 MB, free: 9.902 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.783e-05/0.1089, allocations: 27.84 kB / 353 MB, free: 9.875 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.931e-05/0.109, allocations: 15.88 kB / 353 MB, free: 9.859 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.532e-05/0.109, allocations: 4 kB / 353 MB, free: 9.855 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.253e-05/0.109, allocations: 0 / 353 MB, free: 9.855 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.622e-05/0.1091, allocations: 11.92 kB / 353 MB, free: 9.844 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.089e-05/0.1091, allocations: 33.7 kB / 353 MB, free: 9.805 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 8.933e-05/0.1092, allocations: 39.86 kB / 353.1 MB, free: 9.766 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.1092, allocations: 0 / 353.1 MB, free: 9.766 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1092, allocations: 8 kB / 353.1 MB, free: 9.758 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.1093, allocations: 0 / 353.1 MB, free: 9.758 MB / 286.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.0005472/0.1098, allocations: 367 kB / 353.4 MB, free: 9.352 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.1099, allocations: 8.031 kB / 353.5 MB, free: 9.344 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.184e-05/0.1099, allocations: 15.86 kB / 353.5 MB, free: 9.328 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002313/0.1101, allocations: 190.8 kB / 353.7 MB, free: 9.102 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.179e-05/0.1102, allocations: 4 kB / 353.7 MB, free: 9.098 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.366e-05/0.1102, allocations: 0 / 353.7 MB, free: 9.098 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003216/0.1105, allocations: 113 kB / 353.8 MB, free: 8.969 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.387e-06/0.1105, allocations: 0 / 353.8 MB, free: 8.969 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.1106, allocations: 3.953 kB / 353.8 MB, free: 8.965 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.1106, allocations: 0 / 353.8 MB, free: 8.965 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001146/0.1107, allocations: 31.92 kB / 353.8 MB, free: 8.934 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003757/0.1111, allocations: 257.8 kB / 354.1 MB, free: 8.629 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001034/0.1112, allocations: 41.16 kB / 354.1 MB, free: 8.57 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.156e-05/0.1112, allocations: 7.984 kB / 354.1 MB, free: 8.562 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.154e-05/0.1113, allocations: 46.44 kB / 354.2 MB, free: 8.508 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 1.413e-06/0.1113, allocations: 0 / 354.2 MB, free: 8.508 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003081/0.1116, allocations: 69.84 kB / 354.2 MB, free: 8.434 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.115e-05/0.1117, allocations: 89.09 kB / 354.3 MB, free: 8.328 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001458/0.1119, allocations: 136.8 kB / 354.4 MB, free: 8.188 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.685e-05/0.1119, allocations: 25.7 kB / 354.5 MB, free: 8.156 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.069e-05/0.112, allocations: 96.12 kB / 354.6 MB, free: 8.059 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.561e-05/0.112, allocations: 3.906 kB / 354.6 MB, free: 8.055 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.256e-06/0.112, allocations: 0 / 354.6 MB, free: 8.055 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.1121, allocations: 318.8 kB / 354.9 MB, free: 7.734 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.615e-05/0.1122, allocations: 15.98 kB / 354.9 MB, free: 7.719 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.784e-05/0.1122, allocations: 17.72 kB / 354.9 MB, free: 7.695 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.232e-05/0.1123, allocations: 19.92 kB / 354.9 MB, free: 7.676 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1123, allocations: 0 / 354.9 MB, free: 7.676 MB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001626/0.1125, allocations: 61.7 kB / 355 MB, free: 7.609 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.1125, allocations: 4 kB / 355 MB, free: 7.605 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.1125, allocations: 4 kB / 355 MB, free: 7.602 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.1126, allocations: 0 / 355 MB, free: 7.602 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.041e-05/0.1126, allocations: 11.92 kB / 355 MB, free: 7.59 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.1127, allocations: 0 / 355 MB, free: 7.59 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.613e-05/0.1127, allocations: 4 kB / 355 MB, free: 7.586 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.692e-06/0.1127, allocations: 0 / 355 MB, free: 7.586 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.167e-05/0.1128, allocations: 121.9 kB / 355.1 MB, free: 7.457 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.785e-05/0.1129, allocations: 41.55 kB / 355.2 MB, free: 7.41 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.636e-05/0.1129, allocations: 11.88 kB / 355.2 MB, free: 7.395 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/0.113, allocations: 3.938 kB / 355.2 MB, free: 7.391 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.113, allocations: 4 kB / 355.2 MB, free: 7.387 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.267e-06/0.113, allocations: 0 / 355.2 MB, free: 7.387 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002077/0.1132, allocations: 165.7 kB / 355.4 MB, free: 7.176 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1132, allocations: 0 / 355.4 MB, free: 7.176 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.135e-05/0.1133, allocations: 16.02 kB / 355.4 MB, free: 7.16 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.1133, allocations: 0 / 355.4 MB, free: 7.16 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.1133, allocations: 3.953 kB / 355.4 MB, free: 7.156 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.1133, allocations: 0 / 355.4 MB, free: 7.156 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1133, allocations: 3.938 kB / 355.4 MB, free: 7.152 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002123/0.1135, allocations: 178 kB / 355.5 MB, free: 6.953 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.665e-05/0.1136, allocations: 93 kB / 355.6 MB, free: 6.844 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.104e-05/0.1137, allocations: 3.953 kB / 355.6 MB, free: 6.84 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.995e-05/0.1138, allocations: 4 kB / 355.6 MB, free: 6.836 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.626e-05/0.1138, allocations: 7.984 kB / 355.7 MB, free: 6.828 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-06/0.1138, allocations: 0 / 355.7 MB, free: 6.828 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.332e-05/0.1139, allocations: 111.2 kB / 355.8 MB, free: 6.719 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.114, allocations: 3.938 kB / 355.8 MB, free: 6.715 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003482/0.1143, allocations: 8.031 kB / 355.8 MB, free: 6.707 MB / 286.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 (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.0001109/0.1144, allocations: 95.25 kB / 355.9 MB, free: 6.605 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001653/0.1146, allocations: 27.92 kB / 355.9 MB, free: 6.578 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.1146, allocations: 4 kB / 355.9 MB, free: 6.574 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 5.303e-05/0.1147, allocations: 8.109 kB / 355.9 MB, free: 6.566 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003274/0.115, allocations: 25.62 kB / 355.9 MB, free: 6.543 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000364/0.1154, allocations: 187.8 kB / 356.1 MB, free: 6.328 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002605/0.1157, allocations: 0.6927 MB / 356.8 MB, free: 5.609 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.461e-05/0.1157, allocations: 7.938 kB / 356.8 MB, free: 5.602 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.646e-05/0.1157, allocations: 11.42 kB / 356.8 MB, free: 5.59 MB / 286.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1158, allocations: 0 / 356.8 MB, free: 5.59 MB / 286.1 MB Notification: Performance of Templates: time 0.002831/0.1186, allocations: 0.4997 MB / 357.3 MB, free: 5.098 MB / 286.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","../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