Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001509/0.001509, 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.001889/0.001889, allocations: 212.6 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.361/1.361, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 59.98 kB / 307.1 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08958/0.09081, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003685/0.09453, allocations: 1.899 MB / 359.5 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002206/0.09677, allocations: 1.27 MB / 360.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001756/0.09697, allocations: 4 kB / 360.8 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003403/0.09736, allocations: 71.67 kB / 360.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005115/0.09789, allocations: 131.4 kB / 361 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007633/0.09866, allocations: 222.7 kB / 361.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002795/0.09895, allocations: 175.5 kB / 361.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001322/0.0991, allocations: 37.53 kB / 361.4 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001296/0.09923, allocations: 75.62 kB / 361.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001348/0.09938, allocations: 75.69 kB / 361.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.898e-05/0.09941, allocations: 8 kB / 361.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001943/0.09962, allocations: 67.95 kB / 361.6 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001094/0.09973, allocations: 51.78 kB / 361.7 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.794e-05/0.09984, allocations: 79.42 kB / 361.7 MB, free: 9.836 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004415/0.1003, allocations: 243.5 kB / 362 MB, free: 9.598 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.1003, allocations: 0 / 362 MB, free: 9.598 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.845e-06/0.1003, allocations: 0 / 362 MB, free: 9.598 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.128e-05/0.1003, allocations: 0 / 362 MB, free: 9.598 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.0008261/0.1012, allocations: 0.535 MB / 362.5 MB, free: 9.008 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.085e-05/0.1012, allocations: 8.031 kB / 362.5 MB, free: 9 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.122e-05/0.1013, allocations: 46.67 kB / 362.6 MB, free: 8.945 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.318e-05/0.1014, allocations: 20.66 kB / 362.6 MB, free: 8.926 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004404/0.1018, allocations: 283.6 kB / 362.9 MB, free: 8.609 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.027e-05/0.1019, allocations: 12.38 kB / 362.9 MB, free: 8.598 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.106e-05/0.1019, allocations: 7.938 kB / 362.9 MB, free: 8.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003585/0.1023, allocations: 155.6 kB / 363 MB, free: 8.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.1023, allocations: 3.984 kB / 363 MB, free: 8.406 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.147e-05/0.1023, allocations: 8 kB / 363 MB, free: 8.398 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.276e-06/0.1023, allocations: 4 kB / 363 MB, free: 8.395 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000121/0.1025, allocations: 35.86 kB / 363.1 MB, free: 8.359 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006305/0.1031, allocations: 394.2 kB / 363.5 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003265/0.1034, allocations: 119.9 kB / 363.6 MB, free: 7.773 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.23e-05/0.1035, allocations: 46.56 kB / 363.6 MB, free: 7.719 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.542e-05/0.1036, allocations: 8 kB / 363.6 MB, free: 7.711 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002362/0.1038, allocations: 75.38 kB / 363.7 MB, free: 7.625 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.854e-06/0.1039, allocations: 0 / 363.7 MB, free: 7.625 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004371/0.1043, allocations: 157.2 kB / 363.9 MB, free: 7.465 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001171/0.1044, allocations: 158.5 kB / 364 MB, free: 7.273 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004401/0.1049, allocations: 342.6 kB / 364.3 MB, free: 6.926 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.954e-05/0.1049, allocations: 29.7 kB / 364.4 MB, free: 6.891 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001242/0.105, allocations: 128.1 kB / 364.5 MB, free: 6.762 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.79e-05/0.1051, allocations: 15.81 kB / 364.5 MB, free: 6.746 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001892/0.1053, allocations: 33.7 kB / 364.5 MB, free: 6.707 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.1055, allocations: 330.8 kB / 364.9 MB, free: 6.375 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.987e-05/0.1056, allocations: 23.98 kB / 364.9 MB, free: 6.352 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00014/0.1057, allocations: 94.78 kB / 365 MB, free: 6.234 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001874/0.1059, allocations: 84.22 kB / 365.1 MB, free: 6.137 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.1059, allocations: 0 / 365.1 MB, free: 6.137 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003329/0.1063, allocations: 121.3 kB / 365.2 MB, free: 6.012 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.997e-05/0.1063, allocations: 4 kB / 365.2 MB, free: 6.008 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.524e-05/0.1063, allocations: 3.984 kB / 365.2 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.413e-05/0.1064, allocations: 7.938 kB / 365.2 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001436/0.1065, allocations: 16 kB / 365.2 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.183e-05/0.1065, allocations: 0 / 365.2 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001232/0.1067, allocations: 23.95 kB / 365.2 MB, free: 5.957 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.278e-05/0.1067, allocations: 4 kB / 365.2 MB, free: 5.953 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,table.y,subSample1.y,subSample1.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.0002187/0.1069, allocations: 157.6 kB / 365.4 MB, free: 5.789 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00013/0.1071, allocations: 61.5 kB / 365.5 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.047e-05/0.1071, allocations: 29.7 kB / 365.5 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.1072, allocations: 0 / 365.5 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.1072, allocations: 0 / 365.5 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.054e-05/0.1072, allocations: 8.25 kB / 365.5 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003205/0.1075, allocations: 249.6 kB / 365.7 MB, free: 5.395 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.1075, allocations: 4 kB / 365.7 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.934e-05/0.1076, allocations: 15.94 kB / 365.8 MB, free: 5.375 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.933e-06/0.1077, allocations: 4 kB / 365.8 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.624e-05/0.1077, allocations: 0 / 365.8 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.1077, allocations: 0 / 365.8 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.404e-06/0.1077, allocations: 7.984 kB / 365.8 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004193/0.1081, allocations: 166.4 kB / 365.9 MB, free: 5.176 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001581/0.1083, allocations: 112.9 kB / 366 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.637e-05/0.1084, allocations: 4 kB / 366 MB, free: 5.043 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.585e-05/0.1084, allocations: 7.984 kB / 366.1 MB, free: 5.035 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.21e-05/0.1085, allocations: 15.88 kB / 366.1 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.235e-05/0.1086, allocations: 4 kB / 366.1 MB, free: 5.016 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003078/0.1089, allocations: 245.9 kB / 366.3 MB, free: 4.777 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1089, allocations: 0 / 366.3 MB, free: 4.777 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003751/0.1093, allocations: 36 kB / 366.4 MB, free: 4.742 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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.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.001954/0.1112, allocations: 1.004 MB / 367.4 MB, free: 3.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002581/0.1115, allocations: 87.84 kB / 367.4 MB, free: 3.754 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1115, allocations: 0 / 367.4 MB, free: 3.754 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001062/0.1116, allocations: 31.97 kB / 367.5 MB, free: 3.723 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004586/0.1121, allocations: 70.72 kB / 367.5 MB, free: 3.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003026/0.1151, allocations: 2.23 MB / 369.8 MB, free: 1.316 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005376/0.1157, allocations: 0.7397 MB / 370.5 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001437/0.1159, allocations: 29.53 kB / 370.5 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001243/0.116, allocations: 63.41 kB / 370.6 MB, free: 472 kB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.116, allocations: 0 / 370.6 MB, free: 472 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1733/0.2893, allocations: 5.2 MB / 375.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.057/8.347, allocations: 1.281 kB / 375.8 MB, free: 19.61 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Error getting time " Variables in the reference:time,sample1.y,subSample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,subSample1.factor,subSample1.inferFactor,subSample1.u,subSample1.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