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.001055/0.001055, allocations: 100.4 kB / 17.58 MB, free: 5.418 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.001096/0.001096, allocations: 192.1 kB / 18.51 MB, free: 4.508 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.229/1.229, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001184/0.001184, allocations: 51.92 kB / 280.7 MB, free: 3.09 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07132/0.07251, allocations: 46.63 MB / 327.4 MB, free: 4.398 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.FilterWithDifferentiation): time 0.003054/0.07561, allocations: 1.605 MB / 329 MB, free: 2.77 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004671/0.08031, allocations: 3.212 MB / 332.2 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001062/0.08044, allocations: 0 / 332.2 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002793/0.08076, allocations: 51.7 kB / 332.2 MB, free: 15.49 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.738e-05/0.08083, allocations: 15.86 kB / 332.2 MB, free: 15.48 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003068/0.08391, allocations: 1.423 MB / 333.7 MB, free: 14.05 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001986/0.08412, allocations: 139.7 kB / 333.8 MB, free: 13.91 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.08422, allocations: 36.83 kB / 333.8 MB, free: 13.88 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.021e-05/0.08429, allocations: 55.78 kB / 333.9 MB, free: 13.82 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.256e-05/0.08439, allocations: 51.77 kB / 333.9 MB, free: 13.77 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.231e-05/0.08442, allocations: 8 kB / 334 MB, free: 13.77 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001406/0.08583, allocations: 1.374 MB / 335.3 MB, free: 12.39 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.65e-05/0.08592, allocations: 43.83 kB / 335.4 MB, free: 12.35 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.949e-05/0.08599, allocations: 51.67 kB / 335.4 MB, free: 12.3 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009433/0.08694, allocations: 1.197 MB / 336.6 MB, free: 11.1 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.08695, allocations: 0 / 336.6 MB, free: 11.1 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.08696, allocations: 0 / 336.6 MB, free: 11.1 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.089e-06/0.08697, allocations: 4 kB / 336.6 MB, free: 11.09 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.0008497/0.08783, allocations: 0.5652 MB / 337.2 MB, free: 10.48 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.08787, allocations: 8.031 kB / 337.2 MB, free: 10.47 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.965e-05/0.08792, allocations: 42.73 kB / 337.2 MB, free: 10.42 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.088e-05/0.08796, allocations: 16.75 kB / 337.3 MB, free: 10.41 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001951/0.08816, allocations: 208.1 kB / 337.5 MB, free: 10.16 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.499e-05/0.08819, allocations: 12.36 kB / 337.5 MB, free: 10.15 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.14e-05/0.08823, allocations: 20.11 kB / 337.5 MB, free: 10.13 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002146/0.08845, allocations: 125 kB / 337.6 MB, free: 9.992 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.08847, allocations: 0 / 337.6 MB, free: 9.992 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.08848, allocations: 0 / 337.6 MB, free: 9.992 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.0885, allocations: 4 kB / 337.6 MB, free: 9.988 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001362/0.08864, allocations: 57.16 kB / 337.7 MB, free: 9.934 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005294/0.08917, allocations: 392.4 kB / 338.1 MB, free: 9.5 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003318/0.08952, allocations: 118.6 kB / 338.2 MB, free: 9.375 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.785e-05/0.08962, allocations: 56.89 kB / 338.2 MB, free: 9.316 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.219e-05/0.08965, allocations: 8 kB / 338.2 MB, free: 9.309 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.768e-05/0.08967, allocations: 30.56 kB / 338.3 MB, free: 9.27 MB / 286.1 MB Notification: Performance of pre-optimization done (n=9): time 1.163e-06/0.08968, allocations: 0 / 338.3 MB, free: 9.27 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.002075/0.09176, allocations: 1.211 MB / 339.5 MB, free: 7.926 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.08e-05/0.09183, allocations: 132.5 kB / 339.6 MB, free: 7.766 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001304/0.09197, allocations: 174.3 kB / 339.8 MB, free: 7.586 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.953e-05/0.092, allocations: 29.7 kB / 339.8 MB, free: 7.551 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.3e-05/0.09206, allocations: 116.4 kB / 339.9 MB, free: 7.434 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.068e-05/0.09211, allocations: 47.27 kB / 340 MB, free: 7.387 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.189e-05/0.09219, allocations: 45.7 kB / 340 MB, free: 7.336 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.185e-05/0.09229, allocations: 326.8 kB / 340.3 MB, free: 7.008 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001589/0.09245, allocations: 99.94 kB / 340.4 MB, free: 6.91 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001734/0.09264, allocations: 131.4 kB / 340.6 MB, free: 6.77 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002938/0.09294, allocations: 206.1 kB / 340.8 MB, free: 6.566 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-06/0.09295, allocations: 0 / 340.8 MB, free: 6.566 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004876/0.09344, allocations: 306.1 kB / 341.1 MB, free: 6.258 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.09346, allocations: 4 kB / 341.1 MB, free: 6.254 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.456e-05/0.09348, allocations: 4 kB / 341.1 MB, free: 6.25 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001684/0.09366, allocations: 44.81 kB / 341.1 MB, free: 6.203 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001548/0.09382, allocations: 35.92 kB / 341.1 MB, free: 6.168 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0011/0.09493, allocations: 1.519 MB / 342.7 MB, free: 4.508 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001012/0.09505, allocations: 8.031 kB / 342.7 MB, free: 4.5 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.343e-05/0.09507, allocations: 7.938 kB / 342.7 MB, free: 4.492 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.0001102/0.09519, allocations: 137.9 kB / 342.8 MB, free: 4.348 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.008e-05/0.09523, allocations: 15.81 kB / 342.8 MB, free: 4.332 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.815e-05/0.09529, allocations: 25.52 kB / 342.9 MB, free: 4.309 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.0953, allocations: 3.938 kB / 342.9 MB, free: 4.305 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.217e-06/0.09531, allocations: 3.938 kB / 342.9 MB, free: 4.301 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.09531, allocations: 0 / 342.9 MB, free: 4.301 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002385/0.09556, allocations: 245.5 kB / 343.1 MB, free: 4.012 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.09557, allocations: 0 / 343.1 MB, free: 4.012 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002705/0.09584, allocations: 55.91 kB / 343.2 MB, free: 3.957 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.09586, allocations: 8 kB / 343.2 MB, free: 3.949 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.09587, allocations: 0 / 343.2 MB, free: 3.949 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.09588, allocations: 0 / 343.2 MB, free: 3.949 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.09589, allocations: 7.938 kB / 343.2 MB, free: 3.941 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004934/0.09639, allocations: 413.2 kB / 343.6 MB, free: 3.523 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.147e-05/0.09644, allocations: 92.95 kB / 343.7 MB, free: 3.414 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.101e-05/0.09647, allocations: 0 / 343.7 MB, free: 3.414 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.09658, allocations: 12 kB / 343.7 MB, free: 3.402 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.097e-05/0.09663, allocations: 11.92 kB / 343.7 MB, free: 3.391 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.164e-05/0.09665, allocations: 7.938 kB / 343.7 MB, free: 3.383 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.548e-05/0.09674, allocations: 136.2 kB / 343.8 MB, free: 3.25 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09675, allocations: 0 / 343.8 MB, free: 3.25 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.001341/0.09809, allocations: 0.5117 MB / 344.3 MB, free: 2.738 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.00163/0.09973, allocations: 1.38 MB / 345.7 MB, free: 1.332 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000639/0.1004, allocations: 409.8 kB / 346.1 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1004, allocations: 0 / 346.1 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001525/0.1006, allocations: 91.94 kB / 346.2 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003211/0.1009, allocations: 31.92 kB / 346.2 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002644/0.1035, allocations: 2.45 MB / 348.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000244/0.1038, allocations: 0.7319 MB / 349.4 MB, free: 13.49 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.902e-05/0.1039, allocations: 33.23 kB / 349.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.703e-05/0.104, allocations: 47.42 kB / 349.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.104, allocations: 0 / 349.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02918/0.1332, allocations: 9.809 MB / 359.3 MB, free: 3.539 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.85/9.984, allocations: 16.28 kB / 359.3 MB, free: 3.523 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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