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.001049/0.001049, allocations: 108.9 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001179/0.001178, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.26/1.26, allocations: 227.4 MB / 246.4 MB, free: 9.047 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 59.8 kB / 306.5 MB, free: 0.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0882/0.08934, allocations: 50.53 MB / 357.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Filter): time 0.003137/0.09252, allocations: 2.064 MB / 359.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005388/0.09792, allocations: 3.773 MB / 362.9 MB, free: 8.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001844/0.09812, allocations: 19.81 kB / 362.9 MB, free: 8.211 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004709/0.0986, allocations: 159.3 kB / 363.1 MB, free: 8.055 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001314/0.09875, allocations: 39.64 kB / 363.1 MB, free: 8.016 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003812/0.1026, allocations: 1.77 MB / 364.9 MB, free: 6.258 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005467/0.1031, allocations: 0.4949 MB / 365.4 MB, free: 5.762 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001397/0.1033, allocations: 49 kB / 365.4 MB, free: 5.707 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000206/0.1035, allocations: 183.3 kB / 365.6 MB, free: 5.527 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002325/0.1037, allocations: 175.1 kB / 365.8 MB, free: 5.355 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.238e-05/0.1038, allocations: 24 kB / 365.8 MB, free: 5.332 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001938/0.1057, allocations: 1.75 MB / 367.6 MB, free: 3.582 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001402/0.1059, allocations: 119.7 kB / 367.7 MB, free: 3.465 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001567/0.1061, allocations: 170.9 kB / 367.8 MB, free: 3.297 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001646/0.1077, allocations: 1.75 MB / 369.6 MB, free: 1.543 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.1077, allocations: 7.938 kB / 369.6 MB, free: 1.535 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1077, allocations: 3.938 kB / 369.6 MB, free: 1.531 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.057e-05/0.1077, allocations: 0 / 369.6 MB, free: 1.531 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.001472/0.1092, allocations: 0.8959 MB / 370.5 MB, free: 0.582 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.1093, allocations: 8.031 kB / 370.5 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.312e-05/0.1093, allocations: 54.73 kB / 370.6 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.233e-05/0.1094, allocations: 44.38 kB / 370.6 MB, free: 480 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000395/0.1098, allocations: 358.1 kB / 371 MB, free: 80 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.808e-05/0.1099, allocations: 16.66 kB / 371 MB, free: 64 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.047e-05/0.1099, allocations: 36.02 kB / 371 MB, free: 28 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.13/0.24, allocations: 302.1 kB / 371.3 MB, free: 19.24 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.24, allocations: 0.9062 kB / 371.3 MB, free: 19.24 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.443e-05/0.24, allocations: 9.906 kB / 371.3 MB, free: 19.24 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.24, allocations: 2.594 kB / 371.3 MB, free: 19.24 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000278/0.2403, allocations: 143 kB / 371.5 MB, free: 19.24 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0011/0.2414, allocations: 0.669 MB / 372.1 MB, free: 18.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005853/0.242, allocations: 325.7 kB / 372.4 MB, free: 18.95 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001589/0.2422, allocations: 109 kB / 372.5 MB, free: 18.94 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.096e-05/0.2422, allocations: 2.781 kB / 372.6 MB, free: 18.94 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.554e-05/0.2423, allocations: 37.47 kB / 372.6 MB, free: 18.9 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.532e-06/0.2423, allocations: 0 / 372.6 MB, free: 18.9 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.0006355/0.2429, allocations: 383.5 kB / 373 MB, free: 18.86 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.056e-05/0.243, allocations: 369.6 kB / 373.3 MB, free: 18.42 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003623/0.2433, allocations: 404 kB / 373.7 MB, free: 18.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.827e-05/0.2434, allocations: 36.92 kB / 373.8 MB, free: 18.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.2435, allocations: 197.1 kB / 373.9 MB, free: 18.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.924e-05/0.2435, allocations: 82.42 kB / 374 MB, free: 18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001282/0.2437, allocations: 97.33 kB / 374.1 MB, free: 17.95 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.322e-05/0.2437, allocations: 363.7 kB / 374.5 MB, free: 17.62 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002983/0.244, allocations: 209.2 kB / 374.7 MB, free: 17.55 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003511/0.2444, allocations: 319.2 kB / 375 MB, free: 17.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005313/0.2449, allocations: 394.6 kB / 375.4 MB, free: 17.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.245, allocations: 1.406 kB / 375.4 MB, free: 17.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009451/0.2459, allocations: 0.6495 MB / 376 MB, free: 17 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.2459, allocations: 6.109 kB / 376 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.419e-05/0.246, allocations: 7.375 kB / 376 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003917/0.2464, allocations: 128.5 kB / 376.2 MB, free: 16.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002618/0.2466, allocations: 64.81 kB / 376.2 MB, free: 16.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002385/0.249, allocations: 4.555 MB / 380.8 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001603/0.2492, allocations: 50.25 kB / 380.8 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.941e-05/0.2492, allocations: 9.156 kB / 380.8 MB, free: 12.6 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.0001475/0.2494, allocations: 183.4 kB / 381 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.983e-05/0.2495, allocations: 40.59 kB / 381.1 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.742e-05/0.2495, allocations: 48.14 kB / 381.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.2495, allocations: 7.438 kB / 381.1 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.2496, allocations: 0 / 381.1 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.2496, allocations: 0.6094 kB / 381.1 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003615/0.2499, allocations: 351.7 kB / 381.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.2499, allocations: 480 / 381.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000274/0.2502, allocations: 45.83 kB / 381.5 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.2502, allocations: 0 / 381.5 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.731e-05/0.2503, allocations: 16.06 kB / 381.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.285e-06/0.2503, allocations: 1.156 kB / 381.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2503, allocations: 0.7969 kB / 381.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006058/0.2509, allocations: 0.4985 MB / 382 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.683e-05/0.2509, allocations: 113.3 kB / 382.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.823e-05/0.251, allocations: 23.42 kB / 382.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001692/0.2512, allocations: 10.3 kB / 382.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.601e-05/0.2512, allocations: 16.12 kB / 382.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.38e-05/0.2513, allocations: 3.938 kB / 382.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002525/0.2515, allocations: 272.9 kB / 382.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2515, allocations: 2.734 kB / 382.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001755/0.2533, allocations: 0.6557 MB / 383.1 MB, free: 11.59 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.001973/0.2553, allocations: 1.611 MB / 384.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001219/0.2565, allocations: 0.9805 MB / 385.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.2565, allocations: 1.594 kB / 385.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001924/0.2567, allocations: 122 kB / 385.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005907/0.2573, allocations: 124.7 kB / 385.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00506/0.2624, allocations: 4.608 MB / 390.6 MB, free: 7.633 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002604/0.2627, allocations: 0.839 MB / 391.4 MB, free: 6.926 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001917/0.2629, allocations: 70.45 kB / 391.5 MB, free: 6.922 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/0.263, allocations: 134.6 kB / 391.6 MB, free: 6.82 MB / 302.1 MB Notification: Performance of SimCode: time 6.41e-07/0.263, allocations: 0 / 391.6 MB, free: 6.82 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6739/0.9369, allocations: 16.97 MB / 408.6 MB, free: 10.36 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003406/0.9373, allocations: 254.2 kB / 408.8 MB, free: 10.1 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.232/3.17, allocations: 0 / 408.8 MB, free: 10.1 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