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/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: 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/ModelicaServices trunk/package.mo): time 0.001248/0.001248, allocations: 118.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001265/0.001265, allocations: 197.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001176, allocations: 59.91 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3145/0.3157, allocations: 50.54 MB / 409.2 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.002894/0.3186, allocations: 1.705 MB / 410.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00136/0.32, allocations: 0.7438 MB / 411.7 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.158e-05/0.3201, allocations: 4 kB / 411.7 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002528/0.3203, allocations: 47.72 kB / 411.7 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001834/0.3205, allocations: 43.72 kB / 411.8 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001026/0.3216, allocations: 0.4979 MB / 412.3 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000231/0.3218, allocations: 119.6 kB / 412.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001137/0.3219, allocations: 29.53 kB / 412.4 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.695e-05/0.322, allocations: 59.77 kB / 412.5 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002255/0.3223, allocations: 91.59 kB / 412.5 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.564e-05/0.3223, allocations: 8 kB / 412.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002945/0.3226, allocations: 131.9 kB / 412.7 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.08e-05/0.3227, allocations: 31.84 kB / 412.7 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.8e-05/0.3228, allocations: 67.58 kB / 412.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003004/0.3231, allocations: 207.2 kB / 413 MB, free: 13.79 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3231, allocations: 0 / 413 MB, free: 13.79 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3231, allocations: 0 / 413 MB, free: 13.79 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.3232, allocations: 0 / 413 MB, free: 13.79 MB / 334.1 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.00138/0.3245, allocations: 0.5235 MB / 413.5 MB, free: 13.21 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.3246, allocations: 8.031 kB / 413.5 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006574/0.3252, allocations: 108.6 kB / 413.6 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001809/0.3254, allocations: 192 kB / 413.8 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.259e-05/0.3255, allocations: 12.38 kB / 413.8 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.575e-05/0.3255, allocations: 12.36 kB / 413.8 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003949/0.3259, allocations: 172.9 kB / 414 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.3259, allocations: 0 / 414 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.085e-05/0.3259, allocations: 4 kB / 414 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.305e-05/0.326, allocations: 8 kB / 414 MB, free: 12.67 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004006/0.3264, allocations: 151.9 kB / 414.2 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001007/0.3274, allocations: 0.5663 MB / 414.7 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003719/0.3278, allocations: 146.6 kB / 414.9 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001824/0.328, allocations: 76.75 kB / 414.9 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.326e-05/0.328, allocations: 0 / 414.9 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.145e-05/0.328, allocations: 38.5 kB / 415 MB, free: 11.62 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 9.82e-07/0.3281, allocations: 0 / 415 MB, free: 11.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.0005924/0.3286, allocations: 209.6 kB / 415.2 MB, free: 11.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.622e-05/0.3287, allocations: 51.78 kB / 415.2 MB, free: 11.35 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002084/0.3289, allocations: 211.3 kB / 415.4 MB, free: 11.13 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.931e-05/0.3289, allocations: 25.7 kB / 415.5 MB, free: 11.1 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.429e-05/0.329, allocations: 120.2 kB / 415.6 MB, free: 10.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.681e-05/0.3291, allocations: 35.48 kB / 415.6 MB, free: 10.94 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.24e-05/0.3291, allocations: 37.61 kB / 415.7 MB, free: 10.9 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.3293, allocations: 326.8 kB / 416 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001548/0.3294, allocations: 55.95 kB / 416 MB, free: 10.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001795/0.3296, allocations: 95.69 kB / 416.1 MB, free: 10.41 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003366/0.33, allocations: 156.2 kB / 416.3 MB, free: 10.24 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.33, allocations: 4 kB / 416.3 MB, free: 10.24 MB / 334.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004194/0.3304, allocations: 193.2 kB / 416.5 MB, free: 10.04 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.053e-05/0.3304, allocations: 7.125 kB / 416.5 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.3305, allocations: 7.984 kB / 416.5 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.3305, allocations: 0 / 416.5 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001736/0.3307, allocations: 36.05 kB / 416.5 MB, free: 9.996 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.3307, allocations: 0 / 416.5 MB, free: 9.996 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001218/0.3308, allocations: 23.83 kB / 416.5 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.395e-05/0.3308, allocations: 4 kB / 416.6 MB, free: 9.969 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (14): * Single equations (assignments): 14 * 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 prepare postOptimizeDAE: time 0.000115/0.3309, allocations: 129.8 kB / 416.7 MB, free: 9.832 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.902e-05/0.331, allocations: 15.84 kB / 416.7 MB, free: 9.816 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004753/0.3315, allocations: 190.8 kB / 416.9 MB, free: 9.617 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.3315, allocations: 4 kB / 416.9 MB, free: 9.613 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.3315, allocations: 0 / 416.9 MB, free: 9.613 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.3315, allocations: 4 kB / 416.9 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003135/0.3318, allocations: 253.5 kB / 417.1 MB, free: 9.312 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.3318, allocations: 0 / 417.1 MB, free: 9.312 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001479/0.332, allocations: 23.98 kB / 417.2 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.332, allocations: 0 / 417.2 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.366e-05/0.332, allocations: 4 kB / 417.2 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.332, allocations: 96 / 417.2 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.332, allocations: 3.938 kB / 417.2 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000431/0.3325, allocations: 271.1 kB / 417.4 MB, free: 9 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.251e-05/0.3326, allocations: 108.8 kB / 417.5 MB, free: 8.875 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.993e-05/0.3326, allocations: 7.984 kB / 417.5 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000128/0.3327, allocations: 4 kB / 417.5 MB, free: 8.863 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.602e-05/0.3328, allocations: 11.98 kB / 417.6 MB, free: 8.852 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.173e-06/0.3328, allocations: 0 / 417.6 MB, free: 8.852 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001256/0.3329, allocations: 164.2 kB / 417.7 MB, free: 8.691 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.333, allocations: 0 / 417.7 MB, free: 8.691 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002523/0.3332, allocations: 24 kB / 417.7 MB, free: 8.668 MB / 334.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0001452/0.3334, allocations: 99.25 kB / 417.8 MB, free: 8.562 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003818/0.3337, allocations: 143.8 kB / 418 MB, free: 8.422 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3338, allocations: 0 / 418 MB, free: 8.422 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001652/0.3339, allocations: 63.95 kB / 418 MB, free: 8.359 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002992/0.3342, allocations: 34.47 kB / 418.1 MB, free: 8.328 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005989/0.3348, allocations: 322.3 kB / 418.4 MB, free: 7.988 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002621/0.3351, allocations: 0.724 MB / 419.1 MB, free: 7.238 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.882e-05/0.3352, allocations: 33.39 kB / 419.1 MB, free: 7.207 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.165e-05/0.3353, allocations: 15.44 kB / 419.2 MB, free: 7.191 MB / 334.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3353, allocations: 4 kB / 419.2 MB, free: 7.188 MB / 334.1 MB Notification: Performance of Templates: time 0.004273/0.3396, allocations: 1.636 MB / 420.8 MB, free: 5.555 MB / 334.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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.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.aw[3].re,transferFunction.bSum.re,transferFunction.b[1],transferFunction.bw[1].re,transferFunction.u.im,transferFunction.u.re,transferFunction.uInternal.im,transferFunction.uInternal.re,transferFunction.useConjugateInput,transferFunction.y.im,transferFunction.y.re,wMax,wMin