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.001008/0.001009, allocations: 97.28 kB / 16.65 MB, free: 6.59 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.001291/0.001291, allocations: 181.3 kB / 17.56 MB, free: 6.203 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.604/1.604, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003338/0.0003338, allocations: 4.5 kB / 301.4 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1462/0.1466, allocations: 50.41 MB / 351.8 MB, free: 3.453 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003283/0.1499, allocations: 1.585 MB / 353.4 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00251/0.1525, allocations: 1.087 MB / 354.5 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001381/0.1526, allocations: 4 kB / 354.5 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004233/0.1531, allocations: 59.8 kB / 354.6 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000316/0.1534, allocations: 83.72 kB / 354.7 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009584/0.1544, allocations: 222.8 kB / 354.9 MB, free: 408 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002767/0.1547, allocations: 167.5 kB / 355 MB, free: 240 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001707/0.1548, allocations: 25.56 kB / 355.1 MB, free: 216 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001305/0.155, allocations: 67.64 kB / 355.1 MB, free: 148 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001416/0.1551, allocations: 67.69 kB / 355.2 MB, free: 80 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.416e-05/0.1552, allocations: 7.984 kB / 355.2 MB, free: 72 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001742/0.1554, allocations: 51.97 kB / 355.3 MB, free: 20 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001367/0.1555, allocations: 43.78 kB / 355.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001235/0.1556, allocations: 97.17 kB / 355.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003324/0.156, allocations: 215.5 kB / 355.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.156, allocations: 4 kB / 355.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.918e-06/0.156, allocations: 0 / 355.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.156, allocations: 3.938 kB / 355.6 MB, free: 15.66 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.0007954/0.1568, allocations: 0.4963 MB / 356.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.1569, allocations: 12.03 kB / 356.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.648e-05/0.157, allocations: 20.66 kB / 356.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003731/0.1573, allocations: 291.5 kB / 356.4 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.95e-05/0.1574, allocations: 4.375 kB / 356.4 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.359e-05/0.1574, allocations: 12.12 kB / 356.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000394/0.1578, allocations: 159.2 kB / 356.6 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.1578, allocations: 0 / 356.6 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.639e-05/0.1579, allocations: 3.984 kB / 356.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.1579, allocations: 0 / 356.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001138/0.158, allocations: 39.92 kB / 356.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006337/0.1586, allocations: 382.4 kB / 357 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002739/0.1589, allocations: 119.9 kB / 357.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.687e-05/0.159, allocations: 50.56 kB / 357.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.061e-05/0.1591, allocations: 0 / 357.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002668/0.1593, allocations: 75.38 kB / 357.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.983e-06/0.1594, allocations: 3.938 kB / 357.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004167/0.1598, allocations: 153.3 kB / 357.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/0.1599, allocations: 162.2 kB / 357.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003548/0.1603, allocations: 326.6 kB / 357.9 MB, free: 13.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.029e-05/0.1603, allocations: 33.95 kB / 357.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.433e-05/0.1604, allocations: 124.1 kB / 358 MB, free: 12.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.878e-05/0.1604, allocations: 23.73 kB / 358.1 MB, free: 12.92 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.113e-05/0.1605, allocations: 17.72 kB / 358.1 MB, free: 12.9 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.1606, allocations: 338.8 kB / 358.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.671e-05/0.1607, allocations: 20 kB / 358.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001101/0.1608, allocations: 94.72 kB / 358.5 MB, free: 12.42 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001615/0.161, allocations: 80.22 kB / 358.6 MB, free: 12.33 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.161, allocations: 0 / 358.6 MB, free: 12.33 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002208/0.1612, allocations: 125.7 kB / 358.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.1613, allocations: 7.938 kB / 358.7 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.1613, allocations: 8 kB / 358.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.24e-05/0.1613, allocations: 0 / 358.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001864/0.1615, allocations: 20 kB / 358.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.1615, allocations: 3.984 kB / 358.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.988e-05/0.1616, allocations: 11.84 kB / 358.8 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.017e-05/0.1616, allocations: 4 kB / 358.8 MB, free: 12.14 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.0001484/0.1618, allocations: 161.8 kB / 358.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001662/0.1619, allocations: 61.5 kB / 359 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.536e-05/0.162, allocations: 29.7 kB / 359 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.162, allocations: 0 / 359 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.162, allocations: 0 / 359 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.162, allocations: 7.938 kB / 359 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000279/0.1623, allocations: 241.5 kB / 359.3 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.1623, allocations: 0 / 359.3 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.36e-05/0.1624, allocations: 15.98 kB / 359.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.1624, allocations: 4 kB / 359.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.201e-05/0.1624, allocations: 4 kB / 359.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1624, allocations: 0 / 359.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1624, allocations: 0 / 359.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002601/0.1627, allocations: 162.5 kB / 359.4 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001069/0.1628, allocations: 120.8 kB / 359.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.093e-05/0.1629, allocations: 4 kB / 359.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.669e-05/0.1629, allocations: 11.98 kB / 359.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.343e-05/0.163, allocations: 4 kB / 359.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.119e-05/0.163, allocations: 11.92 kB / 359.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002382/0.1633, allocations: 237.9 kB / 359.8 MB, free: 10.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1633, allocations: 0 / 359.8 MB, free: 10.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002644/0.1635, allocations: 36.09 kB / 359.9 MB, free: 10.95 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.001006/0.1645, allocations: 438.4 kB / 360.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002176/0.1648, allocations: 71.84 kB / 360.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1648, allocations: 0 / 360.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.981e-05/0.1649, allocations: 27.98 kB / 360.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004331/0.1653, allocations: 70.08 kB / 360.5 MB, free: 10.51 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006329/0.166, allocations: 420.6 kB / 360.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003342/0.1663, allocations: 0.7361 MB / 361.6 MB, free: 9.305 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.333e-05/0.1664, allocations: 37.77 kB / 361.6 MB, free: 9.262 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.052e-05/0.1665, allocations: 19.44 kB / 361.7 MB, free: 9.242 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1665, allocations: 3.938 kB / 361.7 MB, free: 9.238 MB / 302.1 MB Notification: Performance of Templates: time 0.006657/0.1731, allocations: 2.705 MB / 364.4 MB, free: 6.562 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