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.0008217/0.0008216, allocations: 98.28 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009306/0.0009306, allocations: 194.5 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.413/1.413, allocations: 227.7 MB / 246.4 MB, free: 11.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002113/0.0002114, allocations: 8 kB / 307.1 MB, free: 1.168 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1369, allocations: 51.53 MB / 358.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.002098/0.1391, allocations: 1.262 MB / 359.9 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001052/0.1402, allocations: 0.5303 MB / 360.4 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001385/0.1403, allocations: 4 kB / 360.4 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.49e-05/0.1404, allocations: 3.984 kB / 360.4 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001856/0.1406, allocations: 11.86 kB / 360.4 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003534/0.1409, allocations: 47.89 kB / 360.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000105/0.1411, allocations: 39.86 kB / 360.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.836e-05/0.1412, allocations: 24.14 kB / 360.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001246/0.1413, allocations: 31.84 kB / 360.6 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.235e-05/0.1414, allocations: 19.86 kB / 360.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.691e-05/0.1414, allocations: 4 kB / 360.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.419e-05/0.1414, allocations: 4 kB / 360.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.433e-05/0.1415, allocations: 4 kB / 360.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.438e-05/0.1415, allocations: 37.64 kB / 360.7 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000107/0.1416, allocations: 39.91 kB / 360.7 MB, free: 11.56 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1417, allocations: 4 kB / 360.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1417, allocations: 0 / 360.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.74e-06/0.1417, allocations: 0 / 360.7 MB, free: 11.55 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.0005221/0.1422, allocations: 375.2 kB / 361.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.1423, allocations: 8.031 kB / 361.1 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001514/0.1424, allocations: 23.89 kB / 361.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000204/0.1426, allocations: 194.6 kB / 361.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.329e-05/0.1427, allocations: 8 kB / 361.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.286e-05/0.1427, allocations: 0 / 361.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003039/0.143, allocations: 113 kB / 361.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.143, allocations: 3.984 kB / 361.4 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.918e-06/0.143, allocations: 0 / 361.4 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.143, allocations: 0 / 361.4 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.101e-05/0.1431, allocations: 27.98 kB / 361.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003691/0.1435, allocations: 261.7 kB / 361.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.15e-05/0.1436, allocations: 49.16 kB / 361.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.29e-05/0.1437, allocations: 29.7 kB / 361.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.083e-05/0.1437, allocations: 0 / 361.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.451e-05/0.1437, allocations: 34.56 kB / 361.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.1437, allocations: 0 / 361.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002527/0.144, allocations: 77.64 kB / 361.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.872e-05/0.144, allocations: 81.11 kB / 362 MB, free: 10.08 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.1442, allocations: 142.3 kB / 362.1 MB, free: 9.934 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.186e-05/0.1442, allocations: 25.7 kB / 362.1 MB, free: 9.902 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.77e-05/0.1443, allocations: 99.97 kB / 362.2 MB, free: 9.801 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.29e-05/0.1443, allocations: 0 / 362.2 MB, free: 9.801 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.886e-06/0.1443, allocations: 0 / 362.2 MB, free: 9.801 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.1444, allocations: 323 kB / 362.5 MB, free: 9.477 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.117e-05/0.1445, allocations: 7.984 kB / 362.5 MB, free: 9.469 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.342e-05/0.1445, allocations: 25.66 kB / 362.6 MB, free: 9.438 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.701e-05/0.1446, allocations: 11.98 kB / 362.6 MB, free: 9.426 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.1446, allocations: 4.062 kB / 362.6 MB, free: 9.422 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001207/0.1447, allocations: 65.48 kB / 362.6 MB, free: 9.352 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.1447, allocations: 8 kB / 362.7 MB, free: 9.344 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.902e-06/0.1448, allocations: 0 / 362.7 MB, free: 9.344 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.123e-05/0.1448, allocations: 0 / 362.7 MB, free: 9.344 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.393e-05/0.1448, allocations: 7.984 kB / 362.7 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.1449, allocations: 4 kB / 362.7 MB, free: 9.332 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.554e-05/0.1449, allocations: 4.062 kB / 362.7 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.08e-05/0.1449, allocations: 4 kB / 362.7 MB, free: 9.324 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.038e-05/0.145, allocations: 121.8 kB / 362.8 MB, free: 9.195 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.208e-05/0.1451, allocations: 41.56 kB / 362.8 MB, free: 9.148 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.35e-05/0.1451, allocations: 7.875 kB / 362.8 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.1451, allocations: 4 kB / 362.8 MB, free: 9.133 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.1451, allocations: 3.984 kB / 362.8 MB, free: 9.129 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.1452, allocations: 0 / 362.8 MB, free: 9.129 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001703/0.1453, allocations: 169.7 kB / 363 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1453, allocations: 4 kB / 363 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.369e-05/0.1454, allocations: 4 kB / 363 MB, free: 8.906 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.86e-06/0.1454, allocations: 3.953 kB / 363 MB, free: 8.902 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.654e-06/0.1454, allocations: 0 / 363 MB, free: 8.902 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.1454, allocations: 4 kB / 363 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.1454, allocations: 0 / 363 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001721/0.1456, allocations: 168.2 kB / 363.2 MB, free: 8.715 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.936e-05/0.1457, allocations: 93 kB / 363.3 MB, free: 8.605 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.689e-05/0.1457, allocations: 3.953 kB / 363.3 MB, free: 8.602 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.971e-05/0.1458, allocations: 8 kB / 363.3 MB, free: 8.594 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.244e-05/0.1458, allocations: 3.984 kB / 363.3 MB, free: 8.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.666e-06/0.1458, allocations: 0 / 363.3 MB, free: 8.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.215e-05/0.1459, allocations: 115.4 kB / 363.4 MB, free: 8.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1459, allocations: 4.031 kB / 363.4 MB, free: 8.477 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002275/0.1462, allocations: 4 kB / 363.4 MB, free: 8.473 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 9.827e-05/0.1463, allocations: 103.2 kB / 363.5 MB, free: 8.363 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001402/0.1464, allocations: 27.92 kB / 363.5 MB, free: 8.336 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.1464, allocations: 0 / 363.5 MB, free: 8.336 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.032e-05/0.1465, allocations: 16.06 kB / 363.6 MB, free: 8.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003948/0.1469, allocations: 16.02 kB / 363.6 MB, free: 8.305 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003495/0.1472, allocations: 185.8 kB / 363.8 MB, free: 8.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002334/0.1475, allocations: 0.6887 MB / 364.4 MB, free: 7.375 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.879e-05/0.1475, allocations: 7.984 kB / 364.5 MB, free: 7.367 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.186e-05/0.1476, allocations: 15.42 kB / 364.5 MB, free: 7.352 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1476, allocations: 0 / 364.5 MB, free: 7.352 MB / 302.1 MB Notification: Performance of Templates: time 0.002885/0.1505, allocations: 0.4967 MB / 365 MB, free: 6.863 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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.continuous,sine.f,sine.offset,sine.phase,sine.startTime,time