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.00154/0.00154, allocations: 112 kB / 17.68 MB, free: 5.332 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.001531/0.001531, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.46/1.46, allocations: 222.9 MB / 242.3 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001067/0.001068, allocations: 54.73 kB / 302.1 MB, free: 5.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1379, allocations: 49.44 MB / 351.5 MB, free: 3.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.004062/0.142, allocations: 1.872 MB / 353.4 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002446/0.1445, allocations: 1.134 MB / 354.5 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002332/0.1448, allocations: 4 kB / 354.5 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004973/0.1453, allocations: 59.67 kB / 354.6 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003465/0.1457, allocations: 91.59 kB / 354.7 MB, free: 500 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001061/0.1468, allocations: 260.9 kB / 354.9 MB, free: 244 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003162/0.1471, allocations: 171.5 kB / 355.1 MB, free: 72 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001869/0.1473, allocations: 33.48 kB / 355.1 MB, free: 40 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001692/0.1475, allocations: 71.69 kB / 355.2 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001501/0.1476, allocations: 75.69 kB / 355.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.106e-05/0.1477, allocations: 12 kB / 355.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002266/0.1479, allocations: 67.89 kB / 355.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001332/0.148, allocations: 51.83 kB / 355.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001146/0.1482, allocations: 79.47 kB / 355.5 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004516/0.1486, allocations: 231.2 kB / 355.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.1486, allocations: 0 / 355.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.1487, allocations: 0 / 355.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.1487, allocations: 0 / 355.7 MB, free: 15.46 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.001105/0.1498, allocations: 0.535 MB / 356.2 MB, free: 14.87 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.401e-05/0.1498, allocations: 19.89 kB / 356.2 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.035e-05/0.1499, allocations: 20.66 kB / 356.3 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006257/0.1506, allocations: 287.6 kB / 356.5 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.684e-05/0.1506, allocations: 384 / 356.5 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.081e-05/0.1506, allocations: 12.12 kB / 356.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004698/0.1511, allocations: 163.5 kB / 356.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.1511, allocations: 0 / 356.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.643e-05/0.1512, allocations: 4 kB / 356.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.1512, allocations: 0 / 356.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001372/0.1513, allocations: 35.97 kB / 356.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006636/0.152, allocations: 390.3 kB / 357.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002818/0.1523, allocations: 115.9 kB / 357.2 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001483/0.1524, allocations: 50.56 kB / 357.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.183e-05/0.1525, allocations: 4 kB / 357.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002356/0.1527, allocations: 75.31 kB / 357.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 2.184e-06/0.1528, allocations: 0 / 357.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0005051/0.1533, allocations: 161.3 kB / 357.5 MB, free: 13.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001221/0.1534, allocations: 158.2 kB / 357.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003915/0.1538, allocations: 326.7 kB / 358 MB, free: 12.86 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.376e-05/0.1538, allocations: 33.64 kB / 358 MB, free: 12.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/0.1539, allocations: 132 kB / 358.2 MB, free: 12.69 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.11e-05/0.154, allocations: 15.81 kB / 358.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.781e-05/0.1541, allocations: 33.95 kB / 358.2 MB, free: 12.64 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.1542, allocations: 334.8 kB / 358.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.096e-05/0.1543, allocations: 23.98 kB / 358.6 MB, free: 12.28 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001189/0.1544, allocations: 86.84 kB / 358.7 MB, free: 12.17 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001557/0.1546, allocations: 84.22 kB / 358.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.1546, allocations: 0 / 358.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002254/0.1548, allocations: 121.3 kB / 358.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.1549, allocations: 8 kB / 358.9 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.343e-06/0.1549, allocations: 0 / 358.9 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.756e-05/0.1549, allocations: 12.11 kB / 358.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/0.155, allocations: 16 kB / 358.9 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.285e-05/0.1551, allocations: 7.938 kB / 358.9 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.233e-05/0.1551, allocations: 11.92 kB / 358.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.493e-05/0.1552, allocations: 4 kB / 358.9 MB, free: 11.89 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.0001914/0.1554, allocations: 158.5 kB / 359.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.941e-05/0.1555, allocations: 73.34 kB / 359.1 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.003e-05/0.1555, allocations: 29.77 kB / 359.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.604e-06/0.1555, allocations: 0 / 359.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.513e-06/0.1556, allocations: 4 kB / 359.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.442e-05/0.1556, allocations: 3.938 kB / 359.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002426/0.1558, allocations: 237.7 kB / 359.4 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.1558, allocations: 0 / 359.4 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.371e-05/0.1559, allocations: 11.98 kB / 359.4 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.1559, allocations: 4 kB / 359.4 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.1559, allocations: 0 / 359.4 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/0.1559, allocations: 4 kB / 359.4 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.156, allocations: 0 / 359.4 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003038/0.1563, allocations: 174.3 kB / 359.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001747/0.1565, allocations: 116.8 kB / 359.7 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.773e-05/0.1565, allocations: 4 kB / 359.7 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.843e-05/0.1566, allocations: 4 kB / 359.7 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.594e-05/0.1567, allocations: 11.98 kB / 359.7 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.631e-05/0.1567, allocations: 11.94 kB / 359.7 MB, free: 10.95 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002474/0.157, allocations: 238 kB / 360 MB, free: 10.72 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.157, allocations: 11.88 kB / 360 MB, free: 10.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002865/0.1573, allocations: 35.98 kB / 360 MB, free: 10.67 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.001253/0.1585, allocations: 421.1 kB / 360.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003346/0.1589, allocations: 72.09 kB / 360.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.1589, allocations: 4.062 kB / 360.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001037/0.159, allocations: 35.92 kB / 360.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005042/0.1595, allocations: 64.34 kB / 360.6 MB, free: 10.24 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000863/0.1604, allocations: 357.2 kB / 361 MB, free: 9.855 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004092/0.1608, allocations: 0.7438 MB / 361.7 MB, free: 9.086 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.263e-05/0.1609, allocations: 25.48 kB / 361.7 MB, free: 9.059 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.783e-05/0.161, allocations: 23.42 kB / 361.7 MB, free: 9.035 MB / 302.1 MB Notification: Performance of SimCode: time 7.61e-07/0.161, allocations: 3.938 kB / 361.7 MB, free: 9.031 MB / 302.1 MB Notification: Performance of Templates: time 0.00783/0.1688, allocations: 2.853 MB / 364.6 MB, free: 6.211 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 -s cvode -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