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.001252/0.001252, allocations: 105.7 kB / 16.62 MB, free: 6.805 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.00124/0.00124, allocations: 193.8 kB / 17.55 MB, free: 5.949 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.387/1.387, allocations: 222.9 MB / 241.2 MB, free: 13.72 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008538/0.0008539, allocations: 45.05 kB / 300.2 MB, free: 5.902 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1038, allocations: 49.45 MB / 349.7 MB, free: 4.445 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.FilterWithDifferentiation): time 0.003309/0.1071, allocations: 1.655 MB / 351.3 MB, free: 2.77 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005267/0.1124, allocations: 3.223 MB / 354.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001298/0.1126, allocations: 0 / 354.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002195/0.1128, allocations: 47.77 kB / 354.6 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.933e-05/0.113, allocations: 7.922 kB / 354.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003709/0.1167, allocations: 1.278 MB / 355.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000208/0.1169, allocations: 143.7 kB / 356 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.006e-05/0.117, allocations: 41.02 kB / 356.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.653e-05/0.1171, allocations: 47.84 kB / 356.1 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.704e-05/0.1172, allocations: 55.72 kB / 356.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.031e-05/0.1172, allocations: 8 kB / 356.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00184/0.119, allocations: 1.382 MB / 357.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.735e-05/0.1191, allocations: 35.91 kB / 357.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.701e-05/0.1192, allocations: 51.67 kB / 357.6 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001287/0.1205, allocations: 1.197 MB / 358.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.1205, allocations: 0 / 358.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1205, allocations: 3.938 kB / 358.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.1205, allocations: 0 / 358.8 MB, free: 11.25 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.001127/0.1217, allocations: 0.5613 MB / 359.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.1217, allocations: 12.03 kB / 359.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.974e-05/0.1217, allocations: 34.75 kB / 359.5 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.378e-05/0.1218, allocations: 16.75 kB / 359.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000213/0.122, allocations: 224 kB / 359.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.084e-05/0.122, allocations: 7.938 kB / 359.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.725e-05/0.1221, allocations: 8 kB / 359.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002105/0.1223, allocations: 124.6 kB / 359.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.1223, allocations: 3.938 kB / 359.8 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.39e-05/0.1223, allocations: 8 kB / 359.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.547e-06/0.1223, allocations: 0 / 359.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001369/0.1225, allocations: 59.95 kB / 359.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005515/0.123, allocations: 376.5 kB / 360.3 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003144/0.1234, allocations: 138.5 kB / 360.4 MB, free: 9.523 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.246e-05/0.1235, allocations: 36.84 kB / 360.4 MB, free: 9.484 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.03e-05/0.1235, allocations: 4 kB / 360.4 MB, free: 9.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.02e-05/0.1235, allocations: 34.56 kB / 360.5 MB, free: 9.438 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.022e-06/0.1235, allocations: 0 / 360.5 MB, free: 9.438 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.002115/0.1256, allocations: 1.211 MB / 361.7 MB, free: 8.094 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.88e-05/0.1257, allocations: 132.8 kB / 361.8 MB, free: 7.934 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001453/0.1258, allocations: 175.5 kB / 362 MB, free: 7.754 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.149e-05/0.1259, allocations: 33.7 kB / 362 MB, free: 7.715 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.323e-05/0.126, allocations: 116.3 kB / 362.1 MB, free: 7.598 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.772e-05/0.126, allocations: 51.27 kB / 362.2 MB, free: 7.547 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.594e-05/0.1261, allocations: 49.66 kB / 362.2 MB, free: 7.492 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.1262, allocations: 330.8 kB / 362.6 MB, free: 7.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001677/0.1264, allocations: 91.94 kB / 362.6 MB, free: 7.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000182/0.1266, allocations: 131.4 kB / 362.8 MB, free: 6.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003108/0.1269, allocations: 197 kB / 363 MB, free: 6.734 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.1269, allocations: 4 kB / 363 MB, free: 6.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005599/0.1275, allocations: 313.9 kB / 363.3 MB, free: 6.414 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.1275, allocations: 8 kB / 363.3 MB, free: 6.406 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.715e-05/0.1275, allocations: 4 kB / 363.3 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001878/0.1277, allocations: 40.81 kB / 363.3 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001596/0.1279, allocations: 31.98 kB / 363.4 MB, free: 6.328 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00145/0.1294, allocations: 1.519 MB / 364.9 MB, free: 4.664 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000106/0.1295, allocations: 12.17 kB / 364.9 MB, free: 4.652 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.938e-05/0.1295, allocations: 8 kB / 364.9 MB, free: 4.645 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.0001562/0.1297, allocations: 141.7 kB / 365 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.268e-05/0.1297, allocations: 11.81 kB / 365 MB, free: 4.484 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.673e-05/0.1298, allocations: 21.53 kB / 365.1 MB, free: 4.465 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.64e-06/0.1298, allocations: 7.938 kB / 365.1 MB, free: 4.457 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.1298, allocations: 3.984 kB / 365.1 MB, free: 4.453 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.1298, allocations: 0 / 365.1 MB, free: 4.453 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000303/0.1301, allocations: 241.6 kB / 365.3 MB, free: 4.168 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.1302, allocations: 4 kB / 365.3 MB, free: 4.164 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002794/0.1304, allocations: 55.95 kB / 365.4 MB, free: 4.109 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.1304, allocations: 0 / 365.4 MB, free: 4.109 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.934e-05/0.1305, allocations: 4 kB / 365.4 MB, free: 4.105 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.1305, allocations: 3.938 kB / 365.4 MB, free: 4.102 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1305, allocations: 0 / 365.4 MB, free: 4.102 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005536/0.131, allocations: 417.7 kB / 365.8 MB, free: 3.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.469e-05/0.1311, allocations: 88.92 kB / 365.9 MB, free: 3.574 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.353e-05/0.1311, allocations: 4 kB / 365.9 MB, free: 3.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001213/0.1313, allocations: 15.97 kB / 365.9 MB, free: 3.555 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.245e-05/0.1313, allocations: 7.984 kB / 365.9 MB, free: 3.547 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.06e-05/0.1313, allocations: 4 kB / 365.9 MB, free: 3.543 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.917e-05/0.1314, allocations: 123.5 kB / 366 MB, free: 3.422 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1314, allocations: 0 / 366 MB, free: 3.422 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001593/0.133, allocations: 0.5234 MB / 366.5 MB, free: 2.898 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.002109/0.1351, allocations: 1.386 MB / 367.9 MB, free: 1.496 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006763/0.1358, allocations: 413.8 kB / 368.3 MB, free: 1.066 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1359, allocations: 0 / 368.3 MB, free: 1.066 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000159/0.136, allocations: 87.89 kB / 368.4 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003384/0.1364, allocations: 35.66 kB / 368.5 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1928/0.3291, allocations: 2.476 MB / 370.9 MB, free: 23.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000216/0.3294, allocations: 0.7328 MB / 371.7 MB, free: 23.21 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001236/0.3295, allocations: 37.03 kB / 371.7 MB, free: 23.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.92e-05/0.3296, allocations: 43.62 kB / 371.7 MB, free: 23.2 MB / 302.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3296, allocations: 0 / 371.7 MB, free: 23.2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03677/0.3664, allocations: 9.722 MB / 381.5 MB, free: 20.66 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001751/0.3666, allocations: 273.4 kB / 381.7 MB, free: 20.3 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.003/2.37, allocations: 0 / 381.7 MB, free: 20.3 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