Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001393/0.001393, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001383/0.001383, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.473/1.473, allocations: 227.7 MB / 247.7 MB, free: 10.37 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001956/0.001956, allocations: 66.06 kB / 307.9 MB, free: 0.5234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1304, allocations: 50.54 MB / 358.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.003532/0.134, allocations: 1.562 MB / 360 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00119/0.1352, allocations: 0.557 MB / 360.5 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001114/0.1354, allocations: 8 kB / 360.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.317e-05/0.1354, allocations: 3.938 kB / 360.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000146/0.1356, allocations: 11.86 kB / 360.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003805/0.136, allocations: 59.81 kB / 360.6 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001135/0.1361, allocations: 47.8 kB / 360.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001104/0.1362, allocations: 20.16 kB / 360.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001283/0.1364, allocations: 35.84 kB / 360.7 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.243e-05/0.1364, allocations: 23.86 kB / 360.8 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.64e-05/0.1365, allocations: 4 kB / 360.8 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.106e-05/0.1365, allocations: 8 kB / 360.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.082e-05/0.1366, allocations: 15.92 kB / 360.8 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.415e-05/0.1366, allocations: 23.81 kB / 360.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001612/0.1368, allocations: 63.73 kB / 360.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1368, allocations: 0 / 360.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1368, allocations: 0 / 360.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.65e-06/0.1368, allocations: 0 / 360.9 MB, free: 11.51 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.0006281/0.1375, allocations: 387.3 kB / 361.2 MB, free: 11.09 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.1375, allocations: 8.031 kB / 361.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001916/0.1377, allocations: 20.83 kB / 361.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002662/0.138, allocations: 203.8 kB / 361.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.233e-06/0.138, allocations: 384 / 361.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.256e-05/0.138, allocations: 11.94 kB / 361.5 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003432/0.1384, allocations: 105 kB / 361.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.1384, allocations: 0 / 361.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.1384, allocations: 3.984 kB / 361.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.1384, allocations: 0 / 361.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.139e-05/0.1385, allocations: 19.98 kB / 361.6 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003946/0.1389, allocations: 269.7 kB / 361.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.526e-05/0.139, allocations: 37.22 kB / 361.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.922e-05/0.1391, allocations: 29.7 kB / 361.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.661e-05/0.1391, allocations: 0 / 361.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.688e-05/0.1392, allocations: 38.56 kB / 362 MB, free: 10.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 8.62e-07/0.1392, allocations: 0 / 362 MB, free: 10.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003102/0.1395, allocations: 69.52 kB / 362 MB, free: 10.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.285e-05/0.1396, allocations: 77.11 kB / 362.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001592/0.1397, allocations: 149.7 kB / 362.3 MB, free: 9.891 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.639e-05/0.1398, allocations: 25.7 kB / 362.3 MB, free: 9.859 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.249e-05/0.1398, allocations: 96.33 kB / 362.4 MB, free: 9.762 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.602e-05/0.1399, allocations: 7.906 kB / 362.4 MB, free: 9.754 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.989e-05/0.1399, allocations: 17.7 kB / 362.4 MB, free: 9.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.1401, allocations: 318.8 kB / 362.7 MB, free: 9.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.355e-05/0.1401, allocations: 11.98 kB / 362.7 MB, free: 9.398 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.644e-05/0.1402, allocations: 17.72 kB / 362.7 MB, free: 9.375 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.636e-05/0.1403, allocations: 33.7 kB / 362.8 MB, free: 9.336 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1403, allocations: 0 / 362.8 MB, free: 9.336 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001349/0.1404, allocations: 61.53 kB / 362.8 MB, free: 9.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.1405, allocations: 11.92 kB / 362.9 MB, free: 9.258 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.1405, allocations: 4 kB / 362.9 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.1405, allocations: 0 / 362.9 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.613e-05/0.1406, allocations: 4 kB / 362.9 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.1406, allocations: 0 / 362.9 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.175e-05/0.1406, allocations: 12 kB / 362.9 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.957e-05/0.1407, allocations: 4 kB / 362.9 MB, free: 9.234 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001012/0.1408, allocations: 113.8 kB / 363 MB, free: 9.113 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.465e-05/0.1409, allocations: 41.61 kB / 363 MB, free: 9.066 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.597e-05/0.1409, allocations: 11.86 kB / 363 MB, free: 9.051 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.1409, allocations: 0 / 363 MB, free: 9.051 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.1409, allocations: 0 / 363 MB, free: 9.051 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.702e-06/0.1409, allocations: 3.938 kB / 363 MB, free: 9.047 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002149/0.1412, allocations: 173.7 kB / 363.2 MB, free: 8.828 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.1412, allocations: 0 / 363.2 MB, free: 8.828 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.447e-05/0.1412, allocations: 7.938 kB / 363.2 MB, free: 8.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.1412, allocations: 0 / 363.2 MB, free: 8.82 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.1412, allocations: 4 kB / 363.2 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.1413, allocations: 3.984 kB / 363.2 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1413, allocations: 0 / 363.2 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000242/0.1415, allocations: 164.2 kB / 363.4 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.11e-05/0.1416, allocations: 93 kB / 363.5 MB, free: 8.523 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.685e-05/0.1416, allocations: 0 / 363.5 MB, free: 8.523 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.754e-05/0.1417, allocations: 4 kB / 363.5 MB, free: 8.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.228e-05/0.1418, allocations: 7.922 kB / 363.5 MB, free: 8.512 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.196e-06/0.1418, allocations: 0 / 363.5 MB, free: 8.512 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.927e-05/0.1419, allocations: 112.6 kB / 363.6 MB, free: 8.402 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1419, allocations: 3.938 kB / 363.6 MB, free: 8.398 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002217/0.1421, allocations: 4.031 kB / 363.6 MB, free: 8.395 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001483/0.1423, allocations: 103.2 kB / 363.7 MB, free: 8.285 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001655/0.1424, allocations: 15.98 kB / 363.7 MB, free: 8.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1425, allocations: 0 / 363.7 MB, free: 8.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.679e-05/0.1425, allocations: 12 kB / 363.7 MB, free: 8.258 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005007/0.143, allocations: 26.08 kB / 363.8 MB, free: 8.234 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004263/0.1434, allocations: 185.4 kB / 363.9 MB, free: 8.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004239/0.1439, allocations: 0.6885 MB / 364.6 MB, free: 7.305 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.796e-05/0.1439, allocations: 19.36 kB / 364.7 MB, free: 7.285 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1439, allocations: 4 kB / 364.7 MB, free: 7.281 MB / 302.1 MB Notification: Performance of Templates: time 0.002733/0.1467, allocations: 0.7812 MB / 365.4 MB, free: 6.504 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches