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.001107/0.001107, allocations: 93 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001557/0.001557, allocations: 202.4 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.568/1.568, allocations: 227.7 MB / 246.8 MB, free: 11.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003869/0.0003866, allocations: 4 kB / 307.7 MB, free: 0.8242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1472/0.1476, allocations: 51.52 MB / 359.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.00267/0.1503, allocations: 1.599 MB / 360.9 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002274/0.1526, allocations: 1.239 MB / 362.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001675/0.1528, allocations: 3.938 kB / 362.1 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003532/0.1532, allocations: 63.8 kB / 362.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003263/0.1535, allocations: 107.6 kB / 362.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005985/0.1541, allocations: 203.2 kB / 362.5 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002115/0.1543, allocations: 163.5 kB / 362.6 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001216/0.1545, allocations: 33.52 kB / 362.7 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001008/0.1546, allocations: 67.66 kB / 362.7 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001114/0.1547, allocations: 71.67 kB / 362.8 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.843e-05/0.1547, allocations: 4 kB / 362.8 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001271/0.1548, allocations: 55.97 kB / 362.9 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.839e-05/0.1549, allocations: 51.7 kB / 362.9 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.569e-05/0.155, allocations: 101.2 kB / 363 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002871/0.1553, allocations: 223.5 kB / 363.2 MB, free: 9.316 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1553, allocations: 0 / 363.2 MB, free: 9.316 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1554, allocations: 0 / 363.2 MB, free: 9.316 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.098e-06/0.1554, allocations: 0 / 363.2 MB, free: 9.316 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.000636/0.156, allocations: 0.504 MB / 363.7 MB, free: 8.758 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.1561, allocations: 8.031 kB / 363.7 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.008e-05/0.1561, allocations: 24.66 kB / 363.8 MB, free: 8.727 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003422/0.1565, allocations: 283.6 kB / 364 MB, free: 8.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.999e-05/0.1565, allocations: 4.375 kB / 364 MB, free: 8.406 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.354e-05/0.1565, allocations: 12.11 kB / 364.1 MB, free: 8.395 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003359/0.1569, allocations: 163.5 kB / 364.2 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.086e-06/0.1569, allocations: 7.984 kB / 364.2 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.666e-05/0.1569, allocations: 7.984 kB / 364.2 MB, free: 8.191 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.1569, allocations: 0 / 364.2 MB, free: 8.191 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001097/0.157, allocations: 35.92 kB / 364.3 MB, free: 8.156 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005106/0.1576, allocations: 390.3 kB / 364.6 MB, free: 7.719 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002819/0.1579, allocations: 123.9 kB / 364.8 MB, free: 7.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.461e-05/0.158, allocations: 46.56 kB / 364.8 MB, free: 7.516 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.632e-05/0.158, allocations: 0 / 364.8 MB, free: 7.516 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001927/0.1582, allocations: 79.31 kB / 364.9 MB, free: 7.426 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.512e-06/0.1582, allocations: 4 kB / 364.9 MB, free: 7.422 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003877/0.1586, allocations: 149.3 kB / 365 MB, free: 7.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.465e-05/0.1587, allocations: 162.2 kB / 365.2 MB, free: 7.074 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003503/0.1591, allocations: 338.6 kB / 365.5 MB, free: 6.734 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.92e-05/0.1591, allocations: 25.7 kB / 365.6 MB, free: 6.703 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.915e-05/0.1592, allocations: 132 kB / 365.7 MB, free: 6.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.832e-05/0.1592, allocations: 27.98 kB / 365.7 MB, free: 6.543 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.128e-05/0.1593, allocations: 17.72 kB / 365.7 MB, free: 6.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.1594, allocations: 334.8 kB / 366.1 MB, free: 6.184 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.495e-05/0.1595, allocations: 23.98 kB / 366.1 MB, free: 6.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001029/0.1596, allocations: 86.8 kB / 366.2 MB, free: 6.051 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001539/0.1597, allocations: 88.2 kB / 366.3 MB, free: 5.949 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.1598, allocations: 0 / 366.3 MB, free: 5.949 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002239/0.16, allocations: 117.4 kB / 366.4 MB, free: 5.828 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.16, allocations: 12.12 kB / 366.4 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.16, allocations: 0 / 366.4 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.16, allocations: 4 kB / 366.4 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.1602, allocations: 15.98 kB / 366.4 MB, free: 5.797 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.467e-06/0.1602, allocations: 4 kB / 366.4 MB, free: 5.793 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.968e-05/0.1603, allocations: 15.84 kB / 366.4 MB, free: 5.777 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.022e-05/0.1603, allocations: 4.312 kB / 366.4 MB, free: 5.773 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.0001542/0.1604, allocations: 169.6 kB / 366.6 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.223e-05/0.1605, allocations: 65.42 kB / 366.6 MB, free: 5.527 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.519e-05/0.1606, allocations: 25.7 kB / 366.7 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.1606, allocations: 4 kB / 366.7 MB, free: 5.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.1606, allocations: 0 / 366.7 MB, free: 5.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.1606, allocations: 7.922 kB / 366.7 MB, free: 5.492 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002039/0.1608, allocations: 245.6 kB / 366.9 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1608, allocations: 0 / 366.9 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.493e-05/0.1609, allocations: 15.92 kB / 366.9 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.1609, allocations: 0 / 366.9 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.889e-06/0.1609, allocations: 4 kB / 366.9 MB, free: 5.184 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.1609, allocations: 4.062 kB / 366.9 MB, free: 5.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.1609, allocations: 4 kB / 367 MB, free: 5.176 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002544/0.1612, allocations: 166.3 kB / 367.1 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/0.1613, allocations: 116.8 kB / 367.2 MB, free: 4.855 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.228e-05/0.1614, allocations: 7.938 kB / 367.2 MB, free: 4.848 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.069e-05/0.1614, allocations: 12 kB / 367.2 MB, free: 4.836 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.374e-05/0.1615, allocations: 7.984 kB / 367.3 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.901e-05/0.1615, allocations: 7.938 kB / 367.3 MB, free: 4.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002619/0.1618, allocations: 249.9 kB / 367.5 MB, free: 4.578 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1618, allocations: 0 / 367.5 MB, free: 4.578 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002653/0.1621, allocations: 32 kB / 367.5 MB, free: 4.547 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.001023/0.1631, allocations: 425 kB / 368 MB, free: 4.262 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002145/0.1633, allocations: 75.91 kB / 368 MB, free: 4.188 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1633, allocations: 0 / 368 MB, free: 4.188 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.97e-05/0.1634, allocations: 27.98 kB / 368.1 MB, free: 4.16 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004227/0.1639, allocations: 64.66 kB / 368.1 MB, free: 4.094 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006294/0.1645, allocations: 424.7 kB / 368.5 MB, free: 3.648 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003103/0.1648, allocations: 0.74 MB / 369.3 MB, free: 2.883 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001006/0.1649, allocations: 29.53 kB / 369.3 MB, free: 2.852 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.845e-05/0.165, allocations: 23.42 kB / 369.3 MB, free: 2.832 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.165, allocations: 0 / 369.3 MB, free: 2.832 MB / 302.1 MB Notification: Performance of Templates: time 0.006858/0.1719, allocations: 2.749 MB / 372.1 MB, free: 108 kB / 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/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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches