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.0008644/0.0008646, allocations: 91.12 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001036/0.001037, allocations: 202.8 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.217/1.217, allocations: 227.7 MB / 246.8 MB, free: 11.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001923/0.0001924, allocations: 8 kB / 307.8 MB, free: 0.7188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08156/0.08177, allocations: 51.51 MB / 359.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.001896/0.0837, allocations: 1.626 MB / 361 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001755/0.08547, allocations: 1.271 MB / 362.3 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.445e-05/0.08557, allocations: 4 kB / 362.3 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002438/0.08582, allocations: 55.8 kB / 362.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002467/0.08608, allocations: 123.6 kB / 362.4 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004735/0.08656, allocations: 203.5 kB / 362.6 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001908/0.08676, allocations: 171.5 kB / 362.8 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001035/0.08687, allocations: 37.66 kB / 362.8 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.233e-05/0.08697, allocations: 75.58 kB / 362.9 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.346e-05/0.08707, allocations: 67.69 kB / 363 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.726e-05/0.08709, allocations: 4 kB / 363 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001119/0.08721, allocations: 59.89 kB / 363 MB, free: 9.496 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.919e-05/0.08729, allocations: 47.78 kB / 363.1 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.481e-05/0.08738, allocations: 105.1 kB / 363.2 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002419/0.08763, allocations: 235.4 kB / 363.4 MB, free: 9.109 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.165e-06/0.08764, allocations: 4 kB / 363.4 MB, free: 9.105 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.08764, allocations: 0 / 363.4 MB, free: 9.105 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.08766, allocations: 4 kB / 363.4 MB, free: 9.102 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.0005698/0.08823, allocations: 0.5078 MB / 363.9 MB, free: 8.539 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.08827, allocations: 12.03 kB / 363.9 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.974e-05/0.08832, allocations: 34.75 kB / 364 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.635e-05/0.08837, allocations: 28.64 kB / 364 MB, free: 8.457 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002992/0.08867, allocations: 295.5 kB / 364.3 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.506e-05/0.0887, allocations: 8.375 kB / 364.3 MB, free: 8.121 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.832e-05/0.08872, allocations: 11.94 kB / 364.3 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003126/0.08904, allocations: 183.4 kB / 364.5 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.08906, allocations: 0 / 364.5 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.494e-05/0.08908, allocations: 19.88 kB / 364.5 MB, free: 7.883 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.08909, allocations: 0 / 364.5 MB, free: 7.883 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001078/0.0892, allocations: 39.91 kB / 364.6 MB, free: 7.844 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004691/0.08968, allocations: 395.2 kB / 364.9 MB, free: 7.398 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002353/0.08993, allocations: 146.5 kB / 365.1 MB, free: 7.219 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.122e-05/0.09003, allocations: 59.42 kB / 365.1 MB, free: 7.148 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.512e-05/0.09006, allocations: 8.062 kB / 365.1 MB, free: 7.141 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001655/0.09023, allocations: 79.31 kB / 365.2 MB, free: 7.051 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.493e-06/0.09024, allocations: 0 / 365.2 MB, free: 7.051 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003505/0.0906, allocations: 177.2 kB / 365.4 MB, free: 6.871 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.294e-05/0.09068, allocations: 187.9 kB / 365.6 MB, free: 6.645 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003074/0.09099, allocations: 346.8 kB / 365.9 MB, free: 6.297 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.797e-05/0.09102, allocations: 29.7 kB / 365.9 MB, free: 6.262 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.806e-05/0.0911, allocations: 132.4 kB / 366.1 MB, free: 6.125 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.134e-05/0.09113, allocations: 19.75 kB / 366.1 MB, free: 6.105 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.916e-05/0.09116, allocations: 22.08 kB / 366.1 MB, free: 6.078 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.3e-05/0.09126, allocations: 338.8 kB / 366.4 MB, free: 5.738 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.657e-05/0.09133, allocations: 27.98 kB / 366.5 MB, free: 5.711 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001044/0.09145, allocations: 103.9 kB / 366.6 MB, free: 5.582 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001476/0.0916, allocations: 97.92 kB / 366.7 MB, free: 5.465 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.09161, allocations: 4 kB / 366.7 MB, free: 5.461 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002234/0.09184, allocations: 141.2 kB / 366.8 MB, free: 5.316 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.174e-05/0.09186, allocations: 8 kB / 366.8 MB, free: 5.309 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.09187, allocations: 0 / 366.8 MB, free: 5.309 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.09188, allocations: 7.984 kB / 366.8 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.09199, allocations: 16.31 kB / 366.8 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/0.09201, allocations: 11.92 kB / 366.9 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.846e-05/0.09209, allocations: 15.92 kB / 366.9 MB, free: 5.258 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.175e-05/0.09211, allocations: 8.188 kB / 366.9 MB, free: 5.25 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.09224, allocations: 161.7 kB / 367 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.445e-05/0.09233, allocations: 81.34 kB / 367.1 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.262e-05/0.09239, allocations: 29.73 kB / 367.1 MB, free: 4.965 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.0924, allocations: 0 / 367.1 MB, free: 4.965 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.09241, allocations: 4 kB / 367.2 MB, free: 4.961 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.09242, allocations: 3.938 kB / 367.2 MB, free: 4.957 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001874/0.09261, allocations: 253.4 kB / 367.4 MB, free: 4.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.09262, allocations: 4.094 kB / 367.4 MB, free: 4.656 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.299e-05/0.0927, allocations: 19.92 kB / 367.4 MB, free: 4.637 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.09271, allocations: 0 / 367.4 MB, free: 4.637 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.09273, allocations: 4 kB / 367.4 MB, free: 4.633 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.09273, allocations: 3.984 kB / 367.4 MB, free: 4.629 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.09274, allocations: 7.938 kB / 367.4 MB, free: 4.621 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002495/0.093, allocations: 179.3 kB / 367.6 MB, free: 4.418 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.435e-05/0.0931, allocations: 120.8 kB / 367.7 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.885e-05/0.09314, allocations: 11.88 kB / 367.7 MB, free: 4.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.85e-05/0.09321, allocations: 4 kB / 367.8 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.282e-05/0.09326, allocations: 11.92 kB / 367.8 MB, free: 4.254 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.532e-05/0.09328, allocations: 8 kB / 367.8 MB, free: 4.246 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002359/0.09352, allocations: 249.9 kB / 368 MB, free: 4 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.09353, allocations: 4 kB / 368 MB, free: 3.996 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002514/0.09379, allocations: 36 kB / 368.1 MB, free: 3.961 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.001213/0.09501, allocations: 1.029 MB / 369.1 MB, free: 3.031 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001943/0.09521, allocations: 75.89 kB / 369.2 MB, free: 2.957 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.09523, allocations: 0 / 369.2 MB, free: 2.957 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.257e-05/0.0953, allocations: 35.92 kB / 369.2 MB, free: 2.922 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004061/0.09572, allocations: 76.88 kB / 369.3 MB, free: 2.848 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002248/0.09798, allocations: 2.365 MB / 371.6 MB, free: 360 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1364/0.2344, allocations: 0.7442 MB / 372.4 MB, free: 18.71 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001603/0.2346, allocations: 25.02 kB / 372.4 MB, free: 18.71 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001522/0.2348, allocations: 64.92 kB / 372.5 MB, free: 18.7 MB / 302.1 MB Notification: Performance of SimCode: time 7.81e-07/0.2348, allocations: 5.125 kB / 372.5 MB, free: 18.7 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01804/0.2528, allocations: 5.109 MB / 377.6 MB, free: 18.43 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001371/0.253, allocations: 258.6 kB / 377.8 MB, free: 18.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.682/1.935, allocations: 1.031 kB / 377.8 MB, free: 18.18 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