Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.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.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009318/0.0009319, allocations: 90 kB / 16.31 MB, free: 6.008 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.001044/0.001044, allocations: 180.9 kB / 17.2 MB, free: 5.93 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.558/1.558, allocations: 223.2 MB / 241.1 MB, free: 5.418 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002859/0.0002859, allocations: 10.28 kB / 300.7 MB, free: 6.082 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1386, allocations: 50.43 MB / 351.1 MB, free: 11.67 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.002353/0.141, allocations: 1.58 MB / 352.7 MB, free: 10.07 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00157/0.1426, allocations: 0.9788 MB / 353.7 MB, free: 9.09 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001289/0.1427, allocations: 4 kB / 353.7 MB, free: 9.086 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005784/0.1433, allocations: 131.6 kB / 353.8 MB, free: 8.957 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002283/0.1435, allocations: 95.72 kB / 353.9 MB, free: 8.863 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004916/0.144, allocations: 174.9 kB / 354.1 MB, free: 8.695 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001971/0.1442, allocations: 119.7 kB / 354.2 MB, free: 8.578 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001254/0.1444, allocations: 29.67 kB / 354.3 MB, free: 8.551 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001019/0.1445, allocations: 63.7 kB / 354.3 MB, free: 8.488 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001052/0.1446, allocations: 63.69 kB / 354.4 MB, free: 8.426 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.522e-05/0.1446, allocations: 4 kB / 354.4 MB, free: 8.422 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001043/0.1447, allocations: 35.92 kB / 354.4 MB, free: 8.387 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.903e-05/0.1448, allocations: 35.83 kB / 354.4 MB, free: 8.352 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.317e-05/0.1448, allocations: 49.64 kB / 354.5 MB, free: 8.297 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002021/0.145, allocations: 159.7 kB / 354.7 MB, free: 8.141 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.1451, allocations: 0 / 354.7 MB, free: 8.141 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1451, allocations: 0 / 354.7 MB, free: 8.141 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.156e-06/0.1451, allocations: 7.938 kB / 354.7 MB, free: 8.133 MB / 286.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.0007381/0.1458, allocations: 496.1 kB / 355.1 MB, free: 7.594 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.1459, allocations: 12.02 kB / 355.2 MB, free: 7.582 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.581e-05/0.146, allocations: 23.67 kB / 355.2 MB, free: 7.559 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003533/0.1463, allocations: 265.6 kB / 355.4 MB, free: 7.262 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.33e-05/0.1463, allocations: 4 kB / 355.4 MB, free: 7.258 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.38e-05/0.1464, allocations: 11.98 kB / 355.5 MB, free: 7.246 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003897/0.1468, allocations: 167.5 kB / 355.6 MB, free: 7.055 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.1468, allocations: 0 / 355.6 MB, free: 7.055 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.884e-05/0.1468, allocations: 8 kB / 355.6 MB, free: 7.047 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.1468, allocations: 0 / 355.6 MB, free: 7.047 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001062/0.1469, allocations: 39.88 kB / 355.7 MB, free: 7.008 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005692/0.1475, allocations: 371.2 kB / 356 MB, free: 6.586 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002144/0.1477, allocations: 130.5 kB / 356.2 MB, free: 6.422 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.741e-05/0.1478, allocations: 7.984 kB / 356.2 MB, free: 6.414 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001791/0.148, allocations: 87.48 kB / 356.2 MB, free: 6.316 MB / 286.1 MB Notification: Performance of pre-optimization done (n=11): time 1.533e-06/0.148, allocations: 0 / 356.2 MB, free: 6.316 MB / 286.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003503/0.1483, allocations: 149.3 kB / 356.4 MB, free: 6.164 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.683e-05/0.1484, allocations: 166.2 kB / 356.6 MB, free: 5.965 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002661/0.1487, allocations: 269.3 kB / 356.8 MB, free: 5.695 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.329e-05/0.1487, allocations: 33.7 kB / 356.9 MB, free: 5.656 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.026e-05/0.1488, allocations: 120.4 kB / 357 MB, free: 5.531 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.586e-05/0.1489, allocations: 23.73 kB / 357 MB, free: 5.508 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.032e-06/0.1489, allocations: 4 kB / 357 MB, free: 5.504 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.149, allocations: 326.8 kB / 357.3 MB, free: 5.176 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.784e-05/0.1491, allocations: 19.98 kB / 357.3 MB, free: 5.156 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.24e-05/0.1492, allocations: 87.66 kB / 357.4 MB, free: 5.043 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.781e-05/0.1492, allocations: 27.98 kB / 357.4 MB, free: 5.016 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.1492, allocations: 4 kB / 357.5 MB, free: 5.012 MB / 286.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001956/0.1495, allocations: 125.4 kB / 357.6 MB, free: 4.883 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.1495, allocations: 7.938 kB / 357.6 MB, free: 4.875 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.335e-06/0.1495, allocations: 7.953 kB / 357.6 MB, free: 4.867 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.1495, allocations: 3.938 kB / 357.6 MB, free: 4.863 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.294e-05/0.1496, allocations: 19.98 kB / 357.6 MB, free: 4.844 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.1496, allocations: 4 kB / 357.6 MB, free: 4.84 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7e-05/0.1497, allocations: 7.906 kB / 357.6 MB, free: 4.832 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.3e-05/0.1497, allocations: 8.188 kB / 357.6 MB, free: 4.824 MB / 286.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.0001454/0.1499, allocations: 145.8 kB / 357.8 MB, free: 4.672 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.959e-05/0.15, allocations: 73.44 kB / 357.8 MB, free: 4.594 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.593e-05/0.15, allocations: 25.7 kB / 357.9 MB, free: 4.566 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.15, allocations: 3.953 kB / 357.9 MB, free: 4.562 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.15, allocations: 7.938 kB / 357.9 MB, free: 4.555 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.1501, allocations: 0 / 357.9 MB, free: 4.555 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001953/0.1503, allocations: 241.5 kB / 358.1 MB, free: 4.27 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.1503, allocations: 0 / 358.1 MB, free: 4.27 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.532e-05/0.1503, allocations: 4 kB / 358.1 MB, free: 4.266 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.1503, allocations: 4 kB / 358.1 MB, free: 4.262 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.098e-05/0.1503, allocations: 320 / 358.1 MB, free: 4.262 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.958e-06/0.1503, allocations: 4 kB / 358.1 MB, free: 4.258 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.1503, allocations: 11.89 kB / 358.1 MB, free: 4.246 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002754/0.1506, allocations: 208.5 kB / 358.3 MB, free: 3.996 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.25e-05/0.1507, allocations: 112.8 kB / 358.5 MB, free: 3.867 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.166e-05/0.1508, allocations: 4 kB / 358.5 MB, free: 3.863 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.41e-05/0.1508, allocations: 7.984 kB / 358.5 MB, free: 3.855 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.142e-05/0.1509, allocations: 8 kB / 358.5 MB, free: 3.848 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.432e-05/0.1509, allocations: 4 kB / 358.5 MB, free: 3.844 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001699/0.1511, allocations: 200.5 kB / 358.7 MB, free: 3.645 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1511, allocations: 0 / 358.7 MB, free: 3.645 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000266/0.1514, allocations: 35.98 kB / 358.7 MB, free: 3.609 MB / 286.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.001033/0.1524, allocations: 425.1 kB / 359.1 MB, free: 3.348 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002364/0.1526, allocations: 79.91 kB / 359.2 MB, free: 3.27 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1527, allocations: 3.938 kB / 359.2 MB, free: 3.266 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.065e-05/0.1527, allocations: 31.92 kB / 359.2 MB, free: 3.234 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003808/0.1531, allocations: 68.39 kB / 359.3 MB, free: 3.168 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007137/0.1538, allocations: 361.3 kB / 359.7 MB, free: 2.777 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000346/0.1542, allocations: 0.7362 MB / 360.4 MB, free: 2.016 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.35e-05/0.1543, allocations: 21.53 kB / 360.4 MB, free: 1.992 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.038e-05/0.1543, allocations: 23.44 kB / 360.4 MB, free: 1.969 MB / 286.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1543, allocations: 4 kB / 360.4 MB, free: 1.965 MB / 286.1 MB Notification: Performance of Templates: time 0.005523/0.1599, allocations: 2.435 MB / 362.9 MB, free: 15.56 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","../files/Modelica_4.0.0_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.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