Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.FilterWithDifferentiation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.FilterWithDifferentiation,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_FilterWithDifferentiation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.FilterWithDifferentiation,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_FilterWithDifferentiation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 106.4 kB / 17.15 MB, free: 6.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001481/0.001481, allocations: 198 kB / 18.07 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.189/1.189, allocations: 205.1 MB / 223.9 MB, free: 12.47 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 44.56 kB / 280.1 MB, free: 3.512 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07287/0.07407, allocations: 46.63 MB / 326.7 MB, free: 4.816 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.FilterWithDifferentiation): time 0.002441/0.07655, allocations: 1.658 MB / 328.3 MB, free: 3.137 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004444/0.081, allocations: 3.592 MB / 331.9 MB, free: 15.53 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.13e-05/0.08109, allocations: 4 kB / 331.9 MB, free: 15.53 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000254/0.08136, allocations: 39.78 kB / 332 MB, free: 15.49 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.02e-05/0.08142, allocations: 15.91 kB / 332 MB, free: 15.47 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00208/0.0835, allocations: 1.061 MB / 333.1 MB, free: 14.41 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001578/0.08367, allocations: 139.6 kB / 333.2 MB, free: 14.27 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.437e-05/0.08377, allocations: 28.91 kB / 333.2 MB, free: 14.25 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.37e-05/0.08383, allocations: 47.78 kB / 333.3 MB, free: 14.2 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.016e-05/0.08391, allocations: 51.75 kB / 333.3 MB, free: 14.15 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.993e-05/0.08394, allocations: 4 kB / 333.3 MB, free: 14.14 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001179/0.08512, allocations: 1.374 MB / 334.7 MB, free: 12.77 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.268e-05/0.0852, allocations: 31.86 kB / 334.7 MB, free: 12.74 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.62e-05/0.08526, allocations: 51.66 kB / 334.8 MB, free: 12.69 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009237/0.08619, allocations: 1.189 MB / 336 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.0862, allocations: 8 kB / 336 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.81e-07/0.08621, allocations: 3.938 kB / 336 MB, free: 11.48 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.408e-06/0.08622, allocations: 0 / 336 MB, free: 11.48 MB / 286.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.000767/0.08699, allocations: 0.5574 MB / 336.5 MB, free: 10.88 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.08703, allocations: 12.03 kB / 336.5 MB, free: 10.87 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.89e-05/0.08708, allocations: 38.73 kB / 336.6 MB, free: 10.82 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.096e-05/0.08712, allocations: 20.69 kB / 336.6 MB, free: 10.8 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001957/0.08733, allocations: 208.1 kB / 336.8 MB, free: 10.56 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.788e-06/0.08734, allocations: 8.375 kB / 336.8 MB, free: 10.55 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.176e-05/0.08738, allocations: 16.11 kB / 336.8 MB, free: 10.54 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002043/0.08759, allocations: 125 kB / 337 MB, free: 10.39 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.08761, allocations: 3.984 kB / 337 MB, free: 10.39 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.08763, allocations: 0 / 337 MB, free: 10.39 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.401e-06/0.08764, allocations: 4 kB / 337 MB, free: 10.39 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001346/0.08778, allocations: 63.89 kB / 337 MB, free: 10.32 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005109/0.0883, allocations: 388.4 kB / 337.4 MB, free: 9.895 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003185/0.08863, allocations: 122.6 kB / 337.5 MB, free: 9.766 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.901e-05/0.08872, allocations: 48.83 kB / 337.6 MB, free: 9.715 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.072e-05/0.08873, allocations: 0 / 337.6 MB, free: 9.715 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.976e-05/0.08876, allocations: 30.75 kB / 337.6 MB, free: 9.676 MB / 286.1 MB Notification: Performance of pre-optimization done (n=9): time 8.62e-07/0.08877, allocations: 3.938 kB / 337.6 MB, free: 9.672 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.001948/0.09072, allocations: 1.208 MB / 338.8 MB, free: 8.332 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.719e-05/0.09079, allocations: 132.8 kB / 338.9 MB, free: 8.172 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/0.09092, allocations: 178.3 kB / 339.1 MB, free: 7.988 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.969e-05/0.09095, allocations: 29.7 kB / 339.1 MB, free: 7.953 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.441e-05/0.09101, allocations: 116.3 kB / 339.3 MB, free: 7.836 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.136e-05/0.09106, allocations: 55.25 kB / 339.3 MB, free: 7.781 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.581e-05/0.09113, allocations: 41.7 kB / 339.4 MB, free: 7.734 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 8.618e-05/0.09122, allocations: 326.8 kB / 339.7 MB, free: 7.406 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001532/0.09138, allocations: 99.94 kB / 339.8 MB, free: 7.309 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001662/0.09155, allocations: 131.4 kB / 339.9 MB, free: 7.168 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002806/0.09184, allocations: 200.9 kB / 340.1 MB, free: 6.969 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.09185, allocations: 0 / 340.1 MB, free: 6.969 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004788/0.09233, allocations: 314 kB / 340.4 MB, free: 6.652 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.09236, allocations: 4 kB / 340.4 MB, free: 6.648 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.384e-05/0.09238, allocations: 4 kB / 340.4 MB, free: 6.645 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000162/0.09254, allocations: 44.81 kB / 340.5 MB, free: 6.598 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001494/0.0927, allocations: 35.92 kB / 340.5 MB, free: 6.562 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000974/0.09368, allocations: 1.405 MB / 341.9 MB, free: 5.023 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.45e-05/0.09378, allocations: 4.031 kB / 341.9 MB, free: 5.02 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.699e-05/0.0938, allocations: 8 kB / 341.9 MB, free: 5.012 MB / 286.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.0001035/0.09391, allocations: 145.6 kB / 342 MB, free: 4.859 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.88e-05/0.09396, allocations: 15.81 kB / 342.1 MB, free: 4.844 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.991e-05/0.09401, allocations: 25.55 kB / 342.1 MB, free: 4.82 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.09402, allocations: 8.094 kB / 342.1 MB, free: 4.812 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-06/0.09403, allocations: 0 / 342.1 MB, free: 4.812 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.09404, allocations: 0 / 342.1 MB, free: 4.812 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002228/0.09426, allocations: 249.5 kB / 342.3 MB, free: 4.52 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.09427, allocations: 0 / 342.3 MB, free: 4.52 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002662/0.09454, allocations: 51.97 kB / 342.4 MB, free: 4.469 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.09455, allocations: 0 / 342.4 MB, free: 4.469 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.407e-05/0.09457, allocations: 4 kB / 342.4 MB, free: 4.465 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.09458, allocations: 3.938 kB / 342.4 MB, free: 4.461 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.09459, allocations: 0 / 342.4 MB, free: 4.461 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004791/0.09507, allocations: 419.8 kB / 342.8 MB, free: 4.035 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.872e-05/0.09512, allocations: 92.95 kB / 342.9 MB, free: 3.926 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.114e-05/0.09515, allocations: 0 / 342.9 MB, free: 3.926 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001115/0.09526, allocations: 8 kB / 342.9 MB, free: 3.918 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.62e-05/0.09531, allocations: 7.984 kB / 342.9 MB, free: 3.91 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.165e-05/0.09532, allocations: 8 kB / 342.9 MB, free: 3.902 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.108e-05/0.09541, allocations: 127.2 kB / 343 MB, free: 3.777 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09542, allocations: 0 / 343 MB, free: 3.777 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0011/0.09652, allocations: 0.5195 MB / 343.6 MB, free: 3.258 MB / 286.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.001511/0.09804, allocations: 1.393 MB / 345 MB, free: 1.84 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005561/0.09861, allocations: 386.2 kB / 345.3 MB, free: 1.438 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.09862, allocations: 0 / 345.3 MB, free: 1.438 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000141/0.09877, allocations: 91.89 kB / 345.4 MB, free: 1.348 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003074/0.09908, allocations: 32.27 kB / 345.5 MB, free: 1.316 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002593/0.1017, allocations: 2.483 MB / 347.9 MB, free: 14.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002669/0.102, allocations: 0.7322 MB / 348.7 MB, free: 13.99 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.497e-05/0.1021, allocations: 29.25 kB / 348.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.951e-05/0.1021, allocations: 43.42 kB / 348.7 MB, free: 13.92 MB / 302.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1021, allocations: 0 / 348.7 MB, free: 13.92 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0202/0.1224, allocations: 9.631 MB / 358.4 MB, free: 4.25 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000355/0.1227, allocations: 257.7 kB / 358.6 MB, free: 3.898 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.783/1.906, allocations: 0 / 358.6 MB, free: 3.898 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.FilterWithDifferentiation.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.FilterWithDifferentiation.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.FilterWithDifferentiation.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.FilterWithDifferentiation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.FilterWithDifferentiation_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_FilterWithDifferentiation_fmu --startTime=0 --stopTime=0.9 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_FilterWithDifferentiation.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.FilterWithDifferentiation.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_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