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.001418/0.001418, allocations: 113.6 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001463/0.001463, allocations: 204.7 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 227.4 MB / 247 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001877/0.001877, allocations: 71.88 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2391/0.241, allocations: 50.55 MB / 408.8 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.FilterWithDifferentiation): time 0.002856/0.2439, allocations: 1.619 MB / 410.4 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00505/0.249, allocations: 3.199 MB / 413.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.563e-05/0.2491, allocations: 4 kB / 413.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000305/0.2494, allocations: 59.69 kB / 413.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.129e-05/0.2495, allocations: 15.86 kB / 413.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003355/0.2529, allocations: 1.42 MB / 415.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002518/0.2531, allocations: 147.7 kB / 415.3 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001166/0.2532, allocations: 29.05 kB / 415.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.639e-05/0.2533, allocations: 55.78 kB / 415.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001033/0.2534, allocations: 55.69 kB / 415.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.355e-05/0.2535, allocations: 11.94 kB / 415.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001737/0.2552, allocations: 1.382 MB / 416.8 MB, free: 9.445 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.748e-05/0.2553, allocations: 35.91 kB / 416.8 MB, free: 9.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.066e-05/0.2554, allocations: 55.59 kB / 416.9 MB, free: 9.355 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001223/0.2566, allocations: 1.201 MB / 418.1 MB, free: 8.152 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.2566, allocations: 3.984 kB / 418.1 MB, free: 8.148 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2567, allocations: 0 / 418.1 MB, free: 8.148 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.2567, allocations: 4 kB / 418.1 MB, free: 8.145 MB / 334.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.00105/0.2577, allocations: 0.5649 MB / 418.7 MB, free: 7.531 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.2578, allocations: 8.031 kB / 418.7 MB, free: 7.523 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.37e-05/0.2578, allocations: 38.75 kB / 418.7 MB, free: 7.477 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.572e-05/0.2579, allocations: 20.83 kB / 418.7 MB, free: 7.457 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002463/0.2581, allocations: 216.1 kB / 418.9 MB, free: 7.207 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.181e-05/0.2582, allocations: 4.375 kB / 419 MB, free: 7.203 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.508e-05/0.2582, allocations: 16.12 kB / 419 MB, free: 7.188 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002388/0.2584, allocations: 121.1 kB / 419.1 MB, free: 7.051 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.2585, allocations: 0 / 419.1 MB, free: 7.051 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.429e-05/0.2585, allocations: 4 kB / 419.1 MB, free: 7.047 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.2585, allocations: 4 kB / 419.1 MB, free: 7.043 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001452/0.2586, allocations: 63.89 kB / 419.2 MB, free: 6.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006219/0.2593, allocations: 380.6 kB / 419.5 MB, free: 6.559 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003634/0.2597, allocations: 130.5 kB / 419.7 MB, free: 6.422 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.118e-05/0.2598, allocations: 48.83 kB / 419.7 MB, free: 6.371 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.022e-05/0.2598, allocations: 0 / 419.7 MB, free: 6.371 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.445e-05/0.2598, allocations: 38.56 kB / 419.7 MB, free: 6.324 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 9.82e-07/0.2598, allocations: 0 / 419.7 MB, free: 6.324 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.002345/0.2622, allocations: 1.226 MB / 421 MB, free: 4.969 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.186e-05/0.2623, allocations: 132.5 kB / 421.1 MB, free: 4.809 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001754/0.2625, allocations: 182.3 kB / 421.3 MB, free: 4.621 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.352e-05/0.2625, allocations: 25.7 kB / 421.3 MB, free: 4.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.862e-05/0.2626, allocations: 116.5 kB / 421.4 MB, free: 4.473 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.469e-05/0.2626, allocations: 51.58 kB / 421.5 MB, free: 4.422 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.326e-05/0.2627, allocations: 45.7 kB / 421.5 MB, free: 4.371 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.2629, allocations: 326.8 kB / 421.8 MB, free: 4.043 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001917/0.2631, allocations: 99.94 kB / 421.9 MB, free: 3.945 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002153/0.2633, allocations: 143.2 kB / 422.1 MB, free: 3.793 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003327/0.2636, allocations: 200.7 kB / 422.3 MB, free: 3.594 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.2637, allocations: 0 / 422.3 MB, free: 3.594 MB / 334.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005506/0.2642, allocations: 306.1 kB / 422.6 MB, free: 3.285 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.2642, allocations: 6.969 kB / 422.6 MB, free: 3.281 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.677e-05/0.2643, allocations: 4 kB / 422.6 MB, free: 3.277 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001847/0.2645, allocations: 48.81 kB / 422.6 MB, free: 3.227 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001599/0.2646, allocations: 27.98 kB / 422.6 MB, free: 3.199 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0014/0.266, allocations: 1.523 MB / 424.2 MB, free: 1.531 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.363e-05/0.2661, allocations: 8 kB / 424.2 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.653e-05/0.2662, allocations: 4 kB / 424.2 MB, free: 1.52 MB / 334.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.0001685/0.2663, allocations: 138 kB / 424.3 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.095e-05/0.2664, allocations: 15.84 kB / 424.3 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.148e-05/0.2665, allocations: 33.61 kB / 424.4 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.2665, allocations: 0 / 424.4 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.2665, allocations: 3.938 kB / 424.4 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.2665, allocations: 4 kB / 424.4 MB, free: 1.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003045/0.2668, allocations: 245.5 kB / 424.6 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2668, allocations: 0 / 424.6 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002865/0.2671, allocations: 47.97 kB / 424.7 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.2671, allocations: 0 / 424.7 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.55e-05/0.2671, allocations: 4 kB / 424.7 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.696e-06/0.2671, allocations: 4 kB / 424.7 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.2671, allocations: 7.938 kB / 424.7 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000585/0.2677, allocations: 407.2 kB / 425.1 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.218e-05/0.2678, allocations: 93.05 kB / 425.2 MB, free: 456 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.451e-05/0.2678, allocations: 8 kB / 425.2 MB, free: 448 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/0.268, allocations: 4.375 kB / 425.2 MB, free: 444 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.61e-05/0.268, allocations: 15.92 kB / 425.2 MB, free: 428 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.175e-06/0.268, allocations: 4 kB / 425.2 MB, free: 424 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000105/0.2681, allocations: 128.2 kB / 425.3 MB, free: 296 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2681, allocations: 3.938 kB / 425.3 MB, free: 292 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.001446/0.2696, allocations: 0.5155 MB / 425.8 MB, free: 15.77 MB / 350.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.002058/0.2717, allocations: 1.387 MB / 427.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007054/0.2724, allocations: 392.3 kB / 427.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.654e-06/0.2724, allocations: 0 / 427.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001597/0.2726, allocations: 87.89 kB / 427.7 MB, free: 13.87 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003311/0.2729, allocations: 42.84 kB / 427.7 MB, free: 13.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003154/0.2761, allocations: 2.453 MB / 430.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003658/0.2764, allocations: 0.728 MB / 430.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001003/0.2766, allocations: 33.06 kB / 431 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.952e-05/0.2767, allocations: 43.42 kB / 431 MB, free: 10.46 MB / 350.1 MB Notification: Performance of SimCode: time 8.31e-07/0.2767, allocations: 0 / 431 MB, free: 10.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03892/0.3156, allocations: 9.886 MB / 440.9 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.25/10.57, allocations: 11.75 kB / 440.9 MB, free: 0.6758 MB / 350.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.1.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