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.001396/0.001396, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 226.6 MB / 244.3 MB, free: 8.309 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007322/0.0007322, allocations: 104 kB / 296.4 MB, free: 7.016 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002607/0.0002608, allocations: 8 kB / 356.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2207/0.221, allocations: 51.3 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Filter): time 0.001464/0.2225, allocations: 1.65 MB / 409.1 MB, free: 26.19 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004177/0.2267, allocations: 3.575 MB / 412.7 MB, free: 22.62 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001303/0.2268, allocations: 11.88 kB / 412.7 MB, free: 22.61 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003715/0.2272, allocations: 151.3 kB / 412.9 MB, free: 22.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.592e-05/0.2273, allocations: 39.7 kB / 412.9 MB, free: 22.42 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002778/0.2301, allocations: 1.518 MB / 414.4 MB, free: 20.92 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003593/0.2305, allocations: 426.8 kB / 414.8 MB, free: 20.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001142/0.2306, allocations: 45.08 kB / 414.9 MB, free: 20.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000116/0.2307, allocations: 151.4 kB / 415 MB, free: 20.3 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001414/0.2309, allocations: 155.2 kB / 415.2 MB, free: 20.15 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.791e-05/0.2309, allocations: 12 kB / 415.2 MB, free: 20.14 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001331/0.2323, allocations: 1.424 MB / 416.6 MB, free: 18.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001009/0.2324, allocations: 99.7 kB / 416.7 MB, free: 18.61 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.942e-05/0.2324, allocations: 85.45 kB / 416.8 MB, free: 18.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008573/0.2333, allocations: 1.506 MB / 418.3 MB, free: 17.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.2333, allocations: 0 / 418.3 MB, free: 17.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2333, allocations: 0 / 418.3 MB, free: 17.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.2333, allocations: 4 kB / 418.3 MB, free: 17.01 MB / 298.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.001086/0.2344, allocations: 0.8373 MB / 419.2 MB, free: 16.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.306e-05/0.2344, allocations: 12.03 kB / 419.2 MB, free: 16.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.699e-05/0.2345, allocations: 43.44 kB / 419.2 MB, free: 16.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003155/0.2348, allocations: 333.2 kB / 419.5 MB, free: 15.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.486e-05/0.2349, allocations: 16.28 kB / 419.5 MB, free: 15.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.075e-05/0.2349, allocations: 31.86 kB / 419.6 MB, free: 15.65 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003526/0.2353, allocations: 308.5 kB / 419.9 MB, free: 15.31 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.2353, allocations: 0 / 419.9 MB, free: 15.31 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.233e-05/0.2353, allocations: 4 kB / 419.9 MB, free: 15.3 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.2353, allocations: 4 kB / 419.9 MB, free: 15.3 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002249/0.2356, allocations: 152.7 kB / 420 MB, free: 15.15 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008847/0.2365, allocations: 0.6874 MB / 420.7 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005099/0.237, allocations: 315.2 kB / 421 MB, free: 14.1 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001428/0.2371, allocations: 109.2 kB / 421.1 MB, free: 13.99 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.765e-05/0.2372, allocations: 4.188 kB / 421.1 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.524e-05/0.2372, allocations: 35.12 kB / 421.2 MB, free: 13.94 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.392e-06/0.2372, allocations: 3.938 kB / 421.2 MB, free: 13.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005613/0.2378, allocations: 396.7 kB / 421.6 MB, free: 13.55 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.774e-05/0.2378, allocations: 367.8 kB / 421.9 MB, free: 13.1 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002839/0.2381, allocations: 409.7 kB / 422.3 MB, free: 12.69 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.674e-05/0.2382, allocations: 37.69 kB / 422.4 MB, free: 12.65 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001177/0.2383, allocations: 192.8 kB / 422.6 MB, free: 12.46 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.358e-05/0.2383, allocations: 82.8 kB / 422.6 MB, free: 12.38 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.78e-05/0.2384, allocations: 12.11 kB / 422.6 MB, free: 12.36 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.399e-05/0.2384, allocations: 354.7 kB / 423 MB, free: 12.01 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002538/0.2387, allocations: 204.4 kB / 423.2 MB, free: 11.81 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003013/0.239, allocations: 326.3 kB / 423.5 MB, free: 11.45 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002829/0.2393, allocations: 245.3 kB / 423.8 MB, free: 11.21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.2393, allocations: 0 / 423.8 MB, free: 11.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.000866/0.2402, allocations: 0.6498 MB / 424.4 MB, free: 10.55 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.2402, allocations: 4 kB / 424.4 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.388e-05/0.2402, allocations: 11.92 kB / 424.4 MB, free: 10.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003771/0.2406, allocations: 134.4 kB / 424.5 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002561/0.2409, allocations: 59.97 kB / 424.6 MB, free: 10.33 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002124/0.243, allocations: 4.219 MB / 428.8 MB, free: 5.711 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001643/0.2432, allocations: 51.41 kB / 428.9 MB, free: 5.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.613e-05/0.2432, allocations: 12 kB / 428.9 MB, free: 5.648 MB / 298.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.0001409/0.2434, allocations: 177.8 kB / 429.1 MB, free: 5.465 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.998e-05/0.2434, allocations: 43.53 kB / 429.1 MB, free: 5.422 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.619e-05/0.2435, allocations: 43.75 kB / 429.1 MB, free: 5.379 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.2435, allocations: 4 kB / 429.2 MB, free: 5.375 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-06/0.2435, allocations: 0 / 429.2 MB, free: 5.375 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.2435, allocations: 3.984 kB / 429.2 MB, free: 5.371 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002522/0.2438, allocations: 349.2 kB / 429.5 MB, free: 4.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.2438, allocations: 0 / 429.5 MB, free: 4.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002643/0.244, allocations: 39.97 kB / 429.5 MB, free: 4.941 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.244, allocations: 0 / 429.5 MB, free: 4.941 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.469e-05/0.2441, allocations: 11.98 kB / 429.5 MB, free: 4.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.2441, allocations: 7.938 kB / 429.6 MB, free: 4.922 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.2441, allocations: 4 kB / 429.6 MB, free: 4.918 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005087/0.2446, allocations: 0.5002 MB / 430.1 MB, free: 4.402 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.249e-05/0.2447, allocations: 120.4 kB / 430.2 MB, free: 4.266 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.171e-05/0.2447, allocations: 15.98 kB / 430.2 MB, free: 4.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001672/0.2449, allocations: 15.98 kB / 430.2 MB, free: 4.234 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.348e-05/0.2449, allocations: 19.97 kB / 430.2 MB, free: 4.215 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.262e-05/0.245, allocations: 4.109 kB / 430.2 MB, free: 4.211 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001902/0.2451, allocations: 271.1 kB / 430.5 MB, free: 3.949 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2452, allocations: 0 / 430.5 MB, free: 3.949 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001589/0.2467, allocations: 0.6445 MB / 431.1 MB, free: 3.305 MB / 298.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.001154/0.2479, allocations: 0.6781 MB / 431.8 MB, free: 2.625 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001098/0.249, allocations: 0.95 MB / 432.8 MB, free: 1.594 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.249, allocations: 0 / 432.8 MB, free: 1.594 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001722/0.2492, allocations: 129.1 kB / 432.9 MB, free: 1.469 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005635/0.2498, allocations: 111.3 kB / 433 MB, free: 1.367 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001154/0.251, allocations: 1.053 MB / 434.1 MB, free: 292 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003669/0.2513, allocations: 0.8496 MB / 434.9 MB, free: 15.41 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.721e-05/0.2514, allocations: 27.44 kB / 434.9 MB, free: 15.38 MB / 314.7 MB Notification: Performance of SimCode: time 3.11e-07/0.2514, allocations: 0 / 434.9 MB, free: 15.38 MB / 314.7 MB Notification: Performance of Templates: time 0.0165/0.2679, allocations: 12.05 MB / 447 MB, free: 3.328 MB / 314.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/jenkins/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