Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.FractionalDelay.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.FractionalDelay,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_FractionalDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.FractionalDelay,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_FractionalDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001244/0.001244, allocations: 195.5 kB / 17.38 MB, free: 4.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 226.5 MB / 244.7 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009062/0.0009062, allocations: 92.23 kB / 296.7 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000222/0.0002221, allocations: 7.938 kB / 356.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2022/0.2024, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.FractionalDelay): time 0.001535/0.204, allocations: 1.316 MB / 409.5 MB, free: 26.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008306/0.2048, allocations: 0.5341 MB / 410 MB, free: 25.82 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.03e-05/0.2049, allocations: 4 kB / 410 MB, free: 25.82 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001877/0.2051, allocations: 15.94 kB / 410 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.923e-05/0.2052, allocations: 7.922 kB / 410 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003711/0.2056, allocations: 60.67 kB / 410.1 MB, free: 25.74 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.615e-05/0.2057, allocations: 59.83 kB / 410.1 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.849e-05/0.2058, allocations: 13.78 kB / 410.1 MB, free: 25.67 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001198/0.2059, allocations: 31.86 kB / 410.2 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.859e-05/0.206, allocations: 31.83 kB / 410.2 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.512e-05/0.206, allocations: 5.25 kB / 410.2 MB, free: 25.6 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.783e-05/0.2061, allocations: 4 kB / 410.2 MB, free: 25.6 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.777e-05/0.2061, allocations: 19.92 kB / 410.2 MB, free: 25.58 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.857e-05/0.2062, allocations: 50.05 kB / 410.3 MB, free: 25.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.564e-05/0.2063, allocations: 52.64 kB / 410.3 MB, free: 25.47 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2063, allocations: 0 / 410.3 MB, free: 25.47 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2063, allocations: 0 / 410.3 MB, free: 25.47 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.2063, allocations: 0.9062 kB / 410.3 MB, free: 25.47 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004383/0.2067, allocations: 378 kB / 410.7 MB, free: 25.06 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.2068, allocations: 8.031 kB / 410.7 MB, free: 25.05 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.226e-05/0.2068, allocations: 38.75 kB / 410.8 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001397/0.207, allocations: 22.08 kB / 410.8 MB, free: 24.98 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001425/0.2071, allocations: 204 kB / 411 MB, free: 24.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.894e-05/0.2071, allocations: 7.406 kB / 411 MB, free: 24.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.119e-05/0.2072, allocations: 15.88 kB / 411 MB, free: 24.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003413/0.2075, allocations: 151.5 kB / 411.1 MB, free: 24.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.879e-06/0.2075, allocations: 3.984 kB / 411.1 MB, free: 24.56 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.317e-06/0.2075, allocations: 3.938 kB / 411.1 MB, free: 24.56 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.2076, allocations: 0 / 411.1 MB, free: 24.56 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001008/0.2077, allocations: 35.92 kB / 411.2 MB, free: 24.52 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002478/0.2079, allocations: 288.2 kB / 411.5 MB, free: 24.19 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001078/0.208, allocations: 91.7 kB / 411.6 MB, free: 24.07 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.164e-05/0.2081, allocations: 46.69 kB / 411.6 MB, free: 24.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.848e-05/0.2081, allocations: 0 / 411.6 MB, free: 24.02 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.326e-05/0.2082, allocations: 38.56 kB / 411.6 MB, free: 23.97 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 8.02e-07/0.2082, allocations: 0 / 411.6 MB, free: 23.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003439/0.2085, allocations: 109.5 kB / 411.7 MB, free: 23.86 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.056e-05/0.2086, allocations: 114.8 kB / 411.9 MB, free: 23.72 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.109e-05/0.2087, allocations: 150 kB / 412 MB, free: 23.56 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.966e-06/0.2087, allocations: 29.7 kB / 412 MB, free: 23.53 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.66e-05/0.2087, allocations: 84.14 kB / 412.1 MB, free: 23.44 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.648e-05/0.2087, allocations: 15.89 kB / 412.1 MB, free: 23.43 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.168e-06/0.2087, allocations: 0 / 412.1 MB, free: 23.43 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.777e-05/0.2088, allocations: 314.8 kB / 412.4 MB, free: 23.11 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.866e-05/0.2088, allocations: 19.98 kB / 412.5 MB, free: 23.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.402e-05/0.2089, allocations: 62 kB / 412.5 MB, free: 23.01 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001016/0.209, allocations: 93.86 kB / 412.6 MB, free: 22.89 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.209, allocations: 0 / 412.6 MB, free: 22.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001852/0.2092, allocations: 105.5 kB / 412.7 MB, free: 22.79 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.2092, allocations: 8 kB / 412.7 MB, free: 22.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.2092, allocations: 3.984 kB / 412.7 MB, free: 22.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.2092, allocations: 4.188 kB / 412.7 MB, free: 22.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001262/0.2094, allocations: 15.94 kB / 412.7 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.2094, allocations: 3.938 kB / 412.7 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.96e-05/0.2094, allocations: 19.92 kB / 412.8 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.606e-06/0.2095, allocations: 4 kB / 412.8 MB, free: 22.73 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 2 (fractionalDelay.first,$CLKPRE.fractionalDelay.first) * Number of discrete states: 0 () * Number of clocked states: 2 (fractionalDelay.first,fractionalDelay.u_buffer[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.728e-05/0.2096, allocations: 118 kB / 412.9 MB, free: 22.6 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.84e-05/0.2097, allocations: 73.53 kB / 413 MB, free: 22.52 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.045e-05/0.2097, allocations: 16.3 kB / 413 MB, free: 22.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.2097, allocations: 0 / 413 MB, free: 22.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.2097, allocations: 4 kB / 413 MB, free: 22.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.2097, allocations: 3.938 kB / 413 MB, free: 22.49 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001194/0.2098, allocations: 177.9 kB / 413.2 MB, free: 22.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.2099, allocations: 7.938 kB / 413.2 MB, free: 22.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.328e-05/0.2099, allocations: 15.98 kB / 413.2 MB, free: 22.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.2099, allocations: 4.031 kB / 413.2 MB, free: 22.24 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-06/0.2099, allocations: 8 kB / 413.2 MB, free: 22.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.21, allocations: 3.938 kB / 413.2 MB, free: 22.23 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.21, allocations: 0 / 413.2 MB, free: 22.23 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002005/0.2102, allocations: 205 kB / 413.4 MB, free: 22.01 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.946e-05/0.2102, allocations: 93 kB / 413.5 MB, free: 21.9 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.324e-05/0.2103, allocations: 7.984 kB / 413.5 MB, free: 21.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.294e-05/0.2103, allocations: 8 kB / 413.5 MB, free: 21.88 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.849e-05/0.2104, allocations: 3.938 kB / 413.5 MB, free: 21.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.23e-06/0.2104, allocations: 0 / 413.5 MB, free: 21.88 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.638e-05/0.2104, allocations: 113.7 kB / 413.6 MB, free: 21.77 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2105, allocations: 0 / 413.6 MB, free: 21.77 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002211/0.2107, allocations: 12 kB / 413.6 MB, free: 21.76 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (fractionalDelay.first) * Number of discrete states: 0 () * Number of clocked states: 2 (fractionalDelay.u_buffer[1],fractionalDelay.first) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004284/0.2111, allocations: 0.7649 MB / 414.4 MB, free: 20.96 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001577/0.2113, allocations: 59.84 kB / 414.5 MB, free: 20.9 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2113, allocations: 4 kB / 414.5 MB, free: 20.9 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.365e-05/0.2114, allocations: 4 kB / 414.5 MB, free: 20.89 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003413/0.2117, allocations: 50.83 kB / 414.5 MB, free: 20.85 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008981/0.2126, allocations: 0.6622 MB / 415.2 MB, free: 20.1 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000107/0.2127, allocations: 0.7043 MB / 415.9 MB, free: 19.37 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.702e-05/0.2128, allocations: 31.36 kB / 415.9 MB, free: 19.34 MB / 298.7 MB Notification: Performance of SimCode: time 1.332e-06/0.2128, allocations: 0 / 415.9 MB, free: 19.34 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.834/3.047, allocations: 1.317 MB / 417.2 MB, free: 18.03 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.FractionalDelay.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.FractionalDelay.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.FractionalDelay.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.FractionalDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.FractionalDelay_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_FractionalDelay_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_FractionalDelay.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.FractionalDelay.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.FractionalDelay_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/FractionalDelay/FractionalDelay.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.FractionalDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,fractionalDelay.y Variables in the result:fractionalDelay.first,fractionalDelay.n,fractionalDelay.resolution,fractionalDelay.shift,fractionalDelay.u,fractionalDelay.u_buffer[1],fractionalDelay.u_buffer[2],fractionalDelay.y,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,previous(fractionalDelay.first),previous(fractionalDelay.u_buffer[1]),sample1.u,sample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time