Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.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.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_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_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008796/0.0008798, allocations: 99.09 kB / 17 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001061/0.001061, allocations: 192.9 kB / 17.9 MB, free: 5.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.572/1.572, allocations: 227.7 MB / 246.4 MB, free: 9.809 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002641/0.0002641, allocations: 8 kB / 307.1 MB, free: 0.9297 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1154, allocations: 51.53 MB / 358.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.001728/0.1171, allocations: 1.289 MB / 359.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008013/0.118, allocations: 0.5264 MB / 360.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.002e-05/0.118, allocations: 0 / 360.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.373e-05/0.1181, allocations: 3.938 kB / 360.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001202/0.1182, allocations: 15.92 kB / 360.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002915/0.1185, allocations: 51.83 kB / 360.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.085e-05/0.1186, allocations: 43.8 kB / 360.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.282e-05/0.1187, allocations: 20.14 kB / 360.6 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.924e-05/0.1188, allocations: 15.94 kB / 360.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.636e-05/0.1189, allocations: 23.86 kB / 360.6 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.296e-05/0.1189, allocations: 0 / 360.6 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.794e-05/0.119, allocations: 8 kB / 360.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.121e-05/0.119, allocations: 7.984 kB / 360.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.08e-05/0.119, allocations: 37.64 kB / 360.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.252e-05/0.1191, allocations: 39.92 kB / 360.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1191, allocations: 0 / 360.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.123e-06/0.1191, allocations: 0 / 360.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.1192, allocations: 4 kB / 360.7 MB, free: 11.3 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.0004148/0.1196, allocations: 367.3 kB / 361.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.1196, allocations: 8.031 kB / 361.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001355/0.1198, allocations: 27.89 kB / 361.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001836/0.12, allocations: 195.4 kB / 361.3 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.403e-05/0.12, allocations: 8 kB / 361.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.096e-05/0.12, allocations: 3.984 kB / 361.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002669/0.1203, allocations: 121.8 kB / 361.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.1203, allocations: 0 / 361.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.185e-06/0.1203, allocations: 0 / 361.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.742e-06/0.1203, allocations: 4 kB / 361.4 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.157e-05/0.1204, allocations: 27.92 kB / 361.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003322/0.1207, allocations: 278.5 kB / 361.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001131/0.1209, allocations: 75.8 kB / 361.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.697e-05/0.1209, allocations: 34.58 kB / 361.9 MB, free: 9.973 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.163e-05/0.121, allocations: 4 kB / 361.9 MB, free: 9.969 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.84e-05/0.121, allocations: 46.42 kB / 361.9 MB, free: 9.914 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.112e-06/0.121, allocations: 0 / 361.9 MB, free: 9.914 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002783/0.1213, allocations: 89.7 kB / 362 MB, free: 9.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.854e-05/0.1214, allocations: 106.8 kB / 362.1 MB, free: 9.691 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001158/0.1215, allocations: 150.3 kB / 362.2 MB, free: 9.535 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.133e-05/0.1215, allocations: 29.64 kB / 362.3 MB, free: 9.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.729e-05/0.1216, allocations: 84.14 kB / 362.4 MB, free: 9.414 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.552e-05/0.1216, allocations: 8.188 kB / 362.4 MB, free: 9.406 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.276e-06/0.1216, allocations: 4 kB / 362.4 MB, free: 9.402 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.1217, allocations: 314.8 kB / 362.7 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.173e-05/0.1218, allocations: 12 kB / 362.7 MB, free: 9.074 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.519e-05/0.1218, allocations: 31.42 kB / 362.7 MB, free: 9.031 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.338e-05/0.1219, allocations: 23.98 kB / 362.7 MB, free: 9.008 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1219, allocations: 0 / 362.7 MB, free: 9.008 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001269/0.122, allocations: 77.48 kB / 362.8 MB, free: 8.926 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.122, allocations: 4 kB / 362.8 MB, free: 8.922 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.122, allocations: 8.062 kB / 362.8 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.1221, allocations: 4 kB / 362.8 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.609e-05/0.1221, allocations: 15.92 kB / 362.8 MB, free: 8.895 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.1222, allocations: 0 / 362.8 MB, free: 8.895 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.926e-05/0.1222, allocations: 4 kB / 362.8 MB, free: 8.891 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.622e-06/0.1222, allocations: 0 / 362.8 MB, free: 8.891 MB / 302.1 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 8.496e-05/0.1223, allocations: 121.8 kB / 363 MB, free: 8.762 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.324e-05/0.1224, allocations: 53.5 kB / 363 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.709e-05/0.1224, allocations: 19.92 kB / 363 MB, free: 8.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.1224, allocations: 0 / 363 MB, free: 8.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.1224, allocations: 4 kB / 363 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.1225, allocations: 0 / 363 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001679/0.1226, allocations: 169.7 kB / 363.2 MB, free: 8.461 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1226, allocations: 0 / 363.2 MB, free: 8.461 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.964e-05/0.1227, allocations: 11.98 kB / 363.2 MB, free: 8.449 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.1227, allocations: 0 / 363.2 MB, free: 8.449 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.348e-06/0.1227, allocations: 3.953 kB / 363.2 MB, free: 8.445 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.1227, allocations: 4 kB / 363.2 MB, free: 8.441 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1227, allocations: 4 kB / 363.2 MB, free: 8.438 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001753/0.1229, allocations: 181.1 kB / 363.4 MB, free: 8.238 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.041e-05/0.123, allocations: 89 kB / 363.5 MB, free: 8.133 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.911e-05/0.123, allocations: 8 kB / 363.5 MB, free: 8.125 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.785e-05/0.1231, allocations: 11.94 kB / 363.5 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.552e-05/0.1231, allocations: 4 kB / 363.5 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.597e-06/0.1231, allocations: 0 / 363.5 MB, free: 8.109 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.812e-05/0.1232, allocations: 115.2 kB / 363.6 MB, free: 8 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1232, allocations: 3.938 kB / 363.6 MB, free: 7.996 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002288/0.1234, allocations: 4 kB / 363.6 MB, free: 7.992 MB / 302.1 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 9.727e-05/0.1235, allocations: 99.25 kB / 363.7 MB, free: 7.887 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001442/0.1237, allocations: 39.92 kB / 363.8 MB, free: 7.848 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.1237, allocations: 0 / 363.8 MB, free: 7.848 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.758e-05/0.1237, allocations: 11.98 kB / 363.8 MB, free: 7.836 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003618/0.1241, allocations: 32.08 kB / 363.8 MB, free: 7.805 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003413/0.1245, allocations: 206.7 kB / 364 MB, free: 7.566 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002569/0.1247, allocations: 0.6926 MB / 364.7 MB, free: 6.848 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.679e-05/0.1248, allocations: 8.188 kB / 364.7 MB, free: 6.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.84e-05/0.1248, allocations: 11.44 kB / 364.7 MB, free: 6.828 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1248, allocations: 0 / 364.7 MB, free: 6.828 MB / 302.1 MB Notification: Performance of Templates: time 0.002991/0.1278, allocations: 0.5707 MB / 365.3 MB, free: 6.266 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.y,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,time