Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001264/0.001264, allocations: 107.4 kB / 17.98 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001572/0.001572, allocations: 209.8 kB / 18.92 MB, free: 4.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 227.4 MB / 247.1 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001507/0.001507, allocations: 60.05 kB / 307.1 MB, free: 0.9453 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1207, allocations: 50.53 MB / 357.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.004373/0.1251, allocations: 1.934 MB / 359.6 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00246/0.1276, allocations: 1.27 MB / 360.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002066/0.1279, allocations: 4 kB / 360.9 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004206/0.1283, allocations: 63.72 kB / 360.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004901/0.1288, allocations: 119.6 kB / 361 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007363/0.1296, allocations: 195.4 kB / 361.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002922/0.1299, allocations: 179.5 kB / 361.4 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001298/0.13, allocations: 37.55 kB / 361.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001493/0.1302, allocations: 83.62 kB / 361.5 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001314/0.1303, allocations: 75.69 kB / 361.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.69e-05/0.1303, allocations: 12 kB / 361.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001643/0.1305, allocations: 55.91 kB / 361.7 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001112/0.1306, allocations: 59.75 kB / 361.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.211e-05/0.1307, allocations: 75.48 kB / 361.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003214/0.1311, allocations: 188 kB / 362 MB, free: 10.05 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1311, allocations: 3.938 kB / 362 MB, free: 10.05 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.1311, allocations: 0 / 362 MB, free: 10.05 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.1311, allocations: 0 / 362 MB, free: 10.05 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.0009221/0.132, allocations: 0.5428 MB / 362.5 MB, free: 9.453 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.1321, allocations: 8.031 kB / 362.5 MB, free: 9.445 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.108e-05/0.1322, allocations: 24.66 kB / 362.5 MB, free: 9.422 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004546/0.1326, allocations: 291.5 kB / 362.8 MB, free: 9.098 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.106e-05/0.1327, allocations: 4.359 kB / 362.8 MB, free: 9.094 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.68e-05/0.1327, allocations: 16.12 kB / 362.9 MB, free: 9.078 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004338/0.1332, allocations: 167.5 kB / 363 MB, free: 8.887 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.1332, allocations: 0 / 363 MB, free: 8.887 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.736e-05/0.1332, allocations: 0 / 363 MB, free: 8.887 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/0.1332, allocations: 0 / 363 MB, free: 8.887 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001254/0.1333, allocations: 35.98 kB / 363.1 MB, free: 8.852 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006021/0.134, allocations: 386.3 kB / 363.4 MB, free: 8.418 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002743/0.1342, allocations: 127.9 kB / 363.6 MB, free: 8.266 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001072/0.1344, allocations: 42.56 kB / 363.6 MB, free: 8.215 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.727e-05/0.1344, allocations: 0 / 363.6 MB, free: 8.215 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002758/0.1347, allocations: 83.31 kB / 363.7 MB, free: 8.121 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.613e-06/0.1347, allocations: 4 kB / 363.7 MB, free: 8.117 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004484/0.1351, allocations: 149.3 kB / 363.8 MB, free: 7.965 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001236/0.1353, allocations: 166.2 kB / 364 MB, free: 7.766 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003916/0.1357, allocations: 334.6 kB / 364.3 MB, free: 7.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.587e-05/0.1357, allocations: 29.7 kB / 364.3 MB, free: 7.395 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.1358, allocations: 128.1 kB / 364.5 MB, free: 7.266 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.049e-05/0.1359, allocations: 16.06 kB / 364.5 MB, free: 7.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.836e-05/0.1359, allocations: 33.7 kB / 364.5 MB, free: 7.211 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.1361, allocations: 338.8 kB / 364.9 MB, free: 6.871 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.2e-05/0.1362, allocations: 20 kB / 364.9 MB, free: 6.852 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001461/0.1363, allocations: 86.86 kB / 365 MB, free: 6.742 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000185/0.1365, allocations: 88.22 kB / 365 MB, free: 6.641 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.1366, allocations: 0 / 365 MB, free: 6.641 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002579/0.1368, allocations: 125.2 kB / 365.2 MB, free: 6.512 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.1368, allocations: 12.12 kB / 365.2 MB, free: 6.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.1369, allocations: 0 / 365.2 MB, free: 6.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.1369, allocations: 0 / 365.2 MB, free: 6.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.137, allocations: 20.31 kB / 365.2 MB, free: 6.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.311e-05/0.137, allocations: 7.984 kB / 365.2 MB, free: 6.473 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.518e-05/0.1371, allocations: 11.94 kB / 365.2 MB, free: 6.461 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.127e-05/0.1371, allocations: 7.938 kB / 365.2 MB, free: 6.453 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.0001668/0.1373, allocations: 161.7 kB / 365.4 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.077e-05/0.1374, allocations: 73.34 kB / 365.5 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.242e-05/0.1375, allocations: 25.7 kB / 365.5 MB, free: 6.184 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.1375, allocations: 4 kB / 365.5 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.1375, allocations: 0 / 365.5 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.1375, allocations: 3.938 kB / 365.5 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002548/0.1378, allocations: 245.5 kB / 365.7 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.1378, allocations: 4 kB / 365.7 MB, free: 5.883 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.28e-05/0.1379, allocations: 11.94 kB / 365.7 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.624e-06/0.1379, allocations: 0 / 365.7 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.764e-05/0.1379, allocations: 7.984 kB / 365.7 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.1379, allocations: 4.062 kB / 365.8 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.039e-06/0.1379, allocations: 3.984 kB / 365.8 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002963/0.1382, allocations: 170.4 kB / 365.9 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/0.1383, allocations: 104.9 kB / 366 MB, free: 5.543 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.831e-05/0.1384, allocations: 4 kB / 366 MB, free: 5.539 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.203e-05/0.1385, allocations: 11.98 kB / 366 MB, free: 5.527 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.057e-05/0.1385, allocations: 8.031 kB / 366 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.107e-05/0.1385, allocations: 11.92 kB / 366.1 MB, free: 5.508 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002598/0.1388, allocations: 249.9 kB / 366.3 MB, free: 5.266 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1388, allocations: 0 / 366.3 MB, free: 5.266 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002822/0.1391, allocations: 32 kB / 366.3 MB, free: 5.234 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.001059/0.1402, allocations: 426.3 kB / 366.8 MB, free: 4.945 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002502/0.1404, allocations: 79.89 kB / 366.8 MB, free: 4.867 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1405, allocations: 0 / 366.8 MB, free: 4.867 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001002/0.1406, allocations: 31.92 kB / 366.9 MB, free: 4.836 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004464/0.141, allocations: 64.89 kB / 366.9 MB, free: 4.777 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008186/0.1418, allocations: 455.1 kB / 367.4 MB, free: 4.297 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000448/0.1423, allocations: 0.7475 MB / 368.1 MB, free: 3.523 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.947e-05/0.1424, allocations: 23.44 kB / 368.1 MB, free: 3.504 MB / 302.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1424, allocations: 0 / 368.1 MB, free: 3.504 MB / 302.1 MB Notification: Performance of Templates: time 0.007782/0.1502, allocations: 2.962 MB / 371.1 MB, free: 0.5547 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches