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.001727/0.001734, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002298/0.002299, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.51/1.51, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 58.2 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1391/0.1404, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003791/0.1442, allocations: 1.881 MB / 360.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002295/0.1466, allocations: 1.296 MB / 362.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001805/0.1468, allocations: 4 kB / 362.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003708/0.1472, allocations: 63.67 kB / 362.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003801/0.1476, allocations: 135.4 kB / 362.3 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006326/0.1482, allocations: 226.9 kB / 362.5 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002399/0.1484, allocations: 179.5 kB / 362.7 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001308/0.1486, allocations: 33.53 kB / 362.7 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001018/0.1487, allocations: 67.7 kB / 362.8 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001151/0.1488, allocations: 79.67 kB / 362.8 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.306e-05/0.1489, allocations: 19.92 kB / 362.9 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001461/0.149, allocations: 67.91 kB / 362.9 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.416e-05/0.1491, allocations: 63.75 kB / 363 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.429e-05/0.1492, allocations: 75.48 kB / 363.1 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003609/0.1496, allocations: 239.2 kB / 363.3 MB, free: 8.918 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.1496, allocations: 0 / 363.3 MB, free: 8.918 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1496, allocations: 4 kB / 363.3 MB, free: 8.914 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.1496, allocations: 0 / 363.3 MB, free: 8.914 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.0007522/0.1504, allocations: 0.535 MB / 363.8 MB, free: 8.324 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.1504, allocations: 8.031 kB / 363.8 MB, free: 8.316 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.067e-05/0.1505, allocations: 24.66 kB / 363.9 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004873/0.151, allocations: 303.5 kB / 364.2 MB, free: 7.957 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.729e-05/0.151, allocations: 384 / 364.2 MB, free: 7.957 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.565e-05/0.151, allocations: 12.12 kB / 364.2 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003593/0.1514, allocations: 159.6 kB / 364.3 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.1514, allocations: 0 / 364.3 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.53e-05/0.1515, allocations: 4 kB / 364.3 MB, free: 7.758 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.1515, allocations: 4 kB / 364.3 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001258/0.1516, allocations: 43.89 kB / 364.4 MB, free: 7.711 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005645/0.1522, allocations: 378.4 kB / 364.8 MB, free: 7.285 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000246/0.1524, allocations: 115.9 kB / 364.9 MB, free: 7.145 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.775e-05/0.1525, allocations: 58.5 kB / 364.9 MB, free: 7.078 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.706e-05/0.1526, allocations: 3.938 kB / 364.9 MB, free: 7.074 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000167/0.1527, allocations: 75.38 kB / 365 MB, free: 6.988 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.553e-06/0.1528, allocations: 0 / 365 MB, free: 6.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.000402/0.1532, allocations: 157.5 kB / 365.2 MB, free: 6.828 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001436/0.1533, allocations: 162.2 kB / 365.3 MB, free: 6.633 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003492/0.1537, allocations: 338.6 kB / 365.6 MB, free: 6.289 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.539e-05/0.1537, allocations: 25.7 kB / 365.7 MB, free: 6.258 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.227e-05/0.1538, allocations: 132.2 kB / 365.8 MB, free: 6.125 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.537e-05/0.1538, allocations: 15.8 kB / 365.8 MB, free: 6.109 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.154e-05/0.1539, allocations: 33.7 kB / 365.8 MB, free: 6.07 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.154, allocations: 338.8 kB / 366.2 MB, free: 5.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.659e-05/0.1541, allocations: 27.98 kB / 366.2 MB, free: 5.703 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001256/0.1543, allocations: 82.8 kB / 366.3 MB, free: 5.598 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001621/0.1544, allocations: 88.16 kB / 366.4 MB, free: 5.496 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.1544, allocations: 0 / 366.4 MB, free: 5.496 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002268/0.1547, allocations: 125.3 kB / 366.5 MB, free: 5.367 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.1547, allocations: 4 kB / 366.5 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.1547, allocations: 4 kB / 366.5 MB, free: 5.359 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.1547, allocations: 0 / 366.5 MB, free: 5.359 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000123/0.1549, allocations: 28.05 kB / 366.5 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.1549, allocations: 0 / 366.5 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.677e-05/0.155, allocations: 15.88 kB / 366.5 MB, free: 5.316 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.111e-05/0.155, allocations: 4.312 kB / 366.5 MB, free: 5.312 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.000148/0.1551, allocations: 165.7 kB / 366.7 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.142e-05/0.1552, allocations: 65.36 kB / 366.8 MB, free: 5.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.595e-05/0.1553, allocations: 29.64 kB / 366.8 MB, free: 5.043 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.1553, allocations: 64 / 366.8 MB, free: 5.043 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.273e-06/0.1553, allocations: 8 kB / 366.8 MB, free: 5.035 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.1553, allocations: 3.938 kB / 366.8 MB, free: 5.031 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002034/0.1555, allocations: 245.5 kB / 367.1 MB, free: 4.742 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.1555, allocations: 0 / 367.1 MB, free: 4.742 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.402e-05/0.1556, allocations: 12 kB / 367.1 MB, free: 4.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.1556, allocations: 3.984 kB / 367.1 MB, free: 4.727 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.1556, allocations: 0 / 367.1 MB, free: 4.727 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.1557, allocations: 7.938 kB / 367.1 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1557, allocations: 0 / 367.1 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002691/0.1559, allocations: 170.4 kB / 367.2 MB, free: 4.527 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001147/0.1561, allocations: 108.9 kB / 367.4 MB, free: 4.402 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.426e-05/0.1561, allocations: 3.984 kB / 367.4 MB, free: 4.398 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.65e-05/0.1562, allocations: 8 kB / 367.4 MB, free: 4.391 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.012e-05/0.1562, allocations: 7.984 kB / 367.4 MB, free: 4.383 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.054e-05/0.1563, allocations: 7.938 kB / 367.4 MB, free: 4.375 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000236/0.1565, allocations: 253.9 kB / 367.6 MB, free: 4.129 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1565, allocations: 0 / 367.6 MB, free: 4.129 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002605/0.1568, allocations: 31.98 kB / 367.7 MB, free: 4.098 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.0009818/0.1578, allocations: 422.1 kB / 368.1 MB, free: 3.812 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002475/0.158, allocations: 79.78 kB / 368.1 MB, free: 3.734 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.158, allocations: 4.25 kB / 368.2 MB, free: 3.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.329e-05/0.1581, allocations: 31.98 kB / 368.2 MB, free: 3.699 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004251/0.1586, allocations: 56.67 kB / 368.2 MB, free: 3.645 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000648/0.1592, allocations: 379.6 kB / 368.6 MB, free: 3.246 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003383/0.1596, allocations: 0.7399 MB / 369.3 MB, free: 2.48 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.842e-05/0.1597, allocations: 29.52 kB / 369.4 MB, free: 2.449 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.964e-05/0.1597, allocations: 23.44 kB / 369.4 MB, free: 2.43 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1597, allocations: 0 / 369.4 MB, free: 2.43 MB / 302.1 MB Notification: Performance of Templates: time 0.1842/0.344, allocations: 2.878 MB / 372.3 MB, free: 19.84 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 -s gbode -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