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.001179/0.001179, allocations: 106.4 kB / 16.92 MB, free: 6.145 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.001261/0.001261, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.491/1.491, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 47.05 kB / 300.6 MB, free: 5.859 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.1411, allocations: 49.44 MB / 350.1 MB, free: 4.41 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.004983/0.1462, allocations: 1.868 MB / 351.9 MB, free: 2.52 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00261/0.1488, allocations: 1.142 MB / 353.1 MB, free: 1.371 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001971/0.149, allocations: 7.938 kB / 353.1 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003766/0.1495, allocations: 63.67 kB / 353.1 MB, free: 1.301 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003858/0.1499, allocations: 91.59 kB / 353.2 MB, free: 1.211 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00109/0.151, allocations: 254.3 kB / 353.5 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003254/0.1513, allocations: 171.5 kB / 353.6 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001404/0.1515, allocations: 25.55 kB / 353.7 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001566/0.1516, allocations: 71.7 kB / 353.7 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001576/0.1518, allocations: 83.61 kB / 353.8 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.367e-05/0.1518, allocations: 8 kB / 353.8 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002149/0.1521, allocations: 59.97 kB / 353.9 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001077/0.1522, allocations: 51.83 kB / 353.9 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001127/0.1523, allocations: 75.48 kB / 354 MB, free: 440 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004544/0.1528, allocations: 231.5 kB / 354.2 MB, free: 208 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.1528, allocations: 3.938 kB / 354.2 MB, free: 204 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1528, allocations: 0 / 354.2 MB, free: 204 kB / 286.1 MB Notification: Performance of Transformations before backend: time 9.488e-06/0.1528, allocations: 0 / 354.2 MB, free: 204 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.0009356/0.1538, allocations: 0.5234 MB / 354.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.1538, allocations: 15.89 kB / 354.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.421e-05/0.1539, allocations: 20.66 kB / 354.8 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004444/0.1544, allocations: 295.5 kB / 355.1 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.004e-05/0.1544, allocations: 12.31 kB / 355.1 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.548e-05/0.1544, allocations: 8.125 kB / 355.1 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004388/0.1549, allocations: 155.6 kB / 355.3 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.1549, allocations: 4 kB / 355.3 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.718e-05/0.1549, allocations: 0 / 355.3 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.1549, allocations: 3.938 kB / 355.3 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001507/0.1551, allocations: 43.91 kB / 355.3 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006353/0.1557, allocations: 374.4 kB / 355.7 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003348/0.1561, allocations: 123.9 kB / 355.8 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001164/0.1562, allocations: 46.56 kB / 355.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.02e-05/0.1563, allocations: 7.938 kB / 355.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003009/0.1566, allocations: 79.38 kB / 355.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 2.165e-06/0.1566, allocations: 0 / 355.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004889/0.1571, allocations: 153.3 kB / 356.1 MB, free: 14.13 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/0.1572, allocations: 170.4 kB / 356.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004019/0.1576, allocations: 322.7 kB / 356.6 MB, free: 13.6 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.935e-05/0.1577, allocations: 29.7 kB / 356.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.1578, allocations: 124.1 kB / 356.7 MB, free: 13.44 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.269e-05/0.1578, allocations: 23.86 kB / 356.7 MB, free: 13.42 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.69e-05/0.1579, allocations: 29.7 kB / 356.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.1581, allocations: 334.8 kB / 357.1 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001023/0.1582, allocations: 19.98 kB / 357.1 MB, free: 13.03 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001524/0.1584, allocations: 94.78 kB / 357.2 MB, free: 12.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002446/0.1586, allocations: 84.22 kB / 357.3 MB, free: 12.81 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.1586, allocations: 0 / 357.3 MB, free: 12.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003374/0.159, allocations: 129.3 kB / 357.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/0.159, allocations: 4 kB / 357.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.159, allocations: 3.984 kB / 357.4 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.1591, allocations: 4 kB / 357.4 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001521/0.1592, allocations: 23.92 kB / 357.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.708e-06/0.1593, allocations: 0 / 357.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001139/0.1594, allocations: 16.05 kB / 357.5 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/0.1594, allocations: 8 kB / 357.5 MB, free: 12.62 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.0001841/0.1596, allocations: 154.3 kB / 357.6 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001262/0.1597, allocations: 69.34 kB / 357.7 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.441e-05/0.1598, allocations: 25.7 kB / 357.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.1598, allocations: 4 kB / 357.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.1599, allocations: 0 / 357.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.1599, allocations: 4 kB / 357.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003044/0.1602, allocations: 237.6 kB / 357.9 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.1602, allocations: 4.312 kB / 358 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.69e-05/0.1603, allocations: 15.98 kB / 358 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.1603, allocations: 0 / 358 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.767e-05/0.1603, allocations: 4 kB / 358 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.1604, allocations: 0 / 358 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1604, allocations: 0 / 358 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003741/0.1607, allocations: 174.3 kB / 358.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001387/0.1609, allocations: 116.8 kB / 358.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.688e-05/0.161, allocations: 0 / 358.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.141e-05/0.1611, allocations: 11.94 kB / 358.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.347e-05/0.1611, allocations: 7.984 kB / 358.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.535e-05/0.1612, allocations: 7.938 kB / 358.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003592/0.1615, allocations: 241.9 kB / 358.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1616, allocations: 0 / 358.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004229/0.162, allocations: 35.98 kB / 358.6 MB, free: 11.43 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.001422/0.1634, allocations: 441.4 kB / 359 MB, free: 11.15 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003112/0.1637, allocations: 71.89 kB / 359.1 MB, free: 11.08 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.1638, allocations: 3.938 kB / 359.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001116/0.1639, allocations: 27.98 kB / 359.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005551/0.1644, allocations: 78.92 kB / 359.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008348/0.1653, allocations: 357.3 kB / 359.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004682/0.1658, allocations: 0.7397 MB / 360.3 MB, free: 9.824 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001186/0.1659, allocations: 21.55 kB / 360.3 MB, free: 9.801 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.924e-05/0.166, allocations: 27.42 kB / 360.3 MB, free: 9.773 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.166, allocations: 0 / 360.3 MB, free: 9.773 MB / 302.1 MB Notification: Performance of Templates: time 0.008843/0.1749, allocations: 2.847 MB / 363.1 MB, free: 6.953 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