Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.FilterWithDifferentiation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.FilterWithDifferentiation,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_FilterWithDifferentiation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.FilterWithDifferentiation,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_FilterWithDifferentiation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001007/0.001007, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001066/0.001066, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 227.4 MB / 246.3 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 58.97 kB / 306.3 MB, free: 0.9844 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09888/0.1001, allocations: 50.53 MB / 356.9 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.FilterWithDifferentiation): time 0.002665/0.1027, allocations: 1.686 MB / 358.6 MB, free: 12.76 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004887/0.1077, allocations: 3.594 MB / 362.2 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.826e-05/0.1078, allocations: 7.938 kB / 362.2 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002784/0.1081, allocations: 35.84 kB / 362.2 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.145e-05/0.1081, allocations: 19.84 kB / 362.2 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00249/0.1106, allocations: 1.063 MB / 363.3 MB, free: 8.035 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001945/0.1108, allocations: 139.6 kB / 363.4 MB, free: 7.898 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.837e-05/0.1109, allocations: 25.05 kB / 363.4 MB, free: 7.871 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.763e-05/0.111, allocations: 51.78 kB / 363.5 MB, free: 7.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.651e-05/0.1111, allocations: 55.69 kB / 363.5 MB, free: 7.766 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.19e-05/0.1111, allocations: 8 kB / 363.6 MB, free: 7.758 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001469/0.1126, allocations: 1.37 MB / 364.9 MB, free: 6.387 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.884e-05/0.1127, allocations: 27.92 kB / 365 MB, free: 6.359 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.545e-05/0.1128, allocations: 51.66 kB / 365 MB, free: 6.309 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001069/0.1138, allocations: 1.189 MB / 366.2 MB, free: 5.117 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1139, allocations: 0 / 366.2 MB, free: 5.117 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1139, allocations: 4 kB / 366.2 MB, free: 5.113 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.1139, allocations: 3.938 kB / 366.2 MB, free: 5.109 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.0009475/0.1148, allocations: 0.5691 MB / 366.8 MB, free: 4.492 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.1149, allocations: 8.031 kB / 366.8 MB, free: 4.484 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.116e-05/0.1149, allocations: 42.73 kB / 366.8 MB, free: 4.434 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.478e-05/0.115, allocations: 16.75 kB / 366.8 MB, free: 4.418 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002228/0.1152, allocations: 204.1 kB / 367 MB, free: 4.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.132e-05/0.1152, allocations: 8.375 kB / 367 MB, free: 4.172 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.136e-05/0.1152, allocations: 24.05 kB / 367.1 MB, free: 4.148 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002255/0.1155, allocations: 127.4 kB / 367.2 MB, free: 4.008 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.1155, allocations: 0 / 367.2 MB, free: 4.008 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.1155, allocations: 0 / 367.2 MB, free: 4.008 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.1155, allocations: 4 kB / 367.2 MB, free: 4.004 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001302/0.1157, allocations: 55.95 kB / 367.2 MB, free: 3.949 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005407/0.1162, allocations: 392.4 kB / 367.6 MB, free: 3.516 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003214/0.1165, allocations: 122.6 kB / 367.7 MB, free: 3.387 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.284e-05/0.1166, allocations: 48.95 kB / 367.8 MB, free: 3.336 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.199e-05/0.1167, allocations: 0 / 367.8 MB, free: 3.336 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.115e-05/0.1167, allocations: 34.56 kB / 367.8 MB, free: 3.293 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 9.82e-07/0.1167, allocations: 0 / 367.8 MB, free: 3.293 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.002063/0.1188, allocations: 1.211 MB / 369 MB, free: 1.949 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.975e-05/0.1188, allocations: 132.5 kB / 369.2 MB, free: 1.789 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001387/0.119, allocations: 170.3 kB / 369.3 MB, free: 1.613 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.053e-05/0.119, allocations: 29.7 kB / 369.4 MB, free: 1.578 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.945e-05/0.1191, allocations: 120.5 kB / 369.5 MB, free: 1.457 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.211e-05/0.1192, allocations: 55.19 kB / 369.5 MB, free: 1.402 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.99e-05/0.1192, allocations: 45.7 kB / 369.6 MB, free: 1.352 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.1193, allocations: 322.8 kB / 369.9 MB, free: 1.027 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001656/0.1195, allocations: 99.94 kB / 370 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001726/0.1197, allocations: 136.5 kB / 370.1 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003025/0.12, allocations: 213.5 kB / 370.3 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.12, allocations: 0 / 370.3 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004974/0.1205, allocations: 302.1 kB / 370.6 MB, free: 276 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.1205, allocations: 4 kB / 370.6 MB, free: 272 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.598e-05/0.1206, allocations: 4 kB / 370.6 MB, free: 268 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001609/0.1207, allocations: 44.81 kB / 370.7 MB, free: 220 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001496/0.1209, allocations: 31.92 kB / 370.7 MB, free: 188 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1957/0.3166, allocations: 1.399 MB / 372.1 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001477/0.3168, allocations: 10.42 kB / 372.1 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.802e-05/0.3168, allocations: 7.375 kB / 372.1 MB, free: 18.62 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.000126/0.317, allocations: 140.9 kB / 372.3 MB, free: 18.51 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.388e-05/0.317, allocations: 12.56 kB / 372.3 MB, free: 18.51 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.844e-05/0.3171, allocations: 26.27 kB / 372.3 MB, free: 18.51 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.3171, allocations: 2.031 kB / 372.3 MB, free: 18.51 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.3171, allocations: 0.9375 kB / 372.3 MB, free: 18.51 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.3171, allocations: 0.7031 kB / 372.3 MB, free: 18.51 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002559/0.3173, allocations: 249.9 kB / 372.6 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.3174, allocations: 0 / 372.6 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002964/0.3177, allocations: 55.42 kB / 372.6 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.3177, allocations: 1.703 kB / 372.6 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.3177, allocations: 4.156 kB / 372.6 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.3177, allocations: 1.5 kB / 372.6 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3177, allocations: 3.406 kB / 372.6 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005384/0.3182, allocations: 412.1 kB / 373 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.393e-05/0.3183, allocations: 89.06 kB / 373.1 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.304e-05/0.3183, allocations: 8.516 kB / 373.1 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001103/0.3184, allocations: 11.94 kB / 373.1 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.806e-05/0.3185, allocations: 8.812 kB / 373.1 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/0.3185, allocations: 6.281 kB / 373.1 MB, free: 18.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.96e-05/0.3186, allocations: 128.4 kB / 373.3 MB, free: 18.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3186, allocations: 0 / 373.3 MB, free: 18.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001758/0.3204, allocations: 0.517 MB / 373.8 MB, free: 18.02 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.001863/0.3222, allocations: 1.4 MB / 375.2 MB, free: 17.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006213/0.3229, allocations: 381.1 kB / 375.6 MB, free: 17.19 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/0.3229, allocations: 3.438 kB / 375.6 MB, free: 17.19 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001631/0.3231, allocations: 91.45 kB / 375.7 MB, free: 17.19 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003284/0.3234, allocations: 27.36 kB / 375.7 MB, free: 17.19 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002852/0.3263, allocations: 2.491 MB / 378.2 MB, free: 15.61 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001937/0.3265, allocations: 0.7302 MB / 378.9 MB, free: 14.91 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001079/0.3266, allocations: 38.33 kB / 378.9 MB, free: 14.91 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.872e-05/0.3267, allocations: 43.41 kB / 379 MB, free: 14.88 MB / 302.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3267, allocations: 0 / 379 MB, free: 14.88 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02837/0.3551, allocations: 9.603 MB / 388.6 MB, free: 12.02 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001513/0.3552, allocations: 268.8 kB / 388.8 MB, free: 11.67 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.885/2.241, allocations: 1.188 kB / 388.8 MB, free: 11.67 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.FilterWithDifferentiation.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.FilterWithDifferentiation.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.FilterWithDifferentiation.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.FilterWithDifferentiation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.FilterWithDifferentiation_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_FilterWithDifferentiation_fmu --startTime=0 --stopTime=0.9 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_FilterWithDifferentiation.fmu > Modelica_trunk_Modelica.Blocks.Examples.FilterWithDifferentiation.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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