Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.FilterWithDifferentiation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.FilterWithDifferentiation,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_FilterWithDifferentiation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.FilterWithDifferentiation,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_FilterWithDifferentiation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008115/0.0008116, allocations: 171.8 kB / 16.72 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.308/1.308, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007676/0.0007676, allocations: 85.22 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002939/0.0002939, allocations: 8 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2678/0.2681, allocations: 47.58 MB / 375.2 MB, free: 45.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.FilterWithDifferentiation): time 0.001437/0.2696, allocations: 1.288 MB / 376.5 MB, free: 44.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004008/0.2736, allocations: 3.082 MB / 379.5 MB, free: 42.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001072/0.2737, allocations: 1.25 kB / 379.5 MB, free: 42.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000284/0.274, allocations: 41.73 kB / 379.6 MB, free: 42.09 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.2e-05/0.2741, allocations: 18.55 kB / 379.6 MB, free: 42.07 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002768/0.2769, allocations: 1.047 MB / 380.7 MB, free: 41.44 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001797/0.2771, allocations: 129.2 kB / 380.8 MB, free: 41.36 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.498e-05/0.2772, allocations: 26.3 kB / 380.8 MB, free: 41.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.17e-05/0.2772, allocations: 51.3 kB / 380.9 MB, free: 41.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.546e-05/0.2773, allocations: 44.41 kB / 380.9 MB, free: 41.29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.898e-05/0.2773, allocations: 3.344 kB / 380.9 MB, free: 41.29 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001376/0.2787, allocations: 1.105 MB / 382 MB, free: 40.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.797e-05/0.2788, allocations: 35.64 kB / 382 MB, free: 40.81 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.975e-05/0.2788, allocations: 68.69 kB / 382.1 MB, free: 40.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007874/0.2796, allocations: 1.078 MB / 383.2 MB, free: 40.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2796, allocations: 0 / 383.2 MB, free: 40.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.231e-05/0.2797, allocations: 1.156 kB / 383.2 MB, free: 40.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.169e-06/0.2797, allocations: 0 / 383.2 MB, free: 40.18 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0007312/0.2804, allocations: 0.5397 MB / 383.7 MB, free: 39.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.2805, allocations: 8.875 kB / 383.7 MB, free: 39.74 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.055e-05/0.2805, allocations: 42.36 kB / 383.8 MB, free: 39.7 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.649e-05/0.2805, allocations: 15.44 kB / 383.8 MB, free: 39.69 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001648/0.2807, allocations: 217.3 kB / 384 MB, free: 39.45 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.025e-05/0.2807, allocations: 3.812 kB / 384 MB, free: 39.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.009e-05/0.2808, allocations: 18.58 kB / 384 MB, free: 39.44 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000203/0.281, allocations: 127 kB / 384.2 MB, free: 39.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.281, allocations: 0 / 384.2 MB, free: 39.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/0.281, allocations: 5.281 kB / 384.2 MB, free: 39.33 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.281, allocations: 2.125 kB / 384.2 MB, free: 39.33 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001372/0.2812, allocations: 57.86 kB / 384.2 MB, free: 39.31 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004898/0.2817, allocations: 385.7 kB / 384.6 MB, free: 38.94 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003527/0.282, allocations: 132.4 kB / 384.7 MB, free: 38.86 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.96e-05/0.2821, allocations: 44.83 kB / 384.8 MB, free: 38.82 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.572e-05/0.2821, allocations: 0 / 384.8 MB, free: 38.82 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.137e-05/0.2822, allocations: 38.75 kB / 384.8 MB, free: 38.77 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 2.204e-06/0.2822, allocations: 0 / 384.8 MB, free: 38.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.001751/0.2839, allocations: 1.23 MB / 386 MB, free: 37.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.113e-05/0.284, allocations: 136.5 kB / 386.2 MB, free: 37.24 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/0.2841, allocations: 170.9 kB / 386.3 MB, free: 37.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.636e-05/0.2841, allocations: 29.7 kB / 386.4 MB, free: 37.03 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.452e-05/0.2842, allocations: 108.5 kB / 386.5 MB, free: 36.92 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.948e-05/0.2842, allocations: 55.11 kB / 386.5 MB, free: 36.87 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.849e-06/0.2842, allocations: 4 kB / 386.5 MB, free: 36.86 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.585e-05/0.2843, allocations: 326.8 kB / 386.8 MB, free: 36.54 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001328/0.2844, allocations: 103.9 kB / 386.9 MB, free: 36.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001384/0.2846, allocations: 128.9 kB / 387.1 MB, free: 36.3 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002448/0.2848, allocations: 205.8 kB / 387.3 MB, free: 36.09 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.82e-07/0.2848, allocations: 0 / 387.3 MB, free: 36.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004148/0.2852, allocations: 310.1 kB / 387.6 MB, free: 35.78 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.2853, allocations: 4 kB / 387.6 MB, free: 35.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.695e-05/0.2853, allocations: 4 kB / 387.6 MB, free: 35.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001557/0.2854, allocations: 40.81 kB / 387.6 MB, free: 35.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001394/0.2856, allocations: 31.98 kB / 387.7 MB, free: 35.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007555/0.2864, allocations: 1.417 MB / 389.1 MB, free: 34.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.332e-05/0.2864, allocations: 4.031 kB / 389.1 MB, free: 34.15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.396e-05/0.2865, allocations: 8.156 kB / 389.1 MB, free: 34.14 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.383e-05/0.2866, allocations: 149.6 kB / 389.2 MB, free: 33.98 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.163e-05/0.2866, allocations: 15.81 kB / 389.2 MB, free: 33.97 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.367e-05/0.2866, allocations: 29.52 kB / 389.3 MB, free: 33.94 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.2867, allocations: 0 / 389.3 MB, free: 33.94 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.2867, allocations: 0 / 389.3 MB, free: 33.94 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.2867, allocations: 0 / 389.3 MB, free: 33.94 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001754/0.2869, allocations: 253.5 kB / 389.5 MB, free: 33.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2869, allocations: 0 / 389.5 MB, free: 33.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002416/0.2871, allocations: 55.97 kB / 389.6 MB, free: 33.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.2871, allocations: 0 / 389.6 MB, free: 33.59 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.2871, allocations: 0.6562 kB / 389.6 MB, free: 33.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.2871, allocations: 4 kB / 389.6 MB, free: 33.59 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.2871, allocations: 3.938 kB / 389.6 MB, free: 33.58 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003878/0.2875, allocations: 426.7 kB / 390 MB, free: 33.15 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.266e-05/0.2876, allocations: 92.95 kB / 390.1 MB, free: 33.04 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.852e-05/0.2876, allocations: 0 / 390.1 MB, free: 33.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.2877, allocations: 8 kB / 390.1 MB, free: 33.04 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.233e-05/0.2878, allocations: 11.92 kB / 390.1 MB, free: 33.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.188e-06/0.2878, allocations: 4 kB / 390.1 MB, free: 33.02 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.786e-05/0.2878, allocations: 123.2 kB / 390.2 MB, free: 32.9 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2878, allocations: 0 / 390.2 MB, free: 32.9 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001559/0.2894, allocations: 0.5195 MB / 390.8 MB, free: 32.38 MB / 298.7 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 (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.001461/0.2909, allocations: 1.399 MB / 392.2 MB, free: 30.96 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005202/0.2914, allocations: 388 kB / 392.5 MB, free: 30.56 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.2914, allocations: 0 / 392.5 MB, free: 30.56 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000123/0.2916, allocations: 95.83 kB / 392.6 MB, free: 30.46 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003239/0.2919, allocations: 29.03 kB / 392.7 MB, free: 30.44 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001553/0.2934, allocations: 1.39 MB / 394 MB, free: 28.99 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001372/0.2936, allocations: 0.7441 MB / 394.8 MB, free: 28.22 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.51e-05/0.2937, allocations: 47.42 kB / 394.8 MB, free: 28.18 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2937, allocations: 0 / 394.8 MB, free: 28.18 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.651/3.945, allocations: 6.522 MB / 401.4 MB, free: 21.64 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.FilterWithDifferentiation.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.FilterWithDifferentiation.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.FilterWithDifferentiation.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.FilterWithDifferentiation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.FilterWithDifferentiation_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_FilterWithDifferentiation_fmu --startTime=0 --stopTime=0.9 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_FilterWithDifferentiation.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.FilterWithDifferentiation.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.FilterWithDifferentiation_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/FilterWithDifferentiation/FilterWithDifferentiation.csv","../files/Modelica_3.2.3_cpp_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.a[1],Bessel.analogFilter,Bessel.b[1],Bessel.c0[1],Bessel.c1[1],Bessel.cr[1],Bessel.f_cut,Bessel.f_min,Bessel.filterType,Bessel.gain,Bessel.init,Bessel.ku[1],Bessel.na,Bessel.nc0,Bessel.ncr,Bessel.normalized,Bessel.nr,Bessel.nx,Bessel.order,Bessel.r[1],Bessel.u,Bessel.u_nominal,Bessel.uu[1],Bessel.uu[2],Bessel.uu[3],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