Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.FilterWithDifferentiation.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.Blocks.Examples.FilterWithDifferentiation,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_FilterWithDifferentiation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.FilterWithDifferentiation,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_FilterWithDifferentiation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001464/0.001464, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001768/0.001768, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.612/1.612, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001972/0.001972, allocations: 59.86 kB / 307 MB, free: 0.5703 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09236/0.09435, allocations: 50.53 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.FilterWithDifferentiation): time 0.002895/0.09729, allocations: 1.615 MB / 359.2 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005048/0.1024, allocations: 3.216 MB / 362.4 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001682/0.1026, allocations: 0 / 362.4 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00037/0.103, allocations: 55.7 kB / 362.5 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.047e-05/0.1031, allocations: 11.86 kB / 362.5 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003504/0.1066, allocations: 1.433 MB / 363.9 MB, free: 7.684 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002294/0.1068, allocations: 147.7 kB / 364 MB, free: 7.539 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001098/0.107, allocations: 21.05 kB / 364.1 MB, free: 7.516 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.42e-05/0.107, allocations: 63.77 kB / 364.1 MB, free: 7.453 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001028/0.1072, allocations: 51.7 kB / 364.2 MB, free: 7.402 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.205e-05/0.1072, allocations: 12 kB / 364.2 MB, free: 7.391 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001767/0.109, allocations: 1.386 MB / 365.6 MB, free: 6.004 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.865e-05/0.1091, allocations: 35.91 kB / 365.6 MB, free: 5.969 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.024e-05/0.1091, allocations: 47.67 kB / 365.7 MB, free: 5.922 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001201/0.1103, allocations: 1.197 MB / 366.9 MB, free: 4.723 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.768e-06/0.1103, allocations: 0 / 366.9 MB, free: 4.723 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.1104, allocations: 3.938 kB / 366.9 MB, free: 4.719 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.034e-06/0.1104, allocations: 0 / 366.9 MB, free: 4.719 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.000994/0.1114, allocations: 0.5691 MB / 367.4 MB, free: 4.102 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.1114, allocations: 8.031 kB / 367.4 MB, free: 4.094 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.219e-05/0.1115, allocations: 42.73 kB / 367.5 MB, free: 4.043 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.41e-05/0.1115, allocations: 16.75 kB / 367.5 MB, free: 4.027 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002199/0.1117, allocations: 208 kB / 367.7 MB, free: 3.785 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.342e-05/0.1118, allocations: 8.375 kB / 367.7 MB, free: 3.777 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.218e-05/0.1118, allocations: 20.11 kB / 367.7 MB, free: 3.758 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002279/0.112, allocations: 125 kB / 367.8 MB, free: 3.617 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.112, allocations: 0 / 367.8 MB, free: 3.617 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.242e-05/0.1121, allocations: 0 / 367.8 MB, free: 3.617 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.1121, allocations: 0 / 367.8 MB, free: 3.617 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001387/0.1122, allocations: 59.95 kB / 367.9 MB, free: 3.559 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005496/0.1128, allocations: 384.4 kB / 368.3 MB, free: 3.133 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003505/0.1131, allocations: 126.6 kB / 368.4 MB, free: 3 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.399e-05/0.1132, allocations: 48.89 kB / 368.4 MB, free: 2.949 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.239e-05/0.1133, allocations: 7.984 kB / 368.5 MB, free: 2.941 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.475e-05/0.1133, allocations: 30.56 kB / 368.5 MB, free: 2.902 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.332e-06/0.1133, allocations: 4 kB / 368.5 MB, free: 2.898 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.002136/0.1154, allocations: 1.217 MB / 369.7 MB, free: 1.551 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.418e-05/0.1155, allocations: 128.5 kB / 369.8 MB, free: 1.395 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001624/0.1157, allocations: 182.3 kB / 370 MB, free: 1.207 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.007e-05/0.1157, allocations: 25.7 kB / 370 MB, free: 1.176 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.47e-05/0.1158, allocations: 120.4 kB / 370.2 MB, free: 1.055 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.954e-05/0.1158, allocations: 43.27 kB / 370.2 MB, free: 1.012 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.402e-05/0.1159, allocations: 49.7 kB / 370.2 MB, free: 0.957 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.116, allocations: 322.8 kB / 370.6 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.1162, allocations: 95.94 kB / 370.7 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000182/0.1164, allocations: 140.4 kB / 370.8 MB, free: 400 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003055/0.1167, allocations: 209.5 kB / 371 MB, free: 188 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.1167, allocations: 1.219 kB / 371 MB, free: 188 kB / 302.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.1797/0.2964, allocations: 298.4 kB / 371.3 MB, free: 19.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.717e-05/0.2965, allocations: 9 kB / 371.3 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.492e-05/0.2965, allocations: 2.438 kB / 371.3 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002328/0.2968, allocations: 41.69 kB / 371.3 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001795/0.2969, allocations: 31.11 kB / 371.4 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001173/0.2981, allocations: 1.516 MB / 372.9 MB, free: 18.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001413/0.2983, allocations: 9.094 kB / 372.9 MB, free: 18.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.735e-05/0.2983, allocations: 10.38 kB / 372.9 MB, free: 18.31 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001233/0.2984, allocations: 133.5 kB / 373 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.685e-05/0.2985, allocations: 17.12 kB / 373.1 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.859e-05/0.2986, allocations: 22.7 kB / 373.1 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.766e-06/0.2986, allocations: 3.625 kB / 373.1 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.2986, allocations: 3.875 kB / 373.1 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.2986, allocations: 7.906 kB / 373.1 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002672/0.2989, allocations: 246.2 kB / 373.3 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2989, allocations: 0 / 373.3 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002873/0.2992, allocations: 50.62 kB / 373.4 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.2992, allocations: 4.875 kB / 373.4 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.469e-05/0.2992, allocations: 8.75 kB / 373.4 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.2992, allocations: 1.031 kB / 373.4 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.2992, allocations: 2.453 kB / 373.4 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006004/0.2998, allocations: 416.8 kB / 373.8 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.36e-05/0.2999, allocations: 91.88 kB / 373.9 MB, free: 17.78 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.44e-05/0.2999, allocations: 2.438 kB / 373.9 MB, free: 17.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.3, allocations: 8.859 kB / 373.9 MB, free: 17.78 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.472e-05/0.3001, allocations: 7.062 kB / 373.9 MB, free: 17.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.211e-05/0.3001, allocations: 11.41 kB / 373.9 MB, free: 17.78 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001189/0.3002, allocations: 123.2 kB / 374 MB, free: 17.7 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3002, allocations: 3.625 kB / 374 MB, free: 17.7 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.002016/0.3022, allocations: 0.515 MB / 374.6 MB, free: 17.7 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (der1.u,der2.u,der3.u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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 Backend phase and start with SimCode phase: time 0.001898/0.3042, allocations: 1.394 MB / 376 MB, free: 17.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006992/0.3049, allocations: 400.7 kB / 376.3 MB, free: 16.88 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3049, allocations: 1.438 kB / 376.3 MB, free: 16.88 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000161/0.305, allocations: 89.36 kB / 376.4 MB, free: 16.87 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003547/0.3054, allocations: 29.14 kB / 376.5 MB, free: 16.87 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002851/0.3083, allocations: 2.446 MB / 378.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002003/0.3085, allocations: 0.7311 MB / 379.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001027/0.3086, allocations: 37.03 kB / 379.7 MB, free: 14.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.218e-05/0.3087, allocations: 51.69 kB / 379.7 MB, free: 14.55 MB / 302.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3087, allocations: 0 / 379.7 MB, free: 14.55 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03614/0.3448, allocations: 9.816 MB / 389.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.183/9.528, allocations: 7.969 kB / 389.5 MB, free: 11.44 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.FilterWithDifferentiation.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.FilterWithDifferentiation.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.FilterWithDifferentiation.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.FilterWithDifferentiation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.FilterWithDifferentiation_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_FilterWithDifferentiation_fmu --startTime=0 --stopTime=0.9 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_FilterWithDifferentiation.fmu > Modelica_trunk_Modelica.Blocks.Examples.FilterWithDifferentiation.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.FilterWithDifferentiation_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/FilterWithDifferentiation/FilterWithDifferentiation.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.FilterWithDifferentiation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,Bessel.x[1],Bessel.x[2],Bessel.x[3] Variables in the result:Bessel.A_ripple,Bessel.analogFilter,Bessel.f_cut,Bessel.f_min,Bessel.filterType,Bessel.gain,Bessel.init,Bessel.normalized,Bessel.nx,Bessel.order,Bessel.u,Bessel.u_nominal,Bessel.x[1],Bessel.x[2],Bessel.x[3],Bessel.x_start[1],Bessel.x_start[2],Bessel.x_start[3],Bessel.y,Bessel.y_start,der(Bessel.x[1]),der(Bessel.x[2]),der(Bessel.x[3]),der(der(Bessel.x[2])),der(der(Bessel.x[3])),der(der(der(Bessel.x[3]))),der(der1.u),der(der2.u),der(der3.u),der1.u,der1.y,der2.u,der2.y,der3.u,der3.y,f_cut,step.height,step.offset,step.startTime,step.y,time