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.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001747/0.001747, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002017/0.002017, allocations: 205.8 kB / 18.92 MB, free: 4.465 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.44/1.44, allocations: 227.7 MB / 247.4 MB, free: 10.54 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.00192/0.001921, allocations: 68.7 kB / 307.4 MB, free: 0.8398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1078, allocations: 50.53 MB / 357.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.004475/0.1123, allocations: 1.977 MB / 359.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002616/0.115, allocations: 1.298 MB / 361.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001962/0.1152, allocations: 8 kB / 361.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004144/0.1156, allocations: 63.73 kB / 361.3 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004034/0.1161, allocations: 115.6 kB / 361.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007513/0.1168, allocations: 195.6 kB / 361.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003235/0.1172, allocations: 195.5 kB / 361.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001373/0.1173, allocations: 41.62 kB / 361.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001318/0.1174, allocations: 79.59 kB / 361.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001351/0.1176, allocations: 87.61 kB / 362 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.81e-05/0.1176, allocations: 12 kB / 362 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001503/0.1178, allocations: 63.95 kB / 362 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001803/0.118, allocations: 59.77 kB / 362.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001069/0.1181, allocations: 83.41 kB / 362.2 MB, free: 10 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003151/0.1184, allocations: 191.9 kB / 362.4 MB, free: 9.816 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.1184, allocations: 7.938 kB / 362.4 MB, free: 9.809 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1184, allocations: 0 / 362.4 MB, free: 9.809 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.1184, allocations: 0 / 362.4 MB, free: 9.809 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008788/0.1193, allocations: 0.5428 MB / 362.9 MB, free: 9.211 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.1194, allocations: 8.031 kB / 362.9 MB, free: 9.203 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.784e-05/0.1195, allocations: 28.56 kB / 363 MB, free: 9.176 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004228/0.1199, allocations: 303.5 kB / 363.3 MB, free: 8.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.783e-05/0.1199, allocations: 384 / 363.3 MB, free: 8.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.392e-05/0.12, allocations: 16.12 kB / 363.3 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004251/0.1204, allocations: 179.5 kB / 363.4 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.1204, allocations: 4 kB / 363.4 MB, free: 8.617 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.481e-05/0.1204, allocations: 0 / 363.4 MB, free: 8.617 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.1205, allocations: 4 kB / 363.5 MB, free: 8.613 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001314/0.1206, allocations: 43.91 kB / 363.5 MB, free: 8.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006191/0.1212, allocations: 399.1 kB / 363.9 MB, free: 8.121 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002953/0.1215, allocations: 138.5 kB / 364 MB, free: 7.949 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001202/0.1217, allocations: 63.42 kB / 364.1 MB, free: 7.875 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.097e-05/0.1217, allocations: 3.938 kB / 364.1 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002853/0.122, allocations: 83.38 kB / 364.2 MB, free: 7.777 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.593e-06/0.122, allocations: 0 / 364.2 MB, free: 7.777 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004614/0.1225, allocations: 173.2 kB / 364.3 MB, free: 7.602 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001462/0.1226, allocations: 187.9 kB / 364.5 MB, free: 7.375 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004206/0.1231, allocations: 339 kB / 364.9 MB, free: 7.035 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.684e-05/0.1231, allocations: 29.7 kB / 364.9 MB, free: 7 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001171/0.1232, allocations: 136.7 kB / 365 MB, free: 6.859 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.844e-05/0.1233, allocations: 19.75 kB / 365 MB, free: 6.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.723e-05/0.1233, allocations: 37.7 kB / 365.1 MB, free: 6.797 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001888/0.1235, allocations: 342.7 kB / 365.4 MB, free: 6.453 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.605e-05/0.1236, allocations: 23.98 kB / 365.4 MB, free: 6.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001597/0.1238, allocations: 108.1 kB / 365.5 MB, free: 6.297 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001865/0.124, allocations: 101.9 kB / 365.6 MB, free: 6.176 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.124, allocations: 4 kB / 365.6 MB, free: 6.172 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002788/0.1243, allocations: 141.2 kB / 365.8 MB, free: 6.027 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.178e-05/0.1243, allocations: 7.984 kB / 365.8 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.1243, allocations: 4 kB / 365.8 MB, free: 6.016 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.1243, allocations: 0 / 365.8 MB, free: 6.016 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001307/0.1245, allocations: 20 kB / 365.8 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.511e-05/0.1245, allocations: 7.922 kB / 365.8 MB, free: 5.988 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.638e-05/0.1246, allocations: 12.12 kB / 365.8 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.1246, allocations: 12 kB / 365.8 MB, free: 5.965 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,backSample1.y,backSample1.u,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 (13): * Single equations (assignments): 13 * 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.0001751/0.1248, allocations: 145.8 kB / 366 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.1249, allocations: 89.31 kB / 366.1 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.381e-05/0.125, allocations: 25.73 kB / 366.1 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.125, allocations: 4 kB / 366.1 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.125, allocations: 320 / 366.1 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.85e-05/0.1251, allocations: 16.02 kB / 366.1 MB, free: 5.672 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002874/0.1254, allocations: 257.5 kB / 366.4 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.1254, allocations: 4 kB / 366.4 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.916e-05/0.1254, allocations: 15.94 kB / 366.4 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.1255, allocations: 0 / 366.4 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.563e-05/0.1255, allocations: 7.984 kB / 366.4 MB, free: 5.344 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.1255, allocations: 0 / 366.4 MB, free: 5.344 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1255, allocations: 0 / 366.4 MB, free: 5.344 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003324/0.1258, allocations: 195.2 kB / 366.6 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001128/0.1259, allocations: 112.8 kB / 366.7 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.782e-05/0.126, allocations: 8 kB / 366.7 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.652e-05/0.1261, allocations: 0 / 366.7 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.92e-05/0.1262, allocations: 15.98 kB / 366.7 MB, free: 4.973 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.169e-05/0.1262, allocations: 7.938 kB / 366.7 MB, free: 4.965 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002844/0.1265, allocations: 253.9 kB / 367 MB, free: 4.715 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1265, allocations: 0 / 367 MB, free: 4.715 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002922/0.1268, allocations: 36 kB / 367 MB, free: 4.68 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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 (11): * Single equations (assignments): 9 * 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.001585/0.1284, allocations: 412.1 kB / 367.4 MB, free: 4.426 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002734/0.1287, allocations: 99.77 kB / 367.5 MB, free: 4.328 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.1287, allocations: 384 / 367.5 MB, free: 4.328 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.192e-05/0.1288, allocations: 24 kB / 367.5 MB, free: 4.305 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000487/0.1293, allocations: 89.39 kB / 367.6 MB, free: 4.223 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008016/0.1301, allocations: 484.8 kB / 368.1 MB, free: 3.711 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004424/0.1305, allocations: 0.7437 MB / 368.8 MB, free: 2.941 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.061e-05/0.1306, allocations: 23.44 kB / 368.9 MB, free: 2.918 MB / 302.1 MB Notification: Performance of SimCode: time 1.172e-06/0.1306, allocations: 0 / 368.9 MB, free: 2.918 MB / 302.1 MB Notification: Performance of Templates: time 0.1743/0.3049, allocations: 3.138 MB / 372 MB, free: 19.79 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches