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.001082/0.001082, allocations: 108.7 kB / 16.92 MB, free: 6.145 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.001023/0.001023, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.321/1.321, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001126/0.001126, allocations: 38.25 kB / 300.7 MB, free: 5.781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08808/0.08923, allocations: 49.45 MB / 350.2 MB, free: 4.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.FilterWithDifferentiation): time 0.002992/0.09226, allocations: 1.604 MB / 351.8 MB, free: 2.695 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004756/0.09704, allocations: 3.161 MB / 354.9 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001276/0.09721, allocations: 0 / 354.9 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003106/0.09757, allocations: 51.7 kB / 355 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.937e-05/0.09766, allocations: 15.86 kB / 355 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003882/0.1016, allocations: 1.425 MB / 356.4 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003367/0.1019, allocations: 151.6 kB / 356.6 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001517/0.1021, allocations: 25.05 kB / 356.6 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.56e-05/0.1022, allocations: 47.86 kB / 356.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001219/0.1023, allocations: 67.62 kB / 356.7 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.971e-05/0.1023, allocations: 8 kB / 356.7 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00202/0.1044, allocations: 1.37 MB / 358.1 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.431e-05/0.1045, allocations: 35.89 kB / 358.1 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.551e-05/0.1046, allocations: 51.67 kB / 358.2 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00138/0.1059, allocations: 1.201 MB / 359.4 MB, free: 11.08 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.106, allocations: 0 / 359.4 MB, free: 11.08 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.106, allocations: 0 / 359.4 MB, free: 11.08 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.596e-06/0.106, allocations: 0 / 359.4 MB, free: 11.08 MB / 302.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.001114/0.1071, allocations: 0.5691 MB / 359.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.1072, allocations: 12.03 kB / 359.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.586e-05/0.1072, allocations: 38.73 kB / 360 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.115e-05/0.1073, allocations: 16.75 kB / 360 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002298/0.1075, allocations: 212.1 kB / 360.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.565e-05/0.1075, allocations: 15.92 kB / 360.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.209e-05/0.1076, allocations: 8 kB / 360.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002395/0.1078, allocations: 125 kB / 360.4 MB, free: 9.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.1078, allocations: 0 / 360.4 MB, free: 9.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.602e-05/0.1079, allocations: 4 kB / 360.4 MB, free: 9.977 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.1079, allocations: 0 / 360.4 MB, free: 9.977 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001471/0.108, allocations: 59.95 kB / 360.4 MB, free: 9.918 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005868/0.1086, allocations: 384.4 kB / 360.8 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003523/0.109, allocations: 126.5 kB / 360.9 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.789e-05/0.1091, allocations: 44.83 kB / 361 MB, free: 9.312 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.586e-05/0.1091, allocations: 192 / 361 MB, free: 9.312 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.279e-05/0.1091, allocations: 42.5 kB / 361 MB, free: 9.262 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.072e-06/0.1092, allocations: 3.938 kB / 361 MB, free: 9.258 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.002239/0.1114, allocations: 1.213 MB / 362.2 MB, free: 7.914 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.49e-05/0.1115, allocations: 132.5 kB / 362.3 MB, free: 7.754 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001575/0.1116, allocations: 174.1 kB / 362.5 MB, free: 7.574 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.454e-05/0.1117, allocations: 33.7 kB / 362.5 MB, free: 7.535 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.027e-05/0.1118, allocations: 120.4 kB / 362.7 MB, free: 7.414 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.602e-05/0.1118, allocations: 47.27 kB / 362.7 MB, free: 7.367 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.973e-05/0.1119, allocations: 46.92 kB / 362.8 MB, free: 7.316 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.112, allocations: 326.8 kB / 363.1 MB, free: 6.988 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001653/0.1122, allocations: 95.94 kB / 363.2 MB, free: 6.895 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001861/0.1124, allocations: 139.3 kB / 363.3 MB, free: 6.746 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003187/0.1127, allocations: 197 kB / 363.5 MB, free: 6.551 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.1127, allocations: 0 / 363.5 MB, free: 6.551 MB / 302.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005457/0.1133, allocations: 313.9 kB / 363.8 MB, free: 6.234 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.1133, allocations: 8 kB / 363.8 MB, free: 6.227 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.112e-05/0.1133, allocations: 4 kB / 363.8 MB, free: 6.223 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001936/0.1135, allocations: 44.81 kB / 363.9 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001678/0.1137, allocations: 35.92 kB / 363.9 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001258/0.115, allocations: 1.515 MB / 365.4 MB, free: 4.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001204/0.1151, allocations: 8.031 kB / 365.4 MB, free: 4.473 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.592e-05/0.1151, allocations: 7.938 kB / 365.4 MB, free: 4.465 MB / 302.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.0001299/0.1153, allocations: 137.8 kB / 365.6 MB, free: 4.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.447e-05/0.1153, allocations: 19.89 kB / 365.6 MB, free: 4.301 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.354e-05/0.1154, allocations: 25.53 kB / 365.6 MB, free: 4.277 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.1154, allocations: 3.938 kB / 365.6 MB, free: 4.273 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.1154, allocations: 4 kB / 365.6 MB, free: 4.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.1154, allocations: 0 / 365.6 MB, free: 4.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002567/0.1157, allocations: 245.5 kB / 365.9 MB, free: 3.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.1157, allocations: 0 / 365.9 MB, free: 3.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002794/0.116, allocations: 51.91 kB / 365.9 MB, free: 3.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.116, allocations: 0 / 365.9 MB, free: 3.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.571e-05/0.116, allocations: 4 kB / 365.9 MB, free: 3.926 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.554e-06/0.116, allocations: 15.92 kB / 365.9 MB, free: 3.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.116, allocations: 0 / 365.9 MB, free: 3.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005187/0.1165, allocations: 403.2 kB / 366.3 MB, free: 3.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.322e-05/0.1166, allocations: 89.06 kB / 366.4 MB, free: 3.395 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.635e-05/0.1166, allocations: 8 kB / 366.4 MB, free: 3.387 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000118/0.1168, allocations: 7.938 kB / 366.4 MB, free: 3.379 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.97e-05/0.1168, allocations: 15.97 kB / 366.4 MB, free: 3.363 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/0.1168, allocations: 4 kB / 366.4 MB, free: 3.359 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001085/0.117, allocations: 132.2 kB / 366.6 MB, free: 3.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.117, allocations: 0 / 366.6 MB, free: 3.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001657/0.1186, allocations: 0.5117 MB / 367.1 MB, free: 2.719 MB / 302.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.002133/0.1208, allocations: 1.394 MB / 368.5 MB, free: 1.305 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007338/0.1215, allocations: 405 kB / 368.9 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.1215, allocations: 0 / 368.9 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000157/0.1217, allocations: 91.88 kB / 369 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003566/0.1221, allocations: 31.86 kB / 369 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1433/0.2654, allocations: 2.423 MB / 371.4 MB, free: 23.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001973/0.2656, allocations: 0.7344 MB / 372.1 MB, free: 23.29 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001182/0.2658, allocations: 33 kB / 372.2 MB, free: 23.29 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.343e-05/0.2659, allocations: 44.62 kB / 372.2 MB, free: 23.28 MB / 302.1 MB Notification: Performance of SimCode: time 1.002e-06/0.2659, allocations: 1.312 kB / 372.2 MB, free: 23.28 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04263/0.3085, allocations: 9.83 MB / 382.1 MB, free: 20.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.51/10.81, allocations: 9.641 kB / 382.1 MB, free: 20.52 MB / 302.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) "" 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