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.001343/0.001343, allocations: 106.7 kB / 16.62 MB, free: 6.812 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.001163/0.001163, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.537/1.537, allocations: 222.9 MB / 241.2 MB, free: 13.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001462, allocations: 43.81 kB / 300.1 MB, free: 6 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1114, allocations: 49.44 MB / 349.6 MB, free: 4.543 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003322/0.1147, allocations: 1.928 MB / 351.5 MB, free: 2.598 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001808/0.1166, allocations: 1.111 MB / 352.6 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001364/0.1168, allocations: 3.938 kB / 352.6 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003267/0.1171, allocations: 63.8 kB / 352.7 MB, free: 1.414 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002636/0.1174, allocations: 79.72 kB / 352.8 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007248/0.1181, allocations: 236.6 kB / 353 MB, free: 1.109 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002483/0.1184, allocations: 175.5 kB / 353.2 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001197/0.1185, allocations: 29.55 kB / 353.2 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001161/0.1186, allocations: 75.64 kB / 353.3 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001149/0.1188, allocations: 83.61 kB / 353.3 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.392e-05/0.1188, allocations: 8 kB / 353.4 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001443/0.1189, allocations: 59.98 kB / 353.4 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.921e-05/0.1191, allocations: 63.81 kB / 353.5 MB, free: 0.625 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.066e-05/0.1191, allocations: 71.48 kB / 353.5 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003183/0.1195, allocations: 231.4 kB / 353.8 MB, free: 336 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.1195, allocations: 0 / 353.8 MB, free: 336 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.1195, allocations: 4 kB / 353.8 MB, free: 332 kB / 286.1 MB Notification: Performance of Transformations before backend: time 5.952e-06/0.1195, allocations: 0 / 353.8 MB, free: 332 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.0006982/0.1202, allocations: 0.5234 MB / 354.3 MB, free: 15.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.1202, allocations: 11.89 kB / 354.3 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.734e-05/0.1203, allocations: 24.66 kB / 354.3 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003028/0.1206, allocations: 287.6 kB / 354.6 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.773e-05/0.1207, allocations: 12.31 kB / 354.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.738e-05/0.1207, allocations: 8.125 kB / 354.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003248/0.121, allocations: 155.6 kB / 354.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.121, allocations: 4 kB / 354.8 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.824e-05/0.1211, allocations: 7.984 kB / 354.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.1211, allocations: 4 kB / 354.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001175/0.1212, allocations: 35.91 kB / 354.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005284/0.1217, allocations: 382.4 kB / 355.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000247/0.122, allocations: 115.9 kB / 355.3 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.286e-05/0.1221, allocations: 42.56 kB / 355.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.821e-05/0.1221, allocations: 7.938 kB / 355.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002102/0.1223, allocations: 79.38 kB / 355.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.733e-06/0.1224, allocations: 3.938 kB / 355.5 MB, free: 14.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003835/0.1227, allocations: 149.3 kB / 355.6 MB, free: 14.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.703e-05/0.1228, allocations: 170.4 kB / 355.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000328/0.1232, allocations: 322.7 kB / 356.1 MB, free: 13.74 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.148e-05/0.1232, allocations: 29.7 kB / 356.1 MB, free: 13.7 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.486e-05/0.1233, allocations: 132.1 kB / 356.2 MB, free: 13.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.884e-05/0.1233, allocations: 19.88 kB / 356.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.72e-05/0.1234, allocations: 29.7 kB / 356.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.1235, allocations: 334.8 kB / 356.6 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.002e-05/0.1236, allocations: 23.98 kB / 356.6 MB, free: 13.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001022/0.1237, allocations: 95.02 kB / 356.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001473/0.1238, allocations: 88.22 kB / 356.8 MB, free: 12.94 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.1239, allocations: 0 / 356.8 MB, free: 12.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002306/0.1241, allocations: 125.3 kB / 356.9 MB, free: 12.81 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.1241, allocations: 4 kB / 356.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.1241, allocations: 4 kB / 356.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.1241, allocations: 0 / 356.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001108/0.1243, allocations: 23.92 kB / 357 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.1243, allocations: 128 / 357 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.889e-05/0.1244, allocations: 15.94 kB / 357 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.212e-05/0.1244, allocations: 7.984 kB / 357 MB, free: 12.75 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.0001466/0.1245, allocations: 149.8 kB / 357.1 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.15e-05/0.1246, allocations: 69.34 kB / 357.2 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.592e-05/0.1247, allocations: 25.72 kB / 357.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.1247, allocations: 3.984 kB / 357.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.1247, allocations: 0 / 357.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.1247, allocations: 12 kB / 357.2 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000193/0.1249, allocations: 233.6 kB / 357.5 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1249, allocations: 0 / 357.5 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.494e-05/0.125, allocations: 11.98 kB / 357.5 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.125, allocations: 0 / 357.5 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.333e-05/0.125, allocations: 4 kB / 357.5 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.125, allocations: 0 / 357.5 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.125, allocations: 3.984 kB / 357.5 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002627/0.1253, allocations: 178.5 kB / 357.7 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.76e-05/0.1254, allocations: 108.8 kB / 357.8 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.92e-05/0.1254, allocations: 12.08 kB / 357.8 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.317e-05/0.1255, allocations: 7.875 kB / 357.8 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.542e-05/0.1256, allocations: 7.984 kB / 357.8 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.821e-05/0.1256, allocations: 11.94 kB / 357.8 MB, free: 11.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002077/0.1258, allocations: 237.9 kB / 358 MB, free: 11.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.442e-06/0.1258, allocations: 4 kB / 358.1 MB, free: 11.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000274/0.1261, allocations: 39.92 kB / 358.1 MB, free: 11.55 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.000948/0.1271, allocations: 425.2 kB / 358.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002367/0.1273, allocations: 83.83 kB / 358.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1273, allocations: 3.938 kB / 358.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.109e-05/0.1274, allocations: 28.23 kB / 358.6 MB, free: 11.17 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004281/0.1278, allocations: 73.02 kB / 358.7 MB, free: 11.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006132/0.1285, allocations: 405.3 kB / 359.1 MB, free: 10.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003101/0.1288, allocations: 0.7436 MB / 359.8 MB, free: 9.91 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.096e-05/0.1289, allocations: 21.55 kB / 359.9 MB, free: 9.887 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.257e-05/0.1289, allocations: 23.42 kB / 359.9 MB, free: 9.863 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1289, allocations: 0 / 359.9 MB, free: 9.863 MB / 302.1 MB Notification: Performance of Templates: time 0.007126/0.1361, allocations: 2.807 MB / 362.7 MB, free: 7.086 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/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