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.001314/0.001314, allocations: 103.3 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001069/0.001069, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.4 MB / 246.3 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 59.66 kB / 306.4 MB, free: 0.9727 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1061, allocations: 50.53 MB / 356.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003431/0.1096, allocations: 1.973 MB / 358.9 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002133/0.1117, allocations: 1.309 MB / 360.2 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001414/0.1119, allocations: 7.938 kB / 360.2 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000368/0.1123, allocations: 51.8 kB / 360.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003382/0.1127, allocations: 115.6 kB / 360.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007002/0.1134, allocations: 207.6 kB / 360.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002746/0.1137, allocations: 175.5 kB / 360.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000121/0.1138, allocations: 33.64 kB / 360.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001262/0.1139, allocations: 71.59 kB / 360.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001083/0.114, allocations: 83.61 kB / 360.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.273e-05/0.1141, allocations: 4 kB / 360.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001367/0.1142, allocations: 55.95 kB / 361 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.492e-05/0.1143, allocations: 51.78 kB / 361 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.351e-05/0.1144, allocations: 87.34 kB / 361.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003059/0.1147, allocations: 239.5 kB / 361.3 MB, free: 9.965 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.1147, allocations: 0 / 361.3 MB, free: 9.965 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.11e-07/0.1147, allocations: 0 / 361.3 MB, free: 9.965 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.1147, allocations: 0 / 361.3 MB, free: 9.965 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.0007251/0.1155, allocations: 0.545 MB / 361.9 MB, free: 9.367 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.1155, allocations: 12.03 kB / 361.9 MB, free: 9.355 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.249e-05/0.1156, allocations: 38.73 kB / 361.9 MB, free: 9.309 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.17e-05/0.1156, allocations: 32.56 kB / 362 MB, free: 9.277 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003517/0.116, allocations: 295.5 kB / 362.2 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.28e-05/0.116, allocations: 4.375 kB / 362.2 MB, free: 8.945 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.073e-05/0.116, allocations: 11.94 kB / 362.3 MB, free: 8.934 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003486/0.1164, allocations: 184.3 kB / 362.4 MB, free: 8.723 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.781e-06/0.1164, allocations: 3.938 kB / 362.4 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.048e-05/0.1164, allocations: 3.938 kB / 362.4 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.146e-06/0.1164, allocations: 4 kB / 362.4 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001226/0.1166, allocations: 43.91 kB / 362.5 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005149/0.1171, allocations: 391.2 kB / 362.9 MB, free: 8.227 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000258/0.1174, allocations: 154.4 kB / 363 MB, free: 8.039 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.31e-05/0.1175, allocations: 59.41 kB / 363.1 MB, free: 7.969 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.988e-05/0.1175, allocations: 4.062 kB / 363.1 MB, free: 7.965 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002278/0.1177, allocations: 79.39 kB / 363.2 MB, free: 7.875 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.443e-06/0.1177, allocations: 3.938 kB / 363.2 MB, free: 7.871 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004058/0.1181, allocations: 169.5 kB / 363.3 MB, free: 7.699 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/0.1183, allocations: 195.8 kB / 363.5 MB, free: 7.465 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000338/0.1186, allocations: 346.9 kB / 363.9 MB, free: 7.117 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.757e-05/0.1186, allocations: 30.08 kB / 363.9 MB, free: 7.082 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.649e-05/0.1187, allocations: 136.3 kB / 364 MB, free: 6.941 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.337e-05/0.1187, allocations: 23.73 kB / 364.1 MB, free: 6.918 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.792e-05/0.1188, allocations: 29.72 kB / 364.1 MB, free: 6.883 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.1189, allocations: 330.8 kB / 364.4 MB, free: 6.551 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.221e-05/0.119, allocations: 23.98 kB / 364.4 MB, free: 6.527 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001118/0.1191, allocations: 104.6 kB / 364.5 MB, free: 6.395 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001582/0.1193, allocations: 105.9 kB / 364.6 MB, free: 6.27 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1193, allocations: 0 / 364.6 MB, free: 6.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002323/0.1195, allocations: 141.2 kB / 364.8 MB, free: 6.125 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.087e-05/0.1196, allocations: 4 kB / 364.8 MB, free: 6.121 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.1196, allocations: 4 kB / 364.8 MB, free: 6.117 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.504e-06/0.1196, allocations: 0 / 364.8 MB, free: 6.117 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.848e-05/0.1197, allocations: 28.11 kB / 364.8 MB, free: 6.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.978e-06/0.1197, allocations: 4 kB / 364.8 MB, free: 6.086 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.268e-05/0.1198, allocations: 15.94 kB / 364.8 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.059e-05/0.1198, allocations: 11.92 kB / 364.8 MB, free: 6.059 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.000118/0.1199, allocations: 161.7 kB / 365 MB, free: 5.891 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.588e-05/0.12, allocations: 77.34 kB / 365.1 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.057e-05/0.1201, allocations: 33.73 kB / 365.1 MB, free: 5.773 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.1201, allocations: 4.094 kB / 365.1 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.679e-05/0.1201, allocations: 4 kB / 365.1 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.1201, allocations: 3.938 kB / 365.1 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002159/0.1203, allocations: 245.4 kB / 365.4 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.1204, allocations: 4 kB / 365.4 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.98e-05/0.1204, allocations: 15.98 kB / 365.4 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.1204, allocations: 0 / 365.4 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.361e-05/0.1205, allocations: 12.12 kB / 365.4 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.1205, allocations: 0 / 365.4 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1205, allocations: 3.938 kB / 365.4 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002608/0.1207, allocations: 191.3 kB / 365.6 MB, free: 5.223 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.674e-05/0.1208, allocations: 116.7 kB / 365.7 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.243e-05/0.1209, allocations: 8 kB / 365.7 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.655e-05/0.1209, allocations: 4 kB / 365.7 MB, free: 5.078 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.458e-05/0.121, allocations: 15.92 kB / 365.7 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.273e-05/0.121, allocations: 8 kB / 365.7 MB, free: 5.055 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002241/0.1212, allocations: 253.9 kB / 366 MB, free: 4.805 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1212, allocations: 0 / 366 MB, free: 4.805 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002541/0.1215, allocations: 35.98 kB / 366 MB, free: 4.77 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.001291/0.1228, allocations: 1.04 MB / 367 MB, free: 3.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002047/0.123, allocations: 83.84 kB / 367.1 MB, free: 3.758 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.123, allocations: 0 / 367.1 MB, free: 3.758 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.981e-05/0.1231, allocations: 28.36 kB / 367.2 MB, free: 3.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003924/0.1235, allocations: 85.84 kB / 367.2 MB, free: 3.648 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00241/0.1259, allocations: 2.351 MB / 369.6 MB, free: 1.164 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002726/0.1262, allocations: 0.7401 MB / 370.3 MB, free: 408 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.726e-05/0.1263, allocations: 29.53 kB / 370.4 MB, free: 380 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.688e-05/0.1264, allocations: 63.41 kB / 370.4 MB, free: 316 kB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1264, allocations: 7.938 kB / 370.4 MB, free: 308 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.478/1.604, allocations: 5.299 MB / 375.7 MB, free: 19.36 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002196/1.605, allocations: 256.5 kB / 376 MB, free: 19.11 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.866/3.471, allocations: 4 kB / 376 MB, free: 19.1 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