Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.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.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009285/0.0009286, allocations: 94.17 kB / 17 MB, free: 6.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001101/0.001101, allocations: 193.6 kB / 17.91 MB, free: 5.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.54/1.54, allocations: 227.7 MB / 246.4 MB, free: 11.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003219/0.0003221, allocations: 8 kB / 307.1 MB, free: 1.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.137, allocations: 51.53 MB / 358.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.002777/0.1398, allocations: 1.595 MB / 360.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002218/0.1421, allocations: 1.143 MB / 361.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002391/0.1424, allocations: 7.938 kB / 361.4 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006801/0.1431, allocations: 135.6 kB / 361.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004708/0.1435, allocations: 127.5 kB / 361.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006625/0.1442, allocations: 147.6 kB / 361.8 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003805/0.1446, allocations: 183.4 kB / 362 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.1447, allocations: 25.66 kB / 362 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001758/0.1449, allocations: 71.64 kB / 362.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000146/0.1451, allocations: 67.62 kB / 362.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.38e-05/0.1451, allocations: 4 kB / 362.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001764/0.1453, allocations: 47.97 kB / 362.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.055e-05/0.1454, allocations: 35.84 kB / 362.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.909e-05/0.1455, allocations: 57.58 kB / 362.3 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003018/0.1458, allocations: 155.9 kB / 362.4 MB, free: 9.859 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.1458, allocations: 0 / 362.4 MB, free: 9.859 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1458, allocations: 0 / 362.4 MB, free: 9.859 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.1458, allocations: 0 / 362.4 MB, free: 9.859 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008888/0.1467, allocations: 0.5 MB / 362.9 MB, free: 9.305 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/0.1468, allocations: 11.97 kB / 362.9 MB, free: 9.293 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.933e-05/0.1469, allocations: 23.75 kB / 363 MB, free: 9.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004065/0.1473, allocations: 265.6 kB / 363.2 MB, free: 8.965 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.457e-05/0.1473, allocations: 8 kB / 363.2 MB, free: 8.957 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.192e-05/0.1473, allocations: 4 kB / 363.2 MB, free: 8.953 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004277/0.1478, allocations: 181.8 kB / 363.4 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.1478, allocations: 0 / 363.4 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.76e-05/0.1478, allocations: 0 / 363.4 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.1478, allocations: 4 kB / 363.4 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001278/0.148, allocations: 39.91 kB / 363.4 MB, free: 8.707 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006156/0.1486, allocations: 379.2 kB / 363.8 MB, free: 8.277 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002501/0.1488, allocations: 130.5 kB / 363.9 MB, free: 8.113 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.78e-05/0.149, allocations: 59.42 kB / 364 MB, free: 8.043 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.367e-05/0.149, allocations: 4.062 kB / 364 MB, free: 8.039 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001705/0.1492, allocations: 79.31 kB / 364.1 MB, free: 7.949 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.914e-06/0.1492, allocations: 4 kB / 364.1 MB, free: 7.945 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004124/0.1496, allocations: 149.4 kB / 364.2 MB, free: 7.793 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001188/0.1497, allocations: 166.2 kB / 364.4 MB, free: 7.594 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003245/0.1501, allocations: 278.5 kB / 364.7 MB, free: 7.312 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.715e-05/0.1501, allocations: 29.7 kB / 364.7 MB, free: 7.277 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.1502, allocations: 124.8 kB / 364.8 MB, free: 7.148 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.832e-05/0.1503, allocations: 15.8 kB / 364.8 MB, free: 7.133 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.767e-06/0.1503, allocations: 4 kB / 364.8 MB, free: 7.129 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.1504, allocations: 334.8 kB / 365.2 MB, free: 6.793 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.883e-05/0.1505, allocations: 19.98 kB / 365.2 MB, free: 6.773 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001105/0.1506, allocations: 87.2 kB / 365.3 MB, free: 6.664 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.661e-05/0.1507, allocations: 36.14 kB / 365.3 MB, free: 6.629 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.1507, allocations: 4 kB / 365.3 MB, free: 6.625 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002649/0.151, allocations: 129.4 kB / 365.4 MB, free: 6.492 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.151, allocations: 4 kB / 365.4 MB, free: 6.488 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.151, allocations: 4 kB / 365.4 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.1511, allocations: 0 / 365.4 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.58e-05/0.1512, allocations: 19.92 kB / 365.5 MB, free: 6.465 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.221e-05/0.1512, allocations: 4 kB / 365.5 MB, free: 6.461 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.491e-05/0.1513, allocations: 15.84 kB / 365.5 MB, free: 6.445 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.161e-05/0.1513, allocations: 4 kB / 365.5 MB, free: 6.441 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,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 (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001902/0.1515, allocations: 157.9 kB / 365.6 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001291/0.1516, allocations: 73.34 kB / 365.7 MB, free: 6.199 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.653e-05/0.1517, allocations: 25.7 kB / 365.7 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.1517, allocations: 4 kB / 365.7 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.008e-05/0.1517, allocations: 0 / 365.7 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.1518, allocations: 0 / 365.7 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002464/0.152, allocations: 233.5 kB / 366 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/0.152, allocations: 7.953 kB / 366 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.407e-05/0.1521, allocations: 12.08 kB / 366 MB, free: 5.875 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.1521, allocations: 0 / 366 MB, free: 5.875 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.458e-05/0.1521, allocations: 4 kB / 366 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.1521, allocations: 0 / 366 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.1521, allocations: 0 / 366 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003137/0.1524, allocations: 183.3 kB / 366.2 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001326/0.1526, allocations: 116.8 kB / 366.3 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.652e-05/0.1526, allocations: 4 kB / 366.3 MB, free: 5.527 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.677e-05/0.1527, allocations: 8 kB / 366.3 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.481e-05/0.1528, allocations: 7.984 kB / 366.3 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.138e-05/0.1528, allocations: 8.062 kB / 366.3 MB, free: 5.504 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000238/0.153, allocations: 202 kB / 366.5 MB, free: 5.309 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.153, allocations: 0 / 366.5 MB, free: 5.309 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002963/0.1533, allocations: 35.98 kB / 366.5 MB, free: 5.273 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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 (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001105/0.1545, allocations: 424.1 kB / 367 MB, free: 4.984 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002442/0.1547, allocations: 71.91 kB / 367 MB, free: 4.914 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.1547, allocations: 4 kB / 367 MB, free: 4.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.386e-05/0.1548, allocations: 19.98 kB / 367.1 MB, free: 4.891 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005313/0.1553, allocations: 78.39 kB / 367.1 MB, free: 4.816 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008655/0.1562, allocations: 373.1 kB / 367.5 MB, free: 4.422 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005183/0.1568, allocations: 0.7362 MB / 368.2 MB, free: 3.66 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001305/0.1569, allocations: 25.55 kB / 368.3 MB, free: 3.629 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.362e-05/0.157, allocations: 23.42 kB / 368.3 MB, free: 3.605 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.157, allocations: 3.938 kB / 368.3 MB, free: 3.602 MB / 302.1 MB Notification: Performance of Templates: time 0.007313/0.1643, allocations: 2.455 MB / 370.7 MB, free: 1.18 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y,backSample1.y Variables in the result:backSample1.backCounter,backSample1.resolution,backSample1.y,backSample1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.isCsvExt,table.combiTimeTable.nHeaderLines,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.p_offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.extrapolation,table.n,table.realToBoolean.threshold,table.shiftTime,table.startTime,table.startValue,table.table[1],table.table[2],time