Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Blocks_Examples_FilterWithDifferentiation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.FilterWithDifferentiation,fileNamePrefix="Modelica_4_0_0_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.001418/0.001418, allocations: 105.9 kB / 17.06 MB, free: 6.004 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.001489/0.001489, allocations: 191 kB / 18 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001006/0.001006, allocations: 47.92 kB / 350.8 MB, free: 3.785 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.2718, allocations: 49.44 MB / 400.2 MB, free: 8.637 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.FilterWithDifferentiation): time 0.003209/0.2751, allocations: 1.602 MB / 401.8 MB, free: 7.383 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004929/0.2801, allocations: 3.171 MB / 405 MB, free: 4.207 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001709/0.2803, allocations: 3.938 kB / 405 MB, free: 4.203 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003707/0.2807, allocations: 55.69 kB / 405.1 MB, free: 4.148 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.666e-05/0.2808, allocations: 7.875 kB / 405.1 MB, free: 4.141 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003767/0.2846, allocations: 1.432 MB / 406.5 MB, free: 2.719 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000321/0.2849, allocations: 147.6 kB / 406.6 MB, free: 2.574 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.285, allocations: 21.11 kB / 406.7 MB, free: 2.555 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.482e-05/0.2851, allocations: 55.83 kB / 406.7 MB, free: 2.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001005/0.2852, allocations: 51.72 kB / 406.8 MB, free: 2.449 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.207e-05/0.2853, allocations: 8 kB / 406.8 MB, free: 2.441 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001739/0.287, allocations: 1.386 MB / 408.2 MB, free: 1.055 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001041/0.2872, allocations: 31.91 kB / 408.2 MB, free: 1.023 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.14e-05/0.2872, allocations: 51.67 kB / 408.2 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001267/0.2885, allocations: 1.201 MB / 409.4 MB, free: 15.77 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.164e-06/0.2885, allocations: 3.938 kB / 409.4 MB, free: 15.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2885, allocations: 0 / 409.4 MB, free: 15.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.2886, allocations: 0 / 409.4 MB, free: 15.77 MB / 334.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.00108/0.2896, allocations: 0.5758 MB / 410 MB, free: 15.14 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/0.2897, allocations: 8.031 kB / 410 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.555e-05/0.2898, allocations: 46.67 kB / 410.1 MB, free: 15.08 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.892e-05/0.2898, allocations: 16.84 kB / 410.1 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00026/0.2901, allocations: 219.9 kB / 410.3 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.491e-05/0.2901, allocations: 8 kB / 410.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.976e-05/0.2901, allocations: 12 kB / 410.3 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002346/0.2904, allocations: 125 kB / 410.4 MB, free: 14.65 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.2904, allocations: 0 / 410.4 MB, free: 14.65 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.435e-05/0.2904, allocations: 0 / 410.4 MB, free: 14.65 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.2904, allocations: 7.984 kB / 410.5 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001395/0.2906, allocations: 55.95 kB / 410.5 MB, free: 14.59 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005916/0.2912, allocations: 384.5 kB / 410.9 MB, free: 14.16 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003674/0.2916, allocations: 126.6 kB / 411 MB, free: 14.03 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.67e-05/0.2917, allocations: 48.77 kB / 411.1 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.215e-05/0.2917, allocations: 4 kB / 411.1 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.114e-05/0.2917, allocations: 38.69 kB / 411.1 MB, free: 13.93 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.263e-06/0.2917, allocations: 4 kB / 411.1 MB, free: 13.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.002182/0.2939, allocations: 1.218 MB / 412.3 MB, free: 12.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.931e-05/0.294, allocations: 132.5 kB / 412.4 MB, free: 12.41 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001595/0.2942, allocations: 170.4 kB / 412.6 MB, free: 12.24 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.496e-05/0.2942, allocations: 29.7 kB / 412.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.352e-05/0.2943, allocations: 116.5 kB / 412.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.642e-05/0.2943, allocations: 47.55 kB / 412.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.558e-05/0.2944, allocations: 53.7 kB / 412.9 MB, free: 11.98 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.2945, allocations: 326.8 kB / 413.2 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001601/0.2947, allocations: 99.89 kB / 413.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001745/0.2949, allocations: 131.4 kB / 413.4 MB, free: 11.41 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002918/0.2952, allocations: 200.9 kB / 413.6 MB, free: 11.21 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.2952, allocations: 1.219 kB / 413.6 MB, free: 11.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000522/0.2957, allocations: 314.1 kB / 413.9 MB, free: 10.9 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.2958, allocations: 4 kB / 413.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.436e-05/0.2958, allocations: 7.984 kB / 413.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001945/0.296, allocations: 40.83 kB / 414 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001658/0.2962, allocations: 35.91 kB / 414 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001236/0.2974, allocations: 1.504 MB / 415.5 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001246/0.2976, allocations: 16.17 kB / 415.5 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.747e-05/0.2976, allocations: 4 kB / 415.5 MB, free: 9.141 MB / 334.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.0001384/0.2977, allocations: 141.7 kB / 415.7 MB, free: 8.992 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.472e-05/0.2978, allocations: 15.91 kB / 415.7 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.153e-05/0.2978, allocations: 29.47 kB / 415.7 MB, free: 8.949 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.2978, allocations: 0 / 415.7 MB, free: 8.949 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.2979, allocations: 3.938 kB / 415.7 MB, free: 8.945 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.2979, allocations: 4.031 kB / 415.7 MB, free: 8.941 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002656/0.2981, allocations: 249.5 kB / 415.9 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.2981, allocations: 0 / 415.9 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002753/0.2984, allocations: 47.97 kB / 416 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.2984, allocations: 11.92 kB / 416 MB, free: 8.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.899e-05/0.2985, allocations: 7.938 kB / 416 MB, free: 8.582 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.2985, allocations: 3.938 kB / 416 MB, free: 8.578 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2985, allocations: 0 / 416 MB, free: 8.578 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005089/0.299, allocations: 415.2 kB / 416.4 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.961e-05/0.2991, allocations: 89.06 kB / 416.5 MB, free: 8.051 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.557e-05/0.2991, allocations: 7.938 kB / 416.5 MB, free: 8.043 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001085/0.2992, allocations: 4 kB / 416.5 MB, free: 8.039 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.903e-05/0.2993, allocations: 12.03 kB / 416.5 MB, free: 8.027 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.428e-06/0.2993, allocations: 4 kB / 416.5 MB, free: 8.023 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.167e-05/0.2994, allocations: 132.2 kB / 416.7 MB, free: 7.895 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2994, allocations: 0 / 416.7 MB, free: 7.895 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001548/0.3009, allocations: 0.5116 MB / 417.2 MB, free: 7.383 MB / 334.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.001908/0.3028, allocations: 1.405 MB / 418.6 MB, free: 5.961 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000723/0.3036, allocations: 393.8 kB / 419 MB, free: 5.551 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.3036, allocations: 0 / 419 MB, free: 5.551 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000157/0.3038, allocations: 95.25 kB / 419.1 MB, free: 5.461 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003581/0.3041, allocations: 23.98 kB / 419.1 MB, free: 5.438 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002977/0.3071, allocations: 2.457 MB / 421.5 MB, free: 2.891 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002923/0.3075, allocations: 0.7397 MB / 422.3 MB, free: 2.125 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001059/0.3076, allocations: 29.06 kB / 422.3 MB, free: 2.094 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.041e-05/0.3077, allocations: 43.42 kB / 422.4 MB, free: 2.051 MB / 334.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3077, allocations: 0 / 422.4 MB, free: 2.051 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03675/0.3444, allocations: 9.896 MB / 432.2 MB, free: 8.273 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.521/9.866, allocations: 4.062 kB / 432.3 MB, free: 8.27 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.FilterWithDifferentiation.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.FilterWithDifferentiation.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.FilterWithDifferentiation.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.FilterWithDifferentiation.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Blocks.Examples.FilterWithDifferentiation_res.csv --start-time 0 --stop-time 0.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00036 Modelica_4_0_0_Modelica_Blocks_Examples_FilterWithDifferentiation.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.FilterWithDifferentiation.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.FilterWithDifferentiation_res.csv","/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_4.0.0_Modelica.Blocks.Examples.FilterWithDifferentiation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches