Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.FilterWithDifferentiation.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.Blocks.Examples.FilterWithDifferentiation,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_FilterWithDifferentiation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.FilterWithDifferentiation,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_FilterWithDifferentiation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00116/0.00116, allocations: 195 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 226.5 MB / 244.7 MB, free: 8.105 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007428/0.0007427, allocations: 96.34 kB / 296.7 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002514/0.0002515, allocations: 8 kB / 356.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2293/0.2296, allocations: 51.3 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.FilterWithDifferentiation): time 0.001398/0.231, allocations: 1.312 MB / 409.4 MB, free: 26.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003337/0.2344, allocations: 3.071 MB / 412.5 MB, free: 23.33 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.95e-05/0.2345, allocations: 0 / 412.5 MB, free: 23.33 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002644/0.2348, allocations: 47.78 kB / 412.6 MB, free: 23.28 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.9e-05/0.2348, allocations: 11.91 kB / 412.6 MB, free: 23.27 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002195/0.237, allocations: 1.058 MB / 413.6 MB, free: 22.22 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001454/0.2372, allocations: 123.7 kB / 413.7 MB, free: 22.1 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.353e-05/0.2373, allocations: 22.36 kB / 413.8 MB, free: 22.07 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.64e-05/0.2373, allocations: 43.84 kB / 413.8 MB, free: 22.03 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.824e-05/0.2374, allocations: 43.78 kB / 413.9 MB, free: 21.99 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.689e-05/0.2374, allocations: 8 kB / 413.9 MB, free: 21.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009106/0.2384, allocations: 1.105 MB / 415 MB, free: 20.88 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.54e-05/0.2384, allocations: 31.89 kB / 415 MB, free: 20.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.928e-05/0.2385, allocations: 69.44 kB / 415.1 MB, free: 20.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005857/0.2391, allocations: 1.084 MB / 416.1 MB, free: 19.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.2391, allocations: 0 / 416.1 MB, free: 19.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2391, allocations: 4 kB / 416.2 MB, free: 19.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.977e-06/0.2391, allocations: 0 / 416.2 MB, free: 19.68 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.000626/0.2397, allocations: 0.5381 MB / 416.7 MB, free: 19.09 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.2398, allocations: 8.031 kB / 416.7 MB, free: 19.09 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.326e-05/0.2398, allocations: 42.73 kB / 416.7 MB, free: 19.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.272e-05/0.2399, allocations: 16.75 kB / 416.8 MB, free: 19.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001615/0.24, allocations: 216 kB / 417 MB, free: 18.77 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.107e-05/0.24, allocations: 4.375 kB / 417 MB, free: 18.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.702e-05/0.2401, allocations: 20.06 kB / 417 MB, free: 18.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001875/0.2403, allocations: 121.1 kB / 417.1 MB, free: 18.61 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.2403, allocations: 0 / 417.1 MB, free: 18.61 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.2403, allocations: 8 kB / 417.1 MB, free: 18.6 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.2403, allocations: 0 / 417.1 MB, free: 18.6 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001381/0.2405, allocations: 59.95 kB / 417.2 MB, free: 18.54 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004524/0.2409, allocations: 392.4 kB / 417.6 MB, free: 18.11 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003015/0.2412, allocations: 130.5 kB / 417.7 MB, free: 17.97 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.502e-05/0.2413, allocations: 48.83 kB / 417.7 MB, free: 17.92 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.313e-05/0.2413, allocations: 4 kB / 417.7 MB, free: 17.92 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.651e-05/0.2414, allocations: 30.56 kB / 417.8 MB, free: 17.88 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.132e-06/0.2414, allocations: 0 / 417.8 MB, free: 17.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.001749/0.2431, allocations: 1.224 MB / 419 MB, free: 16.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.359e-05/0.2432, allocations: 132.5 kB / 419.1 MB, free: 16.36 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/0.2433, allocations: 175.3 kB / 419.3 MB, free: 16.18 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.549e-05/0.2433, allocations: 29.7 kB / 419.3 MB, free: 16.15 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.124e-05/0.2433, allocations: 108.5 kB / 419.4 MB, free: 16.04 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.146e-05/0.2434, allocations: 59.09 kB / 419.5 MB, free: 15.98 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.232e-05/0.2434, allocations: 8 kB / 419.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.103e-05/0.2435, allocations: 330.8 kB / 419.8 MB, free: 15.64 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001343/0.2436, allocations: 95.95 kB / 419.9 MB, free: 15.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001487/0.2438, allocations: 141.6 kB / 420 MB, free: 15.4 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002749/0.244, allocations: 200.8 kB / 420.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.72e-07/0.2441, allocations: 0 / 420.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004534/0.2445, allocations: 306.4 kB / 420.5 MB, free: 14.89 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/0.2445, allocations: 4 kB / 420.5 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.66e-05/0.2446, allocations: 7.984 kB / 420.6 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001739/0.2447, allocations: 44.77 kB / 420.6 MB, free: 14.83 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.2449, allocations: 29.2 kB / 420.6 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008344/0.2457, allocations: 1.405 MB / 422 MB, free: 13.26 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.943e-05/0.2458, allocations: 12.19 kB / 422 MB, free: 13.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.428e-05/0.2459, allocations: 7.984 kB / 422.1 MB, free: 13.24 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 9.609e-05/0.246, allocations: 141.7 kB / 422.2 MB, free: 13.09 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.261e-05/0.246, allocations: 15.81 kB / 422.2 MB, free: 13.08 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.392e-05/0.246, allocations: 25.53 kB / 422.2 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.2461, allocations: 0 / 422.2 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-06/0.2461, allocations: 0 / 422.2 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.2461, allocations: 0 / 422.2 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001865/0.2463, allocations: 253.5 kB / 422.5 MB, free: 12.76 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.2463, allocations: 4 kB / 422.5 MB, free: 12.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002485/0.2465, allocations: 55.91 kB / 422.5 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.2465, allocations: 3.938 kB / 422.5 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.2466, allocations: 7.922 kB / 422.5 MB, free: 12.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.2466, allocations: 4 kB / 422.6 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.2466, allocations: 48 / 422.6 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004137/0.247, allocations: 430 kB / 423 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.421e-05/0.247, allocations: 84.92 kB / 423.1 MB, free: 12.15 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.878e-05/0.247, allocations: 7.938 kB / 423.1 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.2472, allocations: 8 kB / 423.1 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.062e-05/0.2472, allocations: 8.031 kB / 423.1 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.227e-06/0.2472, allocations: 4 kB / 423.1 MB, free: 12.12 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.089e-05/0.2473, allocations: 127.2 kB / 423.2 MB, free: 12 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2473, allocations: 4 kB / 423.2 MB, free: 11.99 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00126/0.2486, allocations: 0.5156 MB / 423.7 MB, free: 11.48 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.001352/0.2499, allocations: 1.389 MB / 425.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005341/0.2505, allocations: 382 kB / 425.5 MB, free: 9.672 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.2505, allocations: 0 / 425.5 MB, free: 9.672 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001294/0.2506, allocations: 99.88 kB / 425.6 MB, free: 9.574 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003107/0.2509, allocations: 27.92 kB / 425.6 MB, free: 9.547 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001579/0.2525, allocations: 1.407 MB / 427 MB, free: 8.074 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000136/0.2527, allocations: 0.7399 MB / 427.8 MB, free: 7.309 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.599e-05/0.2528, allocations: 47.42 kB / 427.8 MB, free: 7.262 MB / 298.7 MB Notification: Performance of SimCode: time 6.91e-07/0.2528, allocations: 0 / 427.8 MB, free: 7.262 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.748/4.001, allocations: 6.53 MB / 434.3 MB, free: 0.7227 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.FilterWithDifferentiation.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.FilterWithDifferentiation.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.FilterWithDifferentiation.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.FilterWithDifferentiation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Blocks.Examples.FilterWithDifferentiation_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Blocks_Examples_FilterWithDifferentiation_fmu --startTime=0 --stopTime=0.9 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Blocks_Examples_FilterWithDifferentiation.fmu > Modelica_trunk_cpp_Modelica.Blocks.Examples.FilterWithDifferentiation.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_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