Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction.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.ComplexBlocks.Examples.ShowTransferFunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|logFrequencySweep.y|const.y.re|const.y.im|transferFunction.y.re|transferFunction.y.im",fileNamePrefix="Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction") translateModel(Modelica.ComplexBlocks.Examples.ShowTransferFunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|logFrequencySweep.y|const.y.re|const.y.im|transferFunction.y.re|transferFunction.y.im",fileNamePrefix="Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001854/0.001854, allocations: 202.8 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.602/1.602, allocations: 225.6 MB / 234.8 MB, free: 3.246 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009053/0.0009054, allocations: 101.1 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.561e-05/1.586e-05, allocations: 4 kB / 343.7 MB, free: 8.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.101, allocations: 51.47 MB / 395.2 MB, free: 4.75 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3042/0.4053, allocations: 78.44 MB / 473.6 MB, free: 13.38 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002753/0.4056, allocations: 63.45 kB / 473.7 MB, free: 13.36 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01585/0.4215, allocations: 4.182 MB / 477.8 MB, free: 11.04 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.4215, allocations: 0 / 477.8 MB, free: 11.04 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.199e-05/0.4216, allocations: 4 kB / 477.8 MB, free: 11.04 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001908/0.4235, allocations: 0.5555 MB / 478.4 MB, free: 10.53 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.4235, allocations: 8.25 kB / 478.4 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000187/0.4237, allocations: 17.12 kB / 478.4 MB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001694/0.4239, allocations: 202.4 kB / 478.6 MB, free: 10.27 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.879e-05/0.424, allocations: 4.859 kB / 478.6 MB, free: 10.27 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.237e-05/0.424, allocations: 4 kB / 478.6 MB, free: 10.26 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000408/0.4244, allocations: 139.2 kB / 478.8 MB, free: 10.19 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003684/0.4248, allocations: 133.1 kB / 478.9 MB, free: 10.11 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.4249, allocations: 0 / 478.9 MB, free: 10.11 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.526e-05/0.4249, allocations: 4.125 kB / 478.9 MB, free: 10.11 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.583e-05/0.4249, allocations: 4 kB / 478.9 MB, free: 10.11 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001386/0.4263, allocations: 0.5283 MB / 479.4 MB, free: 9.719 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004361/0.4268, allocations: 145.3 kB / 479.6 MB, free: 9.621 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001513/0.427, allocations: 57.92 kB / 479.6 MB, free: 9.586 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.565e-05/0.427, allocations: 0 / 479.6 MB, free: 9.586 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.021e-05/0.427, allocations: 42.14 kB / 479.7 MB, free: 9.539 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.984e-06/0.4271, allocations: 0 / 479.7 MB, free: 9.539 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004288/0.4275, allocations: 139.7 kB / 479.8 MB, free: 9.441 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.556e-05/0.4275, allocations: 63.34 kB / 479.9 MB, free: 9.367 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001735/0.4277, allocations: 147.1 kB / 480 MB, free: 9.238 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.912e-05/0.4278, allocations: 25.7 kB / 480 MB, free: 9.207 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.207e-05/0.4279, allocations: 129.7 kB / 480.2 MB, free: 9.098 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.011e-05/0.4279, allocations: 34.14 kB / 480.2 MB, free: 9.07 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.488e-05/0.4279, allocations: 0 / 480.2 MB, free: 9.07 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.873e-05/0.428, allocations: 326.1 kB / 480.5 MB, free: 8.754 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001248/0.4282, allocations: 42.11 kB / 480.6 MB, free: 8.73 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001555/0.4283, allocations: 91.31 kB / 480.6 MB, free: 8.652 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001576/0.4285, allocations: 57.17 kB / 480.7 MB, free: 8.625 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.4285, allocations: 0 / 480.7 MB, free: 8.625 MB / 346.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004505/0.429, allocations: 177.2 kB / 480.9 MB, free: 8.5 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.429, allocations: 4 kB / 480.9 MB, free: 8.496 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.4291, allocations: 10.72 kB / 480.9 MB, free: 8.488 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/0.4291, allocations: 3.953 kB / 480.9 MB, free: 8.484 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002994/0.4294, allocations: 36.47 kB / 480.9 MB, free: 8.457 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.4294, allocations: 1.5 kB / 480.9 MB, free: 8.457 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002135/0.4297, allocations: 17.48 kB / 480.9 MB, free: 8.441 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.515e-05/0.4297, allocations: 9.766 kB / 481 MB, free: 8.434 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 prepare postOptimizeDAE: time 8.16e-05/0.4298, allocations: 112.5 kB / 481.1 MB, free: 8.32 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.95e-05/0.4299, allocations: 7.906 kB / 481.1 MB, free: 8.312 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004148/0.4303, allocations: 163.2 kB / 481.2 MB, free: 8.211 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/0.4303, allocations: 7.938 kB / 481.2 MB, free: 8.203 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.4303, allocations: 0 / 481.2 MB, free: 8.203 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.4304, allocations: 0 / 481.2 MB, free: 8.203 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003128/0.4307, allocations: 232.8 kB / 481.5 MB, free: 7.973 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.4307, allocations: 0 / 481.5 MB, free: 7.973 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000287/0.431, allocations: 35.91 kB / 481.5 MB, free: 7.938 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.431, allocations: 0 / 481.5 MB, free: 7.938 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.956e-05/0.4311, allocations: 4 kB / 481.5 MB, free: 7.934 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.4311, allocations: 0 / 481.5 MB, free: 7.934 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.4311, allocations: 0 / 481.5 MB, free: 7.934 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003692/0.4315, allocations: 248 kB / 481.7 MB, free: 7.711 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.973e-05/0.4316, allocations: 99.94 kB / 481.8 MB, free: 7.602 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.73e-05/0.4316, allocations: 4 kB / 481.8 MB, free: 7.598 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002399/0.4319, allocations: 11.98 kB / 481.9 MB, free: 7.586 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.956e-05/0.432, allocations: 7.984 kB / 481.9 MB, free: 7.578 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.664e-05/0.432, allocations: 0 / 481.9 MB, free: 7.578 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000105/0.4321, allocations: 130.1 kB / 482 MB, free: 7.465 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4321, allocations: 0 / 482 MB, free: 7.465 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004986/0.4326, allocations: 35.8 kB / 482 MB, free: 7.43 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001858/0.4328, allocations: 110.7 kB / 482.1 MB, free: 7.312 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003398/0.4332, allocations: 124.8 kB / 482.3 MB, free: 7.227 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.4332, allocations: 0 / 482.3 MB, free: 7.227 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001499/0.4334, allocations: 63.11 kB / 482.3 MB, free: 7.184 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003243/0.4337, allocations: 14.23 kB / 482.3 MB, free: 7.176 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006086/0.4343, allocations: 205 kB / 482.5 MB, free: 6.988 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000196/0.4345, allocations: 0.727 MB / 483.3 MB, free: 6.238 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002027/0.4348, allocations: 28.75 kB / 483.3 MB, free: 6.211 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.828e-05/0.4348, allocations: 15.44 kB / 483.3 MB, free: 6.195 MB / 346.7 MB Notification: Performance of SimCode: time 6.11e-07/0.4349, allocations: 0 / 483.3 MB, free: 6.195 MB / 346.7 MB Notification: Performance of Templates: time 0.005824/0.4407, allocations: 1.246 MB / 484.6 MB, free: 5 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction.makefile (rm -f Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe ; mkfifo Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe >> ../files/Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction.sim & ./Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/ComplexBlocks/Examples/ShowTransferFunction/ShowTransferFunction.csv","../files/Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,logFrequencySweep.y,const.y.re,const.y.im,transferFunction.y.re,transferFunction.y.im Variables in the result:a[1],a[2],a[3],b[1],c,complexToPolar.u.im,complexToPolar.u.re,complexToPolar.useConjugateInput,const.k.im,const.k.re,const.y.im,const.y.re,d,logFrequencySweep.duration,logFrequencySweep.startTime,logFrequencySweep.wMax,logFrequencySweep.wMin,logFrequencySweep.y,m,time,transferFunction.a[1],transferFunction.a[2],transferFunction.a[3],transferFunction.b[1],transferFunction.useConjugateInput,transferFunction.y.im,transferFunction.y.re,wMax,wMin