Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001135/0.001136, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001265/0.001265, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 64.39 kB / 307 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1128, allocations: 50.54 MB / 357.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003425/0.1163, allocations: 1.912 MB / 359.5 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002135/0.1184, allocations: 1.309 MB / 360.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001391/0.1186, allocations: 7.938 kB / 360.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002843/0.1189, allocations: 67.67 kB / 360.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003979/0.1193, allocations: 131.4 kB / 361 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007824/0.1201, allocations: 243.2 kB / 361.3 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002637/0.1204, allocations: 179.5 kB / 361.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000117/0.1205, allocations: 41.64 kB / 361.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001219/0.1206, allocations: 75.64 kB / 361.5 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001584/0.1208, allocations: 83.62 kB / 361.6 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.999e-05/0.1208, allocations: 12 kB / 361.6 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001841/0.121, allocations: 63.95 kB / 361.7 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001025/0.1211, allocations: 59.77 kB / 361.8 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001313/0.1213, allocations: 91.41 kB / 361.8 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003876/0.1217, allocations: 247.4 kB / 362.1 MB, free: 9.449 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1217, allocations: 4 kB / 362.1 MB, free: 9.445 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1217, allocations: 0 / 362.1 MB, free: 9.445 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.795e-06/0.1217, allocations: 0 / 362.1 MB, free: 9.445 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.0007294/0.1224, allocations: 0.5428 MB / 362.6 MB, free: 8.848 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.1225, allocations: 12.03 kB / 362.6 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.696e-05/0.1225, allocations: 38.75 kB / 362.7 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.571e-05/0.1226, allocations: 28.56 kB / 362.7 MB, free: 8.762 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003329/0.1229, allocations: 295.5 kB / 363 MB, free: 8.434 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.444e-05/0.123, allocations: 4.375 kB / 363 MB, free: 8.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.051e-05/0.123, allocations: 11.94 kB / 363 MB, free: 8.418 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003922/0.1234, allocations: 183 kB / 363.2 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.343e-06/0.1234, allocations: 3.938 kB / 363.2 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.591e-05/0.1234, allocations: 4 kB / 363.2 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.1234, allocations: 7.938 kB / 363.2 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001246/0.1236, allocations: 35.98 kB / 363.2 MB, free: 8.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004799/0.1241, allocations: 399.1 kB / 363.6 MB, free: 7.711 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002595/0.1243, allocations: 146.5 kB / 363.8 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001008/0.1244, allocations: 63.3 kB / 363.8 MB, free: 7.457 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.263e-05/0.1245, allocations: 8.062 kB / 363.8 MB, free: 7.449 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002107/0.1247, allocations: 79.38 kB / 363.9 MB, free: 7.359 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 2.004e-06/0.1247, allocations: 4 kB / 363.9 MB, free: 7.355 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003898/0.1251, allocations: 165.2 kB / 364.1 MB, free: 7.188 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.814e-05/0.1252, allocations: 188.2 kB / 364.3 MB, free: 6.961 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003353/0.1256, allocations: 354.9 kB / 364.6 MB, free: 6.602 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.909e-05/0.1256, allocations: 29.7 kB / 364.6 MB, free: 6.566 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.069e-05/0.1257, allocations: 128.3 kB / 364.8 MB, free: 6.434 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.787e-05/0.1257, allocations: 23.73 kB / 364.8 MB, free: 6.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.571e-05/0.1258, allocations: 33.7 kB / 364.8 MB, free: 6.371 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.1259, allocations: 338.8 kB / 365.2 MB, free: 6.031 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.355e-05/0.126, allocations: 23.98 kB / 365.2 MB, free: 6.008 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001081/0.1261, allocations: 96.58 kB / 365.3 MB, free: 5.883 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001676/0.1263, allocations: 113.9 kB / 365.4 MB, free: 5.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1263, allocations: 0 / 365.4 MB, free: 5.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002456/0.1265, allocations: 137.6 kB / 365.5 MB, free: 5.609 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.164e-05/0.1266, allocations: 4 kB / 365.5 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.1266, allocations: 8.188 kB / 365.5 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.1266, allocations: 4 kB / 365.5 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001276/0.1267, allocations: 23.92 kB / 365.6 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.1267, allocations: 4 kB / 365.6 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.341e-05/0.1268, allocations: 11.92 kB / 365.6 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-06/0.1268, allocations: 7.938 kB / 365.6 MB, free: 5.547 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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001214/0.127, allocations: 157.8 kB / 365.7 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.891e-05/0.1271, allocations: 81.34 kB / 365.8 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.948e-05/0.1271, allocations: 29.73 kB / 365.8 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.1271, allocations: 4 kB / 365.9 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.1271, allocations: 0 / 365.9 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.1272, allocations: 7.875 kB / 365.9 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001829/0.1273, allocations: 253.4 kB / 366.1 MB, free: 4.957 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1273, allocations: 0 / 366.1 MB, free: 4.957 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.064e-05/0.1274, allocations: 15.98 kB / 366.1 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.1274, allocations: 4 kB / 366.1 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.268e-06/0.1275, allocations: 0 / 366.1 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.1275, allocations: 4.094 kB / 366.1 MB, free: 4.934 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.1275, allocations: 4 kB / 366.1 MB, free: 4.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002595/0.1277, allocations: 183.2 kB / 366.3 MB, free: 4.723 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.034e-05/0.1278, allocations: 120.8 kB / 366.4 MB, free: 4.586 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.248e-05/0.1279, allocations: 3.984 kB / 366.4 MB, free: 4.582 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.724e-05/0.128, allocations: 12 kB / 366.4 MB, free: 4.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.454e-05/0.128, allocations: 15.86 kB / 366.5 MB, free: 4.555 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.596e-05/0.128, allocations: 8 kB / 366.5 MB, free: 4.547 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002129/0.1282, allocations: 253.9 kB / 366.7 MB, free: 4.297 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1283, allocations: 0 / 366.7 MB, free: 4.297 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002609/0.1285, allocations: 36 kB / 366.8 MB, free: 4.262 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,table.y,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 (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.001268/0.1298, allocations: 1.042 MB / 367.8 MB, free: 3.328 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002181/0.13, allocations: 92.14 kB / 367.9 MB, free: 3.238 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.13, allocations: 4.062 kB / 367.9 MB, free: 3.234 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.67e-05/0.1301, allocations: 27.98 kB / 367.9 MB, free: 3.207 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003987/0.1305, allocations: 88.84 kB / 368 MB, free: 3.125 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002341/0.1329, allocations: 2.302 MB / 370.3 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1566/0.2895, allocations: 0.7465 MB / 371.1 MB, free: 19.64 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001367/0.2896, allocations: 27.92 kB / 371.1 MB, free: 19.63 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.2897, allocations: 65.39 kB / 371.1 MB, free: 19.62 MB / 302.1 MB Notification: Performance of SimCode: time 7.61e-07/0.2897, allocations: 5.656 kB / 371.2 MB, free: 19.62 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1336/0.4234, allocations: 5.548 MB / 376.7 MB, free: 19.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.079/8.503, allocations: 12.73 kB / 376.7 MB, free: 19.03 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Error getting time " Variables in the reference:time,sample1.y,shiftSample1.y,backSample1.y Variables in the result:backSample1.backCounter,backSample1.resolution,backSample1.u,backSample1.y,backSample1.y_start,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.table[4,1],table.combiTimeTable.table[4,2],table.combiTimeTable.table[5,1],table.combiTimeTable.table[5,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.combiTimeTable.y[1],table.extrapolation,table.realToInteger.u,table.realToInteger.y,table.shiftTime,table.startTime,table.table[1,1],table.table[1,2],table.table[2,1],table.table[2,2],table.table[3,1],table.table[3,2],table.table[4,1],table.table[4,2],table.table[5,1],table.table[5,2],table.y,time