Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001953/0.001953, allocations: 105.8 kB / 17.59 MB, free: 5.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002433/0.002432, allocations: 187.3 kB / 18.51 MB, free: 4.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 222.9 MB / 242.2 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001109/0.00111, allocations: 53.05 kB / 301.3 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1075, allocations: 49.44 MB / 350.7 MB, free: 4.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.00406/0.1116, allocations: 1.88 MB / 352.6 MB, free: 2.531 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002093/0.1137, allocations: 1.138 MB / 353.7 MB, free: 1.387 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001759/0.1139, allocations: 4 kB / 353.7 MB, free: 1.383 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003675/0.1143, allocations: 63.67 kB / 353.8 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003569/0.1147, allocations: 91.59 kB / 353.9 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009026/0.1156, allocations: 265.8 kB / 354.2 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002807/0.1159, allocations: 167.5 kB / 354.3 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001323/0.116, allocations: 25.55 kB / 354.3 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001306/0.1162, allocations: 71.7 kB / 354.4 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001489/0.1163, allocations: 83.61 kB / 354.5 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.189e-05/0.1164, allocations: 8 kB / 354.5 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001798/0.1165, allocations: 59.97 kB / 354.6 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001006/0.1167, allocations: 55.83 kB / 354.6 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.657e-05/0.1168, allocations: 71.48 kB / 354.7 MB, free: 456 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000396/0.1172, allocations: 231.5 kB / 354.9 MB, free: 224 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.1172, allocations: 3.938 kB / 354.9 MB, free: 220 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1172, allocations: 0 / 354.9 MB, free: 220 kB / 286.1 MB Notification: Performance of Transformations before backend: time 9.247e-06/0.1172, allocations: 0 / 354.9 MB, free: 220 kB / 286.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.0009352/0.1181, allocations: 0.5312 MB / 355.5 MB, free: 15.63 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.1182, allocations: 11.89 kB / 355.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.409e-05/0.1183, allocations: 24.66 kB / 355.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004034/0.1187, allocations: 291.5 kB / 355.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.805e-05/0.1187, allocations: 8.375 kB / 355.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.893e-05/0.1188, allocations: 8.125 kB / 355.8 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003762/0.1191, allocations: 151.6 kB / 355.9 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.1192, allocations: 4 kB / 355.9 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.892e-05/0.1192, allocations: 8 kB / 355.9 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.1192, allocations: 0 / 355.9 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000123/0.1193, allocations: 39.91 kB / 356 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005981/0.1199, allocations: 374.4 kB / 356.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002605/0.1202, allocations: 123.9 kB / 356.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.268e-05/0.1203, allocations: 50.5 kB / 356.5 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.883e-05/0.1203, allocations: 8 kB / 356.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002574/0.1206, allocations: 75.38 kB / 356.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.894e-06/0.1206, allocations: 0 / 356.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004313/0.1211, allocations: 157.2 kB / 356.8 MB, free: 14.15 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00011/0.1212, allocations: 166.4 kB / 356.9 MB, free: 13.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003566/0.1215, allocations: 326.7 kB / 357.2 MB, free: 13.62 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.282e-05/0.1216, allocations: 29.7 kB / 357.3 MB, free: 13.58 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.392e-05/0.1217, allocations: 124.1 kB / 357.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.993e-05/0.1217, allocations: 23.86 kB / 357.4 MB, free: 13.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.41e-05/0.1218, allocations: 33.7 kB / 357.4 MB, free: 13.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.122, allocations: 330.8 kB / 357.8 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.435e-05/0.122, allocations: 23.98 kB / 357.8 MB, free: 13.04 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001131/0.1222, allocations: 94.78 kB / 357.9 MB, free: 12.92 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001676/0.1223, allocations: 84.22 kB / 358 MB, free: 12.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.1223, allocations: 0 / 358 MB, free: 12.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002428/0.1226, allocations: 121.3 kB / 358.1 MB, free: 12.7 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.1226, allocations: 8 kB / 358.1 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.1226, allocations: 0 / 358.1 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.1227, allocations: 0 / 358.1 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/0.1228, allocations: 23.92 kB / 358.1 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.777e-05/0.1228, allocations: 4 kB / 358.1 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.385e-05/0.1229, allocations: 20.05 kB / 358.1 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.034e-05/0.1229, allocations: 4 kB / 358.1 MB, free: 12.64 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.0001538/0.1231, allocations: 150.1 kB / 358.3 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001036/0.1232, allocations: 69.34 kB / 358.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.931e-05/0.1233, allocations: 29.7 kB / 358.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.1233, allocations: 0 / 358.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/0.1233, allocations: 8 kB / 358.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.1233, allocations: 3.938 kB / 358.4 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002419/0.1235, allocations: 237.6 kB / 358.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.1236, allocations: 0 / 358.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.725e-05/0.1236, allocations: 11.98 kB / 358.6 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/0.1236, allocations: 4 kB / 358.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.342e-05/0.1237, allocations: 4 kB / 358.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.232e-06/0.1237, allocations: 4 kB / 358.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1237, allocations: 3.938 kB / 358.7 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002935/0.124, allocations: 166.4 kB / 358.8 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001007/0.1241, allocations: 112.8 kB / 358.9 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.798e-05/0.1241, allocations: 8 kB / 358.9 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.5e-05/0.1242, allocations: 4 kB / 358.9 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.55e-05/0.1243, allocations: 12.08 kB / 359 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.887e-05/0.1243, allocations: 11.88 kB / 359 MB, free: 11.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002419/0.1246, allocations: 233.9 kB / 359.2 MB, free: 11.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1246, allocations: 0 / 359.2 MB, free: 11.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002876/0.1249, allocations: 39.98 kB / 359.2 MB, free: 11.45 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.001082/0.1259, allocations: 424.7 kB / 359.6 MB, free: 11.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002447/0.1262, allocations: 79.83 kB / 359.7 MB, free: 11.1 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.1262, allocations: 7.938 kB / 359.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.433e-05/0.1263, allocations: 27.98 kB / 359.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004362/0.1268, allocations: 74.05 kB / 359.8 MB, free: 11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007955/0.1276, allocations: 391 kB / 360.2 MB, free: 10.58 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003875/0.128, allocations: 0.7436 MB / 361 MB, free: 9.809 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.971e-05/0.128, allocations: 23.42 kB / 361 MB, free: 9.785 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.128, allocations: 0 / 361 MB, free: 9.785 MB / 302.1 MB Notification: Performance of Templates: time 0.005894/0.1339, allocations: 2.902 MB / 363.9 MB, free: 6.895 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches