Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001643/0.001642, 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.001933/0.001933, 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.553/1.553, allocations: 227.7 MB / 247.7 MB, free: 10.33 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.002126/0.002126, allocations: 64.64 kB / 307.9 MB, free: 488 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1165, allocations: 50.53 MB / 358.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003658/0.1202, allocations: 1.895 MB / 360.3 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002243/0.1225, allocations: 1.286 MB / 361.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001141/0.1226, allocations: 7.938 kB / 361.6 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003018/0.1229, allocations: 71.66 kB / 361.7 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003406/0.1233, allocations: 127.4 kB / 361.8 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000636/0.1239, allocations: 227.3 kB / 362 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002392/0.1242, allocations: 179.5 kB / 362.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.1243, allocations: 29.53 kB / 362.2 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001122/0.1244, allocations: 75.7 kB / 362.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001176/0.1245, allocations: 71.69 kB / 362.4 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.527e-05/0.1246, allocations: 8 kB / 362.4 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001479/0.1247, allocations: 75.89 kB / 362.5 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001049/0.1249, allocations: 55.77 kB / 362.5 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001032/0.125, allocations: 79.47 kB / 362.6 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003338/0.1253, allocations: 239.4 kB / 362.8 MB, free: 9.508 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.1253, allocations: 0 / 362.8 MB, free: 9.508 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.1253, allocations: 0 / 362.8 MB, free: 9.508 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.1253, allocations: 0 / 362.8 MB, free: 9.508 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007787/0.1261, allocations: 0.5388 MB / 363.4 MB, free: 8.914 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.332e-05/0.1262, allocations: 8.031 kB / 363.4 MB, free: 8.906 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.374e-05/0.1262, allocations: 28.66 kB / 363.4 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003642/0.1266, allocations: 283.6 kB / 363.7 MB, free: 8.562 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.021e-05/0.1266, allocations: 384 / 363.7 MB, free: 8.562 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.729e-05/0.1267, allocations: 16.11 kB / 363.7 MB, free: 8.547 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003475/0.127, allocations: 159.5 kB / 363.8 MB, free: 8.363 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.127, allocations: 4 kB / 363.9 MB, free: 8.359 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.516e-05/0.127, allocations: 3.984 kB / 363.9 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.1271, allocations: 0 / 363.9 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001176/0.1272, allocations: 39.97 kB / 363.9 MB, free: 8.316 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005621/0.1278, allocations: 390.3 kB / 364.3 MB, free: 7.879 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002621/0.128, allocations: 119.9 kB / 364.4 MB, free: 7.734 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.381e-05/0.1281, allocations: 42.56 kB / 364.4 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.951e-05/0.1282, allocations: 4 kB / 364.4 MB, free: 7.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000237/0.1284, allocations: 83.31 kB / 364.5 MB, free: 7.586 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.413e-06/0.1284, allocations: 0 / 364.5 MB, free: 7.586 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.000412/0.1288, allocations: 145.3 kB / 364.7 MB, free: 7.438 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001259/0.129, allocations: 170.5 kB / 364.8 MB, free: 7.234 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003867/0.1294, allocations: 334.6 kB / 365.2 MB, free: 6.895 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.672e-05/0.1294, allocations: 33.64 kB / 365.2 MB, free: 6.855 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.1295, allocations: 128.1 kB / 365.3 MB, free: 6.727 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.736e-05/0.1295, allocations: 19.8 kB / 365.3 MB, free: 6.707 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.475e-05/0.1296, allocations: 29.7 kB / 365.4 MB, free: 6.672 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.1298, allocations: 334.8 kB / 365.7 MB, free: 6.336 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.143e-05/0.1299, allocations: 27.98 kB / 365.7 MB, free: 6.309 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001244/0.13, allocations: 90.77 kB / 365.8 MB, free: 6.195 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001687/0.1302, allocations: 84.22 kB / 365.9 MB, free: 6.098 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.1302, allocations: 4 kB / 365.9 MB, free: 6.094 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002394/0.1304, allocations: 121.3 kB / 366 MB, free: 5.969 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.1304, allocations: 8 kB / 366 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.1305, allocations: 0 / 366 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.1305, allocations: 0 / 366 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001071/0.1306, allocations: 23.98 kB / 366 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.1306, allocations: 4.438 kB / 366 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.681e-05/0.1307, allocations: 11.92 kB / 366.1 MB, free: 5.922 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.598e-06/0.1307, allocations: 8 kB / 366.1 MB, free: 5.914 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001479/0.1309, allocations: 157.7 kB / 366.2 MB, free: 5.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.131, allocations: 73.28 kB / 366.3 MB, free: 5.672 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.648e-05/0.131, allocations: 29.7 kB / 366.3 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.1311, allocations: 4 kB / 366.3 MB, free: 5.641 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.1311, allocations: 4.062 kB / 366.3 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.1311, allocations: 3.938 kB / 366.3 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002375/0.1313, allocations: 241.5 kB / 366.6 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.1313, allocations: 0 / 366.6 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.591e-05/0.1314, allocations: 15.98 kB / 366.6 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.1314, allocations: 0 / 366.6 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.399e-05/0.1314, allocations: 4 kB / 366.6 MB, free: 5.328 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.1314, allocations: 3.938 kB / 366.6 MB, free: 5.324 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1314, allocations: 0 / 366.6 MB, free: 5.324 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002894/0.1317, allocations: 174.4 kB / 366.8 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001085/0.1318, allocations: 108.9 kB / 366.9 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.059e-05/0.1319, allocations: 0 / 366.9 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.365e-05/0.132, allocations: 8 kB / 366.9 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.086e-05/0.132, allocations: 7.984 kB / 366.9 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.872e-05/0.1321, allocations: 11.94 kB / 366.9 MB, free: 4.977 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002682/0.1323, allocations: 249.9 kB / 367.1 MB, free: 4.734 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1323, allocations: 4 kB / 367.1 MB, free: 4.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002612/0.1326, allocations: 32 kB / 367.2 MB, free: 4.699 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: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001512/0.1341, allocations: 432.1 kB / 367.6 MB, free: 4.426 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002335/0.1344, allocations: 67.91 kB / 367.7 MB, free: 4.359 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.1344, allocations: 0 / 367.7 MB, free: 4.359 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.569e-05/0.1345, allocations: 32.17 kB / 367.7 MB, free: 4.328 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004199/0.1349, allocations: 77.64 kB / 367.8 MB, free: 4.254 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006874/0.1356, allocations: 410.6 kB / 368.2 MB, free: 3.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004108/0.136, allocations: 0.7436 MB / 368.9 MB, free: 3.051 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.627e-05/0.1361, allocations: 27.42 kB / 368.9 MB, free: 3.027 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1361, allocations: 3.938 kB / 368.9 MB, free: 3.023 MB / 302.1 MB Notification: Performance of Templates: time 0.005479/0.1416, allocations: 2.969 MB / 371.9 MB, free: 68 kB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches