Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Filter.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.Filter,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Filter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Filter,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Filter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001121/0.001121, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001249/0.001249, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 63.23 kB / 306.3 MB, free: 0.957 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09119/0.09241, allocations: 50.52 MB / 356.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Filter): time 0.002893/0.09534, allocations: 2.068 MB / 358.9 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005768/0.1011, allocations: 4.116 MB / 363.1 MB, free: 8.223 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000135/0.1013, allocations: 7.938 kB / 363.1 MB, free: 8.215 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004749/0.1018, allocations: 159.3 kB / 363.2 MB, free: 8.059 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000119/0.1019, allocations: 39.66 kB / 363.3 MB, free: 8.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003031/0.1049, allocations: 1.548 MB / 364.8 MB, free: 6.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004547/0.1054, allocations: 474.7 kB / 365.3 MB, free: 6.016 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001319/0.1055, allocations: 45 kB / 365.3 MB, free: 5.965 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000145/0.1057, allocations: 159.3 kB / 365.5 MB, free: 5.809 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002045/0.1059, allocations: 171.1 kB / 365.6 MB, free: 5.641 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.203e-05/0.106, allocations: 12 kB / 365.6 MB, free: 5.629 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001845/0.1078, allocations: 1.738 MB / 367.4 MB, free: 3.895 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001323/0.108, allocations: 107.7 kB / 367.5 MB, free: 3.789 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001421/0.1081, allocations: 150.9 kB / 367.6 MB, free: 3.641 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001514/0.1096, allocations: 1.75 MB / 369.4 MB, free: 1.887 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1096, allocations: 0 / 369.4 MB, free: 1.887 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1096, allocations: 3.938 kB / 369.4 MB, free: 1.883 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.1097, allocations: 0 / 369.4 MB, free: 1.883 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001344/0.111, allocations: 0.8958 MB / 370.3 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.1111, allocations: 12.03 kB / 370.3 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.661e-05/0.1111, allocations: 46.73 kB / 370.3 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.979e-05/0.1112, allocations: 48.38 kB / 370.4 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004037/0.1116, allocations: 354.2 kB / 370.7 MB, free: 444 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.728e-05/0.1116, allocations: 16.66 kB / 370.8 MB, free: 428 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.419e-05/0.1117, allocations: 32.03 kB / 370.8 MB, free: 396 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004238/0.1121, allocations: 315 kB / 371.1 MB, free: 36 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.924e-06/0.1121, allocations: 0 / 371.1 MB, free: 36 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.3e-05/0.1122, allocations: 8 kB / 371.1 MB, free: 28 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.062e-06/0.1122, allocations: 4 kB / 371.1 MB, free: 24 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1548/0.267, allocations: 141.4 kB / 371.2 MB, free: 19.63 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001608/0.2686, allocations: 0.6688 MB / 371.9 MB, free: 19.37 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007324/0.2694, allocations: 316.6 kB / 372.2 MB, free: 19.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002039/0.2696, allocations: 107.3 kB / 372.3 MB, free: 19.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.139e-05/0.2696, allocations: 3.5 kB / 372.3 MB, free: 19.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.066e-05/0.2697, allocations: 41.12 kB / 372.4 MB, free: 19.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.164e-06/0.2697, allocations: 0.7812 kB / 372.4 MB, free: 19.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.0007715/0.2704, allocations: 379.8 kB / 372.7 MB, free: 19.26 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.2706, allocations: 371.2 kB / 373.1 MB, free: 18.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004806/0.271, allocations: 409.6 kB / 373.5 MB, free: 18.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.226e-05/0.2711, allocations: 33.58 kB / 373.5 MB, free: 18.65 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001459/0.2712, allocations: 198.7 kB / 373.7 MB, free: 18.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.613e-05/0.2713, allocations: 84.25 kB / 373.8 MB, free: 18.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001732/0.2715, allocations: 100.6 kB / 373.9 MB, free: 18.4 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.2716, allocations: 357.5 kB / 374.3 MB, free: 18.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004054/0.272, allocations: 202 kB / 374.5 MB, free: 18.01 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000511/0.2726, allocations: 318.5 kB / 374.8 MB, free: 17.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007784/0.2733, allocations: 406.6 kB / 375.2 MB, free: 17.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.2734, allocations: 0.625 kB / 375.2 MB, free: 17.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001247/0.2746, allocations: 0.6401 MB / 375.8 MB, free: 17.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.2746, allocations: 8.188 kB / 375.8 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.575e-05/0.2747, allocations: 11.94 kB / 375.8 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004813/0.2752, allocations: 129.5 kB / 375.9 MB, free: 17.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002841/0.2755, allocations: 66.64 kB / 376 MB, free: 17.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002691/0.2782, allocations: 4.231 MB / 380.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002037/0.2784, allocations: 48.94 kB / 380.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.565e-05/0.2784, allocations: 16.09 kB / 380.3 MB, free: 13.36 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 (38): * Single equations (assignments): 27 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 7 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002045/0.2786, allocations: 178.6 kB / 380.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.823e-05/0.2787, allocations: 38 kB / 380.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.904e-05/0.2788, allocations: 49.09 kB / 380.6 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.878e-06/0.2788, allocations: 1.781 kB / 380.6 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.2788, allocations: 8.078 kB / 380.6 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.2788, allocations: 0.9844 kB / 380.6 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004185/0.2793, allocations: 347.8 kB / 380.9 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.2793, allocations: 2.047 kB / 380.9 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002888/0.2796, allocations: 40.2 kB / 381 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.716e-06/0.2796, allocations: 1.094 kB / 381 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.137e-05/0.2796, allocations: 11.45 kB / 381 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.2796, allocations: 5.781 kB / 381 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.2796, allocations: 2.359 kB / 381 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006708/0.2803, allocations: 0.5005 MB / 381.5 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.939e-05/0.2804, allocations: 113.3 kB / 381.6 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.025e-05/0.2804, allocations: 16.38 kB / 381.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001683/0.2806, allocations: 13.55 kB / 381.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.35e-05/0.2806, allocations: 19.02 kB / 381.6 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.421e-05/0.2807, allocations: 7.547 kB / 381.6 MB, free: 12.51 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002609/0.2809, allocations: 274 kB / 381.9 MB, free: 12.38 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2809, allocations: 0 / 381.9 MB, free: 12.38 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.002046/0.283, allocations: 0.6552 MB / 382.6 MB, free: 12.36 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (CriticalDamping.x[1],CriticalDamping.x[2],CriticalDamping.x[3],Bessel.x[1],Bessel.x[2],Bessel.x[3],Butterworth.x[1],Butterworth.x[2],Butterworth.x[3],ChebyshevI.x[1],ChebyshevI.x[2],ChebyshevI.x[3]) * 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 (21): * Single equations (assignments): 21 * 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.002066/0.2851, allocations: 1.613 MB / 384.2 MB, free: 11.55 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001256/0.2863, allocations: 0.944 MB / 385.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.2864, allocations: 1.281 kB / 385.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002045/0.2866, allocations: 122.9 kB / 385.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005982/0.2872, allocations: 115.1 kB / 385.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00581/0.293, allocations: 4.615 MB / 390 MB, free: 8.402 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003228/0.2933, allocations: 0.8379 MB / 390.8 MB, free: 7.695 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002196/0.2936, allocations: 62.94 kB / 390.9 MB, free: 7.695 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001613/0.2937, allocations: 135.9 kB / 391 MB, free: 7.594 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2937, allocations: 0 / 391 MB, free: 7.594 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.032/0.3257, allocations: 16.75 MB / 407.8 MB, free: 11.35 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002366/0.326, allocations: 247.1 kB / 408 MB, free: 11.09 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.122/2.448, allocations: 3.938 kB / 408 MB, free: 11.09 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Filter.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Filter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Filter.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Filter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Filter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Filter_fmu --startTime=0 --stopTime=0.9 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Filter.fmu > Modelica_trunk_Modelica.Blocks.Examples.Filter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Filter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Filter/Filter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Filter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,Bessel.x[1],Bessel.x[2],Bessel.x[3],Butterworth.x[1],Butterworth.x[2],Butterworth.x[3],ChebyshevI.x[1],ChebyshevI.x[2],ChebyshevI.x[3],CriticalDamping.x[1],CriticalDamping.x[2],CriticalDamping.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,Butterworth.A_ripple,Butterworth.analogFilter,Butterworth.f_cut,Butterworth.f_min,Butterworth.filterType,Butterworth.gain,Butterworth.init,Butterworth.normalized,Butterworth.nx,Butterworth.order,Butterworth.u,Butterworth.u_nominal,Butterworth.x[1],Butterworth.x[2],Butterworth.x[3],Butterworth.x_start[1],Butterworth.x_start[2],Butterworth.x_start[3],Butterworth.y,Butterworth.y_start,ChebyshevI.A_ripple,ChebyshevI.analogFilter,ChebyshevI.f_cut,ChebyshevI.f_min,ChebyshevI.filterType,ChebyshevI.gain,ChebyshevI.init,ChebyshevI.normalized,ChebyshevI.nx,ChebyshevI.order,ChebyshevI.u,ChebyshevI.u_nominal,ChebyshevI.x[1],ChebyshevI.x[2],ChebyshevI.x[3],ChebyshevI.x_start[1],ChebyshevI.x_start[2],ChebyshevI.x_start[3],ChebyshevI.y,ChebyshevI.y_start,CriticalDamping.A_ripple,CriticalDamping.analogFilter,CriticalDamping.f_cut,CriticalDamping.f_min,CriticalDamping.filterType,CriticalDamping.gain,CriticalDamping.init,CriticalDamping.normalized,CriticalDamping.nx,CriticalDamping.order,CriticalDamping.u,CriticalDamping.u_nominal,CriticalDamping.x[1],CriticalDamping.x[2],CriticalDamping.x[3],CriticalDamping.x_start[1],CriticalDamping.x_start[2],CriticalDamping.x_start[3],CriticalDamping.y,CriticalDamping.y_start,der(Bessel.x[1]),der(Bessel.x[2]),der(Bessel.x[3]),der(Butterworth.x[1]),der(Butterworth.x[2]),der(Butterworth.x[3]),der(ChebyshevI.x[1]),der(ChebyshevI.x[2]),der(ChebyshevI.x[3]),der(CriticalDamping.x[1]),der(CriticalDamping.x[2]),der(CriticalDamping.x[3]),f_cut,filterType,init,normalized,order,step.height,step.offset,step.startTime,step.y,time