Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001317/0.001317, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001356/0.001356, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.532/1.532, allocations: 227.4 MB / 246.3 MB, free: 9.02 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001419, allocations: 59.41 kB / 306.4 MB, free: 0.7148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1295, allocations: 50.53 MB / 356.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.004241/0.1337, allocations: 1.957 MB / 358.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002349/0.1361, allocations: 1.196 MB / 360 MB, free: 11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000201/0.1364, allocations: 0 / 360 MB, free: 11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007186/0.1371, allocations: 147.6 kB / 360.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004777/0.1376, allocations: 135.6 kB / 360.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006189/0.1383, allocations: 143.7 kB / 360.5 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003746/0.1387, allocations: 191.4 kB / 360.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.1388, allocations: 33.52 kB / 360.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001816/0.139, allocations: 63.66 kB / 360.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001638/0.1392, allocations: 79.55 kB / 360.8 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.301e-05/0.1392, allocations: 8 kB / 360.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001999/0.1394, allocations: 51.97 kB / 360.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001004/0.1395, allocations: 35.84 kB / 360.9 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001216/0.1397, allocations: 67.55 kB / 361 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003806/0.1401, allocations: 207.5 kB / 361.2 MB, free: 9.859 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1401, allocations: 0 / 361.2 MB, free: 9.859 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.1401, allocations: 0 / 361.2 MB, free: 9.859 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.1401, allocations: 0 / 361.2 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001083/0.1412, allocations: 0.5101 MB / 361.7 MB, free: 9.297 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/0.1412, allocations: 12.03 kB / 361.7 MB, free: 9.285 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.712e-05/0.1413, allocations: 38.73 kB / 361.7 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.442e-05/0.1414, allocations: 28.66 kB / 361.8 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003938/0.1418, allocations: 262.8 kB / 362 MB, free: 8.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.841e-05/0.1418, allocations: 4.375 kB / 362 MB, free: 8.906 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.948e-05/0.1418, allocations: 15.94 kB / 362 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003761/0.1422, allocations: 146.5 kB / 362.2 MB, free: 8.727 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.1422, allocations: 0 / 362.2 MB, free: 8.727 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.736e-05/0.1423, allocations: 4 kB / 362.2 MB, free: 8.723 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.1423, allocations: 4 kB / 362.2 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001147/0.1424, allocations: 35.91 kB / 362.2 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006034/0.143, allocations: 362.4 kB / 362.6 MB, free: 8.273 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000241/0.1433, allocations: 103.9 kB / 362.7 MB, free: 8.145 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.805e-05/0.1434, allocations: 46.56 kB / 362.7 MB, free: 8.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.745e-05/0.1434, allocations: 7.875 kB / 362.7 MB, free: 8.082 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000178/0.1436, allocations: 75.38 kB / 362.8 MB, free: 7.996 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 4.619e-06/0.1436, allocations: 3.984 kB / 362.8 MB, free: 7.992 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004187/0.144, allocations: 141.6 kB / 363 MB, free: 7.848 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.571e-05/0.1441, allocations: 136.5 kB / 363.1 MB, free: 7.684 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003074/0.1444, allocations: 276.8 kB / 363.4 MB, free: 7.406 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.325e-05/0.1445, allocations: 29.7 kB / 363.4 MB, free: 7.371 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.557e-05/0.1446, allocations: 116.1 kB / 363.5 MB, free: 7.254 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.779e-05/0.1446, allocations: 19.73 kB / 363.5 MB, free: 7.234 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.346e-05/0.1447, allocations: 33.7 kB / 363.5 MB, free: 7.195 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.1448, allocations: 330.8 kB / 363.9 MB, free: 6.863 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.033e-05/0.1449, allocations: 23.98 kB / 363.9 MB, free: 6.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001249/0.145, allocations: 65.94 kB / 364 MB, free: 6.754 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001393/0.1452, allocations: 80.25 kB / 364 MB, free: 6.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.1452, allocations: 0 / 364 MB, free: 6.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002342/0.1454, allocations: 117.6 kB / 364.2 MB, free: 6.539 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.1455, allocations: 4 kB / 364.2 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.1455, allocations: 4.062 kB / 364.2 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.856e-05/0.1455, allocations: 4 kB / 364.2 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.828e-05/0.1456, allocations: 20.06 kB / 364.2 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.1456, allocations: 0 / 364.2 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.967e-05/0.1457, allocations: 15.83 kB / 364.2 MB, free: 6.492 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.998e-06/0.1457, allocations: 4 kB / 364.2 MB, free: 6.488 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,sample1.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 (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.000139/0.1459, allocations: 145.8 kB / 364.3 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.895e-05/0.146, allocations: 61.45 kB / 364.4 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.781e-05/0.146, allocations: 25.7 kB / 364.4 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.146, allocations: 0 / 364.4 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.1461, allocations: 8.062 kB / 364.4 MB, free: 6.238 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.1461, allocations: 3.938 kB / 364.4 MB, free: 6.234 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002129/0.1463, allocations: 237.4 kB / 364.7 MB, free: 5.953 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.1463, allocations: 4 kB / 364.7 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.051e-05/0.1463, allocations: 8 kB / 364.7 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.105e-06/0.1463, allocations: 0 / 364.7 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.227e-05/0.1464, allocations: 4 kB / 364.7 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.1464, allocations: 3.984 kB / 364.7 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.1464, allocations: 0 / 364.7 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002496/0.1466, allocations: 158.5 kB / 364.8 MB, free: 5.754 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.032e-05/0.1467, allocations: 104.8 kB / 365 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.297e-05/0.1468, allocations: 7.922 kB / 365 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.054e-05/0.1468, allocations: 8 kB / 365 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.304e-05/0.1469, allocations: 7.938 kB / 365 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.683e-05/0.1469, allocations: 7.984 kB / 365 MB, free: 5.602 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002035/0.1471, allocations: 204.5 kB / 365.2 MB, free: 5.398 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1471, allocations: 0 / 365.2 MB, free: 5.398 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002743/0.1474, allocations: 32 kB / 365.2 MB, free: 5.367 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,sample1.u,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.001471/0.1489, allocations: 0.9959 MB / 366.2 MB, free: 4.477 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000248/0.1492, allocations: 71.84 kB / 366.3 MB, free: 4.406 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.1492, allocations: 0 / 366.3 MB, free: 4.406 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.258e-05/0.1493, allocations: 27.94 kB / 366.3 MB, free: 4.379 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000445/0.1497, allocations: 57.45 kB / 366.4 MB, free: 4.324 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002398/0.1521, allocations: 1.986 MB / 368.3 MB, free: 2.223 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002832/0.1524, allocations: 0.7283 MB / 369.1 MB, free: 1.469 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001142/0.1525, allocations: 33.52 kB / 369.1 MB, free: 1.438 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.059e-05/0.1526, allocations: 51.36 kB / 369.2 MB, free: 1.387 MB / 302.1 MB Notification: Performance of SimCode: time 7.52e-07/0.1526, allocations: 0 / 369.2 MB, free: 1.387 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2215/0.3742, allocations: 4.345 MB / 373.5 MB, free: 19.28 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002055/0.3745, allocations: 258.3 kB / 373.8 MB, free: 19 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.992/2.366, allocations: 0 / 373.8 MB, free: 19 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Error getting time " Variables in the reference:time,sample1.y,shiftSample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.u,shiftSample1.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nHeaderLines,table.combiTimeTable.nout,table.combiTimeTable.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.combiTimeTable.y[1],table.extrapolation,table.realToBoolean.threshold,table.realToBoolean.u,table.realToBoolean.y,table.shiftTime,table.startTime,table.startValue,table.table[1],table.table[2],table.y,time