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.001389/0.001389, allocations: 111 kB / 17.06 MB, free: 5.957 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.00144/0.00144, allocations: 198.9 kB / 18.01 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.109/2.109, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00159/0.00159, allocations: 51.91 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4958/0.4974, allocations: 49.45 MB / 400.2 MB, free: 8.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.FilterWithDifferentiation): time 0.004468/0.5019, allocations: 1.604 MB / 401.8 MB, free: 7.125 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007229/0.5092, allocations: 3.155 MB / 405 MB, free: 4.027 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002449/0.5095, allocations: 4 kB / 405 MB, free: 4.023 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005088/0.51, allocations: 51.69 kB / 405 MB, free: 3.973 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.384e-05/0.5102, allocations: 11.88 kB / 405.1 MB, free: 3.961 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005276/0.5155, allocations: 1.434 MB / 406.5 MB, free: 2.535 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003829/0.5159, allocations: 151.6 kB / 406.6 MB, free: 2.387 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001496/0.5161, allocations: 17.12 kB / 406.7 MB, free: 2.371 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.971e-05/0.5162, allocations: 55.83 kB / 406.7 MB, free: 2.316 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001356/0.5163, allocations: 51.7 kB / 406.8 MB, free: 2.266 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.983e-05/0.5164, allocations: 12 kB / 406.8 MB, free: 2.254 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002327/0.5187, allocations: 1.382 MB / 408.1 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001125/0.5188, allocations: 35.84 kB / 408.2 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.737e-05/0.5189, allocations: 51.67 kB / 408.2 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001627/0.5206, allocations: 1.205 MB / 409.4 MB, free: 15.58 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.155e-06/0.5206, allocations: 0 / 409.4 MB, free: 15.58 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.789e-06/0.5206, allocations: 0 / 409.4 MB, free: 15.58 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.437e-05/0.5206, allocations: 7.938 kB / 409.4 MB, free: 15.57 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.001409/0.5221, allocations: 0.5575 MB / 410 MB, free: 14.96 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.535e-05/0.5221, allocations: 8.031 kB / 410 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.733e-05/0.5222, allocations: 42.73 kB / 410.1 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.486e-05/0.5223, allocations: 16.75 kB / 410.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003604/0.5226, allocations: 223.8 kB / 410.3 MB, free: 14.63 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.772e-05/0.5227, allocations: 4 kB / 410.3 MB, free: 14.63 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.311e-05/0.5227, allocations: 11.91 kB / 410.3 MB, free: 14.62 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003466/0.5231, allocations: 129 kB / 410.4 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.706e-05/0.5231, allocations: 0 / 410.4 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.668e-05/0.5231, allocations: 0 / 410.4 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.5231, allocations: 4 kB / 410.4 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001883/0.5233, allocations: 55.95 kB / 410.5 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000808/0.5242, allocations: 384.5 kB / 410.9 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004842/0.5247, allocations: 130.5 kB / 411 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001248/0.5248, allocations: 44.83 kB / 411 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.926e-05/0.5248, allocations: 0 / 411 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.413e-05/0.5249, allocations: 34.56 kB / 411.1 MB, free: 13.76 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.162e-06/0.5249, allocations: 0 / 411.1 MB, free: 13.76 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.002953/0.5278, allocations: 1.23 MB / 412.3 MB, free: 12.4 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.715e-05/0.528, allocations: 132.5 kB / 412.4 MB, free: 12.24 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002069/0.5282, allocations: 170.4 kB / 412.6 MB, free: 12.07 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.07e-05/0.5282, allocations: 29.7 kB / 412.6 MB, free: 12.03 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.153e-05/0.5283, allocations: 108.5 kB / 412.7 MB, free: 11.92 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.777e-05/0.5284, allocations: 59.19 kB / 412.8 MB, free: 11.86 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000105/0.5285, allocations: 41.7 kB / 412.8 MB, free: 11.82 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.5287, allocations: 334.8 kB / 413.2 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002247/0.5289, allocations: 95.95 kB / 413.2 MB, free: 11.39 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002647/0.5292, allocations: 131.3 kB / 413.4 MB, free: 11.25 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004397/0.5296, allocations: 208.8 kB / 413.6 MB, free: 11.04 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.5297, allocations: 0 / 413.6 MB, free: 11.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007543/0.5304, allocations: 310.1 kB / 413.9 MB, free: 10.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/0.5305, allocations: 4 kB / 413.9 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.646e-05/0.5305, allocations: 7.984 kB / 413.9 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002565/0.5308, allocations: 40.83 kB / 413.9 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002258/0.531, allocations: 35.91 kB / 414 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001821/0.5328, allocations: 1.519 MB / 415.5 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001318/0.533, allocations: 11.98 kB / 415.5 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.28e-05/0.533, allocations: 4 kB / 415.5 MB, free: 8.957 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.0001934/0.5332, allocations: 141.9 kB / 415.6 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.484e-05/0.5333, allocations: 11.81 kB / 415.7 MB, free: 8.797 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.037e-05/0.5333, allocations: 25.47 kB / 415.7 MB, free: 8.773 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.5334, allocations: 0 / 415.7 MB, free: 8.773 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.5334, allocations: 0 / 415.7 MB, free: 8.773 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.5334, allocations: 4 kB / 415.7 MB, free: 8.77 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003841/0.5338, allocations: 249.5 kB / 415.9 MB, free: 8.477 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.5338, allocations: 0 / 415.9 MB, free: 8.477 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003713/0.5342, allocations: 55.91 kB / 416 MB, free: 8.422 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.5342, allocations: 3.984 kB / 416 MB, free: 8.418 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.996e-05/0.5342, allocations: 3.938 kB / 416 MB, free: 8.414 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.5342, allocations: 4 kB / 416 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.5342, allocations: 0 / 416 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007424/0.535, allocations: 411.1 kB / 416.4 MB, free: 7.992 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.408e-05/0.5351, allocations: 92.92 kB / 416.5 MB, free: 7.883 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.978e-05/0.5351, allocations: 15.88 kB / 416.5 MB, free: 7.867 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00015/0.5353, allocations: 8 kB / 416.5 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.497e-05/0.5354, allocations: 8.172 kB / 416.5 MB, free: 7.852 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-05/0.5354, allocations: 8.359 kB / 416.5 MB, free: 7.844 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001442/0.5355, allocations: 132.2 kB / 416.7 MB, free: 7.715 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5355, allocations: 0 / 416.7 MB, free: 7.715 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002633/0.5382, allocations: 0.5117 MB / 417.2 MB, free: 7.203 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.00301/0.5412, allocations: 1.39 MB / 418.6 MB, free: 5.797 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009968/0.5422, allocations: 393.9 kB / 418.9 MB, free: 5.387 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.5422, allocations: 4 kB / 418.9 MB, free: 5.383 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002126/0.5425, allocations: 95.11 kB / 419 MB, free: 5.293 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004926/0.543, allocations: 32.03 kB / 419.1 MB, free: 5.262 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004513/0.5475, allocations: 2.434 MB / 421.5 MB, free: 2.738 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000451/0.548, allocations: 0.7358 MB / 422.2 MB, free: 1.977 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001516/0.5482, allocations: 33.05 kB / 422.3 MB, free: 1.941 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001224/0.5483, allocations: 47.42 kB / 422.3 MB, free: 1.895 MB / 334.1 MB Notification: Performance of SimCode: time 1.002e-06/0.5483, allocations: 0 / 422.3 MB, free: 1.895 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05528/0.6036, allocations: 9.956 MB / 432.3 MB, free: 8.051 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.94/21.55, allocations: 4.062 kB / 432.3 MB, free: 8.047 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.FilterWithDifferentiation_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_FilterWithDifferentiation_fmu --startTime=0 --stopTime=0.9 --timeout=50 --tolerance=1e-06 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.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_4.0.0_Modelica.Blocks.Examples.FilterWithDifferentiation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches