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.00138/0.00138, allocations: 104.4 kB / 17.21 MB, free: 6.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001314/0.001314, allocations: 209.7 kB / 18.14 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.244/1.244, allocations: 227.4 MB / 246.3 MB, free: 9.035 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 71.69 kB / 306.4 MB, free: 0.7031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08105/0.08235, allocations: 50.52 MB / 356.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.002779/0.08517, allocations: 1.945 MB / 358.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00171/0.08689, allocations: 1.266 MB / 360.1 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.73e-05/0.087, allocations: 4 kB / 360.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002635/0.08727, allocations: 63.73 kB / 360.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002438/0.08752, allocations: 115.6 kB / 360.3 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000504/0.08804, allocations: 199.5 kB / 360.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001921/0.08824, allocations: 155.5 kB / 360.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.971e-05/0.08834, allocations: 37.52 kB / 360.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000102/0.08845, allocations: 63.66 kB / 360.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001041/0.08856, allocations: 79.61 kB / 360.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.119e-05/0.08859, allocations: 4 kB / 360.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001285/0.08873, allocations: 63.95 kB / 360.9 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.275e-05/0.08881, allocations: 47.78 kB / 360.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.474e-05/0.0889, allocations: 75.47 kB / 361 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002628/0.08916, allocations: 235.5 kB / 361.2 MB, free: 9.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.656e-06/0.08918, allocations: 0 / 361.2 MB, free: 9.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.51e-07/0.08918, allocations: 0 / 361.2 MB, free: 9.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.08919, allocations: 0 / 361.2 MB, free: 9.82 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.0006606/0.08986, allocations: 0.535 MB / 361.7 MB, free: 9.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.339e-05/0.0899, allocations: 11.97 kB / 361.8 MB, free: 9.219 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.538e-05/0.08995, allocations: 34.73 kB / 361.8 MB, free: 9.176 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.163e-05/0.09001, allocations: 28.66 kB / 361.8 MB, free: 9.148 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003114/0.09032, allocations: 287.6 kB / 362.1 MB, free: 8.828 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.464e-05/0.09035, allocations: 8.375 kB / 362.1 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.59e-05/0.09037, allocations: 7.938 kB / 362.1 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003159/0.09069, allocations: 167.5 kB / 362.3 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.09071, allocations: 3.938 kB / 362.3 MB, free: 8.617 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.256e-05/0.09072, allocations: 0 / 362.3 MB, free: 8.617 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.09073, allocations: 4 kB / 362.3 MB, free: 8.613 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001089/0.09085, allocations: 35.92 kB / 362.3 MB, free: 8.578 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004704/0.09133, allocations: 394.2 kB / 362.7 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000233/0.09157, allocations: 115.9 kB / 362.8 MB, free: 7.996 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.47e-05/0.09166, allocations: 46.56 kB / 362.9 MB, free: 7.941 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.09169, allocations: 0 / 362.9 MB, free: 7.941 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001811/0.09188, allocations: 83.31 kB / 362.9 MB, free: 7.848 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.402e-06/0.09189, allocations: 0 / 362.9 MB, free: 7.848 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003622/0.09225, allocations: 149.5 kB / 363.1 MB, free: 7.695 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.056e-05/0.09235, allocations: 166.2 kB / 363.3 MB, free: 7.496 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000316/0.09267, allocations: 342.6 kB / 363.6 MB, free: 7.152 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.09269, allocations: 29.7 kB / 363.6 MB, free: 7.117 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.361e-05/0.09278, allocations: 128.1 kB / 363.7 MB, free: 6.988 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.081e-05/0.09281, allocations: 11.81 kB / 363.8 MB, free: 6.977 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.861e-05/0.09286, allocations: 37.64 kB / 363.8 MB, free: 6.934 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.09298, allocations: 326.8 kB / 364.1 MB, free: 6.605 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.041e-05/0.09305, allocations: 27.98 kB / 364.1 MB, free: 6.578 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000104/0.09316, allocations: 90.91 kB / 364.2 MB, free: 6.465 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001501/0.09332, allocations: 84.22 kB / 364.3 MB, free: 6.367 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.09333, allocations: 0 / 364.3 MB, free: 6.367 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002189/0.09355, allocations: 129.3 kB / 364.4 MB, free: 6.234 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.09358, allocations: 7.984 kB / 364.4 MB, free: 6.227 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.09359, allocations: 0 / 364.4 MB, free: 6.227 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.0936, allocations: 4 kB / 364.5 MB, free: 6.223 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.498e-05/0.0937, allocations: 16.44 kB / 364.5 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.245e-06/0.09372, allocations: 4 kB / 364.5 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.982e-05/0.0938, allocations: 19.83 kB / 364.5 MB, free: 6.184 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.919e-06/0.09382, allocations: 4 kB / 364.5 MB, free: 6.18 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.0001289/0.09396, allocations: 165.6 kB / 364.7 MB, free: 6.008 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.851e-05/0.09404, allocations: 61.5 kB / 364.7 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.798e-05/0.09411, allocations: 29.7 kB / 364.7 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.09412, allocations: 4 kB / 364.7 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.09412, allocations: 4 kB / 364.8 MB, free: 5.906 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.09413, allocations: 3.938 kB / 364.8 MB, free: 5.902 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001865/0.09432, allocations: 245.5 kB / 365 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.09433, allocations: 3.938 kB / 365 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.028e-05/0.0944, allocations: 8 kB / 365 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.09441, allocations: 0 / 365 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/0.09443, allocations: 8 kB / 365 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.09444, allocations: 3.984 kB / 365 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.09444, allocations: 4 kB / 365 MB, free: 5.586 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002525/0.0947, allocations: 166.4 kB / 365.2 MB, free: 5.398 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.079e-05/0.09479, allocations: 108.9 kB / 365.3 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.337e-05/0.09483, allocations: 8 kB / 365.3 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.64e-05/0.0949, allocations: 7.984 kB / 365.3 MB, free: 5.258 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.248e-05/0.09495, allocations: 7.938 kB / 365.3 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.806e-05/0.09497, allocations: 11.98 kB / 365.3 MB, free: 5.238 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002177/0.0952, allocations: 245.9 kB / 365.6 MB, free: 5 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.0952, allocations: 0 / 365.6 MB, free: 5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002579/0.09547, allocations: 35.98 kB / 365.6 MB, free: 4.965 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.001272/0.09674, allocations: 1.017 MB / 366.6 MB, free: 4.051 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000206/0.09696, allocations: 71.89 kB / 366.7 MB, free: 3.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.09697, allocations: 7.938 kB / 366.7 MB, free: 3.973 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.628e-05/0.09706, allocations: 27.98 kB / 366.7 MB, free: 3.945 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003598/0.09742, allocations: 65.61 kB / 366.8 MB, free: 3.883 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002329/0.09976, allocations: 2.259 MB / 369 MB, free: 1.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002835/0.1001, allocations: 0.74 MB / 369.8 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.697e-05/0.1002, allocations: 37.77 kB / 369.8 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.988e-05/0.1002, allocations: 59.42 kB / 369.9 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1003, allocations: 3.938 kB / 369.9 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.534/2.634, allocations: 4.962 MB / 374.8 MB, free: 19.07 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002357/2.634, allocations: 263.1 kB / 375.1 MB, free: 18.81 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.425/5.06, allocations: 3.938 kB / 375.1 MB, free: 18.81 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