Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.Filter.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Blocks.Examples.Filter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="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.",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.Filter") translateModel(Modelica.Blocks.Examples.Filter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="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.",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.Filter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00149/0.00149, allocations: 199.3 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.263/1.263, allocations: 226.5 MB / 245.4 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007489/0.0007487, allocations: 96.81 kB / 297.4 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002459/0.0002459, allocations: 8 kB / 357.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2242/0.2245, allocations: 51.29 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1128/0.3374, allocations: 91.15 MB / 499.8 MB, free: 452 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002771/0.3377, allocations: 75.95 kB / 499.9 MB, free: 376 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2692/0.6069, allocations: 35.87 MB / 0.5232 GB, free: 86.44 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.452e-06/0.607, allocations: 0 / 0.5232 GB, free: 86.44 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.794e-05/0.607, allocations: 18.19 kB / 0.5232 GB, free: 86.43 MB / 378.7 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.001852/0.6089, allocations: 0.8951 MB / 0.5241 GB, free: 85.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.6089, allocations: 10.75 kB / 0.5241 GB, free: 85.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.542e-05/0.609, allocations: 51.81 kB / 0.5241 GB, free: 85.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006045/0.6096, allocations: 461 kB / 0.5246 GB, free: 85.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/0.6096, allocations: 18.72 kB / 0.5246 GB, free: 85.47 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.374e-05/0.6097, allocations: 33.8 kB / 0.5246 GB, free: 85.45 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003628/0.6101, allocations: 325 kB / 0.5249 GB, free: 85.23 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.6101, allocations: 8.062 kB / 0.525 GB, free: 85.22 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.473e-05/0.6101, allocations: 15.31 kB / 0.525 GB, free: 85.21 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.6101, allocations: 6.344 kB / 0.525 GB, free: 85.21 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002283/0.6104, allocations: 145.3 kB / 0.5251 GB, free: 85.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009239/0.6113, allocations: 0.686 MB / 0.5258 GB, free: 84.77 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000522/0.6118, allocations: 320.1 kB / 0.5261 GB, free: 84.66 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001488/0.612, allocations: 115.2 kB / 0.5262 GB, free: 84.59 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.105e-05/0.612, allocations: 3.938 kB / 0.5262 GB, free: 84.58 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.52e-05/0.6121, allocations: 38.56 kB / 0.5262 GB, free: 84.54 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 1.553e-06/0.6121, allocations: 0 / 0.5262 GB, free: 84.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005677/0.6126, allocations: 387.2 kB / 0.5266 GB, free: 84.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.617e-05/0.6127, allocations: 363.8 kB / 0.527 GB, free: 83.76 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002887/0.613, allocations: 404 kB / 0.5273 GB, free: 83.42 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.04e-05/0.613, allocations: 33.7 kB / 0.5274 GB, free: 83.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.65e-05/0.6131, allocations: 199.9 kB / 0.5276 GB, free: 83.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.282e-05/0.6132, allocations: 82.19 kB / 0.5276 GB, free: 83.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.002e-05/0.6132, allocations: 12 kB / 0.5276 GB, free: 83.11 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.121e-05/0.6133, allocations: 354.4 kB / 0.528 GB, free: 82.77 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002684/0.6136, allocations: 199.5 kB / 0.5282 GB, free: 82.61 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002983/0.6139, allocations: 305.1 kB / 0.5285 GB, free: 82.32 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004479/0.6143, allocations: 391.9 kB / 0.5288 GB, free: 81.97 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.6143, allocations: 0 / 0.5288 GB, free: 81.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008999/0.6152, allocations: 0.6346 MB / 0.5295 GB, free: 81.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.6153, allocations: 11.94 kB / 0.5295 GB, free: 81.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.053e-05/0.6153, allocations: 15.73 kB / 0.5295 GB, free: 81.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003798/0.6157, allocations: 129.3 kB / 0.5296 GB, free: 81.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002565/0.6159, allocations: 63.31 kB / 0.5297 GB, free: 81.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002135/0.6181, allocations: 4.23 MB / 0.5338 GB, free: 76.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000174/0.6183, allocations: 47.45 kB / 0.5338 GB, free: 76.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.025e-05/0.6183, allocations: 12 kB / 0.5339 GB, free: 76.74 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001625/0.6185, allocations: 183.7 kB / 0.534 GB, free: 76.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.216e-05/0.6186, allocations: 39.53 kB / 0.5341 GB, free: 76.53 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.778e-05/0.6186, allocations: 39.7 kB / 0.5341 GB, free: 76.49 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.6186, allocations: 3.938 kB / 0.5341 GB, free: 76.49 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-06/0.6186, allocations: 4 kB / 0.5341 GB, free: 76.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.6186, allocations: 3.938 kB / 0.5341 GB, free: 76.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003065/0.619, allocations: 350.5 kB / 0.5345 GB, free: 76.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.619, allocations: 0 / 0.5345 GB, free: 76.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002804/0.6193, allocations: 37.62 kB / 0.5345 GB, free: 76.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.6193, allocations: 7.625 kB / 0.5345 GB, free: 76.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.669e-05/0.6193, allocations: 15.78 kB / 0.5345 GB, free: 76.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.6193, allocations: 0 / 0.5345 GB, free: 76.11 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.6193, allocations: 3.938 kB / 0.5345 GB, free: 76.1 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005317/0.6199, allocations: 0.5045 MB / 0.535 GB, free: 75.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.101e-05/0.6199, allocations: 116.5 kB / 0.5351 GB, free: 75.51 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.462e-05/0.62, allocations: 15.88 kB / 0.5351 GB, free: 75.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001633/0.6201, allocations: 15.66 kB / 0.5352 GB, free: 75.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.755e-05/0.6202, allocations: 11.75 kB / 0.5352 GB, free: 75.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.33e-05/0.6202, allocations: 8 kB / 0.5352 GB, free: 75.47 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001987/0.6204, allocations: 268.3 kB / 0.5354 GB, free: 75.25 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.6204, allocations: 3.938 kB / 0.5354 GB, free: 75.24 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001891/0.6223, allocations: 0.6945 MB / 0.5361 GB, free: 74.56 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001434/0.6238, allocations: 0.7323 MB / 0.5368 GB, free: 73.87 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001168/0.6249, allocations: 0.9458 MB / 0.5377 GB, free: 72.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.625, allocations: 4 kB / 0.5378 GB, free: 72.93 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001759/0.6251, allocations: 123.2 kB / 0.5379 GB, free: 72.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005583/0.6257, allocations: 102.7 kB / 0.538 GB, free: 72.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001337/0.627, allocations: 1.052 MB / 0.539 GB, free: 71.82 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002366/0.6273, allocations: 0.8443 MB / 0.5398 GB, free: 71.01 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.729e-05/0.6274, allocations: 27.44 kB / 0.5398 GB, free: 70.98 MB / 378.7 MB Notification: Performance of SimCode: time 8.81e-07/0.6274, allocations: 0 / 0.5398 GB, free: 70.98 MB / 378.7 MB Notification: Performance of Templates: time 0.01337/0.6408, allocations: 12.06 MB / 0.5516 GB, free: 59.64 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Filter.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Filter.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.Filter.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.Filter.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Filter.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.Filter --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.Filter.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Filter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches