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.0006807/0.0006808, allocations: 92.97 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007905/0.0007905, allocations: 202.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.214/1.214, allocations: 227.7 MB / 246.8 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002145/0.0002146, allocations: 11.98 kB / 307.8 MB, free: 0.7266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08648/0.08672, allocations: 51.51 MB / 359.3 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.FilterWithDifferentiation): time 0.001744/0.08849, allocations: 1.34 MB / 360.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004922/0.09343, allocations: 3.547 MB / 364.2 MB, free: 8.305 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.568e-05/0.09355, allocations: 11.94 kB / 364.2 MB, free: 8.293 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000255/0.09382, allocations: 35.84 kB / 364.3 MB, free: 8.258 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.973e-05/0.09388, allocations: 15.84 kB / 364.3 MB, free: 8.242 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002645/0.09654, allocations: 1.059 MB / 365.3 MB, free: 7.191 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002077/0.09676, allocations: 139.6 kB / 365.5 MB, free: 7.055 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.09687, allocations: 25.05 kB / 365.5 MB, free: 7.027 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.576e-05/0.09695, allocations: 51.78 kB / 365.6 MB, free: 6.977 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001023/0.09706, allocations: 51.69 kB / 365.6 MB, free: 6.926 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.889e-05/0.09709, allocations: 8 kB / 365.6 MB, free: 6.918 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001447/0.09854, allocations: 1.366 MB / 367 MB, free: 5.551 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.791e-05/0.09862, allocations: 35.83 kB / 367 MB, free: 5.516 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.413e-05/0.09869, allocations: 73.38 kB / 367.1 MB, free: 5.438 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001001/0.0997, allocations: 1.177 MB / 368.3 MB, free: 4.258 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.09971, allocations: 0 / 368.3 MB, free: 4.258 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.727e-06/0.09972, allocations: 3.984 kB / 368.3 MB, free: 4.254 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.722e-06/0.09973, allocations: 3.938 kB / 368.3 MB, free: 4.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.0008536/0.1006, allocations: 0.5497 MB / 368.8 MB, free: 3.652 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.1006, allocations: 8.031 kB / 368.8 MB, free: 3.645 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.156e-05/0.1007, allocations: 38.75 kB / 368.9 MB, free: 3.598 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.074e-05/0.1007, allocations: 16.75 kB / 368.9 MB, free: 3.582 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002369/0.101, allocations: 208.1 kB / 369.1 MB, free: 3.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.418e-05/0.101, allocations: 16.3 kB / 369.1 MB, free: 3.324 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.281e-05/0.101, allocations: 16.12 kB / 369.1 MB, free: 3.309 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002444/0.1013, allocations: 121.1 kB / 369.2 MB, free: 3.172 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.1013, allocations: 7.922 kB / 369.3 MB, free: 3.164 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.487e-05/0.1013, allocations: 8 kB / 369.3 MB, free: 3.156 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.1013, allocations: 0 / 369.3 MB, free: 3.156 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001364/0.1015, allocations: 59.95 kB / 369.3 MB, free: 3.098 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005476/0.102, allocations: 388.4 kB / 369.7 MB, free: 2.668 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003334/0.1024, allocations: 126.5 kB / 369.8 MB, free: 2.535 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.68e-05/0.1025, allocations: 52.77 kB / 369.9 MB, free: 2.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.11e-05/0.1025, allocations: 0 / 369.9 MB, free: 2.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.703e-05/0.1025, allocations: 34.56 kB / 369.9 MB, free: 2.438 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.052e-06/0.1025, allocations: 0 / 369.9 MB, free: 2.438 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.002098/0.1046, allocations: 1.224 MB / 371.1 MB, free: 1.082 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.393e-05/0.1047, allocations: 128.5 kB / 371.3 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001473/0.1049, allocations: 178.3 kB / 371.4 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.217e-05/0.1049, allocations: 25.7 kB / 371.5 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.609e-05/0.105, allocations: 112.4 kB / 371.6 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.618e-05/0.105, allocations: 59.23 kB / 371.6 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.498e-05/0.1051, allocations: 21.72 kB / 371.6 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.1052, allocations: 334.8 kB / 372 MB, free: 180 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001628/0.1054, allocations: 95.95 kB / 372.1 MB, free: 84 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1359/0.2413, allocations: 131.2 kB / 372.2 MB, free: 18.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003944/0.2417, allocations: 213.5 kB / 372.4 MB, free: 18.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.2417, allocations: 5.781 kB / 372.4 MB, free: 18.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.00055/0.2423, allocations: 307.4 kB / 372.7 MB, free: 18.19 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.2423, allocations: 5.531 kB / 372.7 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.747e-05/0.2423, allocations: 3.906 kB / 372.7 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001781/0.2425, allocations: 46.17 kB / 372.8 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001567/0.2427, allocations: 35.59 kB / 372.8 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008402/0.2435, allocations: 1.413 MB / 374.2 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.366e-05/0.2436, allocations: 11.34 kB / 374.2 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.41e-05/0.2437, allocations: 4.375 kB / 374.2 MB, free: 16.93 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 9.871e-05/0.2438, allocations: 142 kB / 374.4 MB, free: 16.81 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.718e-05/0.2438, allocations: 17.62 kB / 374.4 MB, free: 16.81 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.101e-05/0.2439, allocations: 23.48 kB / 374.4 MB, free: 16.81 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.2439, allocations: 3.625 kB / 374.4 MB, free: 16.81 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-06/0.2439, allocations: 0 / 374.4 MB, free: 16.81 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.748e-06/0.2439, allocations: 1.406 kB / 374.4 MB, free: 16.81 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002105/0.2441, allocations: 241.4 kB / 374.6 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.2441, allocations: 2.047 kB / 374.6 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002655/0.2444, allocations: 50.69 kB / 374.7 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.2444, allocations: 5.375 kB / 374.7 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/0.2444, allocations: 8.828 kB / 374.7 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.063e-06/0.2444, allocations: 1.219 kB / 374.7 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.2444, allocations: 0.6562 kB / 374.7 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004754/0.2449, allocations: 414.3 kB / 375.1 MB, free: 16.49 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.546e-05/0.2449, allocations: 90.7 kB / 375.2 MB, free: 16.39 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.084e-05/0.245, allocations: 13.25 kB / 375.2 MB, free: 16.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.2451, allocations: 9.656 kB / 375.2 MB, free: 16.39 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.744e-05/0.2451, allocations: 14.83 kB / 375.2 MB, free: 16.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.747e-06/0.2451, allocations: 3.297 kB / 375.2 MB, free: 16.39 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.38e-05/0.2452, allocations: 128.9 kB / 375.4 MB, free: 16.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2452, allocations: 3.938 kB / 375.4 MB, free: 16.31 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00144/0.2467, allocations: 0.5162 MB / 375.9 MB, free: 16.31 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.0014/0.2481, allocations: 1.394 MB / 377.3 MB, free: 15.65 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005249/0.2486, allocations: 399.4 kB / 377.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2486, allocations: 0 / 377.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001362/0.2488, allocations: 92.22 kB / 377.8 MB, free: 15.47 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003025/0.2491, allocations: 34.23 kB / 377.8 MB, free: 15.47 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002479/0.2516, allocations: 2.509 MB / 380.3 MB, free: 14.13 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001437/0.2517, allocations: 0.729 MB / 381 MB, free: 13.43 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.732e-05/0.2518, allocations: 33.56 kB / 381.1 MB, free: 13.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.603e-05/0.2519, allocations: 45.36 kB / 381.1 MB, free: 13.42 MB / 302.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2519, allocations: 2.078 kB / 381.1 MB, free: 13.42 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02081/0.2727, allocations: 9.495 MB / 390.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001474/0.2729, allocations: 268.3 kB / 390.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.88/2.153, allocations: 0 / 390.9 MB, free: 10.2 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