Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001021/0.001021, allocations: 100.7 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001137/0.001137, allocations: 199.3 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.2 MB / 245.9 MB, free: 10.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000254/0.0002541, allocations: 4 kB / 306.6 MB, free: 1.426 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1066, allocations: 51.5 MB / 358.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.001747/0.1084, allocations: 1.25 MB / 359.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009026/0.1093, allocations: 0.503 MB / 359.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.728e-05/0.1094, allocations: 0 / 359.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.353e-05/0.1095, allocations: 3.938 kB / 359.8 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001118/0.1096, allocations: 15.97 kB / 359.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002548/0.1099, allocations: 43.84 kB / 359.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.315e-05/0.11, allocations: 31.89 kB / 359.9 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.602e-05/0.1101, allocations: 16.16 kB / 359.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.404e-05/0.1102, allocations: 23.91 kB / 360 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.626e-05/0.1102, allocations: 23.88 kB / 360 MB, free: 12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.919e-06/0.1102, allocations: 0 / 360 MB, free: 12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.055e-05/0.1103, allocations: 11.92 kB / 360 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.733e-05/0.1103, allocations: 7.938 kB / 360 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.59e-05/0.1104, allocations: 37.64 kB / 360 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 8.254e-05/0.1104, allocations: 39.92 kB / 360.1 MB, free: 11.9 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.1105, allocations: 0 / 360.1 MB, free: 11.9 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1105, allocations: 0 / 360.1 MB, free: 11.9 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.867e-06/0.1105, allocations: 0 / 360.1 MB, free: 11.9 MB / 302.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.0005601/0.111, allocations: 379.3 kB / 360.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.1111, allocations: 8.031 kB / 360.4 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001555/0.1112, allocations: 15.91 kB / 360.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002007/0.1114, allocations: 186.9 kB / 360.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.253e-05/0.1115, allocations: 7.953 kB / 360.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.42e-05/0.1115, allocations: 4 kB / 360.7 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002514/0.1117, allocations: 113 kB / 360.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.099e-06/0.1118, allocations: 0 / 360.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.1118, allocations: 4 kB / 360.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.1118, allocations: 0 / 360.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.884e-05/0.1119, allocations: 23.92 kB / 360.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003671/0.1122, allocations: 265.8 kB / 361.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.218e-05/0.1123, allocations: 41.22 kB / 361.1 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.932e-05/0.1124, allocations: 11.98 kB / 361.1 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.426e-05/0.1124, allocations: 34.56 kB / 361.1 MB, free: 10.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 9.32e-07/0.1124, allocations: 0 / 361.1 MB, free: 10.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002424/0.1127, allocations: 69.53 kB / 361.2 MB, free: 10.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.191e-05/0.1127, allocations: 85.34 kB / 361.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000124/0.1128, allocations: 144.4 kB / 361.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.281e-05/0.1129, allocations: 25.7 kB / 361.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.155e-05/0.1129, allocations: 92.06 kB / 361.5 MB, free: 10.19 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.105e-05/0.1129, allocations: 3.906 kB / 361.6 MB, free: 10.19 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.236e-06/0.113, allocations: 8 kB / 361.6 MB, free: 10.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.1131, allocations: 314.8 kB / 361.9 MB, free: 9.863 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.922e-05/0.1131, allocations: 11.98 kB / 361.9 MB, free: 9.852 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.246e-05/0.1132, allocations: 21.72 kB / 361.9 MB, free: 9.824 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.699e-05/0.1132, allocations: 11.98 kB / 361.9 MB, free: 9.812 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.1132, allocations: 0 / 361.9 MB, free: 9.812 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001134/0.1134, allocations: 65.72 kB / 362 MB, free: 9.742 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/0.1134, allocations: 4 kB / 362 MB, free: 9.738 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.876e-06/0.1134, allocations: 0 / 362 MB, free: 9.738 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.925e-06/0.1134, allocations: 0 / 362 MB, free: 9.738 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.872e-05/0.1135, allocations: 11.98 kB / 362 MB, free: 9.727 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.379e-06/0.1135, allocations: 3.984 kB / 362 MB, free: 9.723 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.467e-05/0.1135, allocations: 4 kB / 362 MB, free: 9.719 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.559e-06/0.1135, allocations: 3.938 kB / 362 MB, free: 9.715 MB / 302.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 9.171e-05/0.1136, allocations: 121.8 kB / 362.1 MB, free: 9.586 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.583e-05/0.1137, allocations: 53.58 kB / 362.2 MB, free: 9.527 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.831e-05/0.1137, allocations: 11.83 kB / 362.2 MB, free: 9.512 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-06/0.1137, allocations: 0 / 362.2 MB, free: 9.512 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.1137, allocations: 0 / 362.2 MB, free: 9.512 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.1137, allocations: 0 / 362.2 MB, free: 9.512 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001707/0.1139, allocations: 177.5 kB / 362.4 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.71e-07/0.1139, allocations: 0 / 362.4 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.489e-05/0.114, allocations: 11.98 kB / 362.4 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.114, allocations: 0 / 362.4 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.882e-06/0.114, allocations: 8.031 kB / 362.4 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.114, allocations: 0 / 362.4 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.114, allocations: 0 / 362.4 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002413/0.1143, allocations: 181.9 kB / 362.6 MB, free: 9.066 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.767e-05/0.1143, allocations: 97.03 kB / 362.7 MB, free: 8.953 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.074e-05/0.1143, allocations: 0 / 362.7 MB, free: 8.953 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.291e-05/0.1144, allocations: 4 kB / 362.7 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.573e-05/0.1144, allocations: 0 / 362.7 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.005e-06/0.1144, allocations: 0 / 362.7 MB, free: 8.949 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.837e-05/0.1145, allocations: 111.2 kB / 362.8 MB, free: 8.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1145, allocations: 0 / 362.8 MB, free: 8.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001993/0.1147, allocations: 4 kB / 362.8 MB, free: 8.836 MB / 302.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 8.474e-05/0.1148, allocations: 101.9 kB / 362.9 MB, free: 8.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001003/0.1149, allocations: 27.92 kB / 362.9 MB, free: 8.703 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.082e-06/0.1149, allocations: 0 / 362.9 MB, free: 8.703 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.623e-05/0.115, allocations: 11.98 kB / 362.9 MB, free: 8.691 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002194/0.1152, allocations: 19.97 kB / 362.9 MB, free: 8.672 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002497/0.1155, allocations: 185.6 kB / 363.1 MB, free: 8.457 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003044/0.1158, allocations: 0.6887 MB / 363.8 MB, free: 7.742 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.191e-05/0.1158, allocations: 11.98 kB / 363.8 MB, free: 7.73 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.077e-05/0.1158, allocations: 7.438 kB / 363.8 MB, free: 7.723 MB / 302.1 MB Notification: Performance of SimCode: time 1.553e-06/0.1159, allocations: 0 / 363.8 MB, free: 7.723 MB / 302.1 MB Notification: Performance of Templates: time 0.002664/0.1185, allocations: 0.4994 MB / 364.3 MB, free: 7.234 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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