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.00111/0.00111, allocations: 118.1 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001112/0.001112, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001092/0.001092, allocations: 67.88 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3286/0.3297, allocations: 50.53 MB / 409.2 MB, free: 1.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.005827/0.3356, allocations: 1.697 MB / 410.9 MB, free: 60 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002455/0.3381, allocations: 0.7438 MB / 411.7 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001388/0.3383, allocations: 4 kB / 411.7 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000467/0.3388, allocations: 51.7 kB / 411.7 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003786/0.3392, allocations: 43.72 kB / 411.8 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001863/0.3411, allocations: 0.5091 MB / 412.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003759/0.3415, allocations: 119.6 kB / 412.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001723/0.3417, allocations: 21.56 kB / 412.4 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001856/0.3419, allocations: 63.75 kB / 412.5 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003432/0.3423, allocations: 91.61 kB / 412.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.608e-05/0.3424, allocations: 8 kB / 412.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004202/0.3428, allocations: 131.9 kB / 412.7 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001104/0.3429, allocations: 35.83 kB / 412.7 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001308/0.3431, allocations: 63.55 kB / 412.8 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005153/0.3436, allocations: 204.7 kB / 413 MB, free: 13.97 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3436, allocations: 0 / 413 MB, free: 13.97 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3436, allocations: 0 / 413 MB, free: 13.97 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.155e-05/0.3437, allocations: 0 / 413 MB, free: 13.97 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.002195/0.3459, allocations: 0.5261 MB / 413.5 MB, free: 13.4 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.513e-05/0.3459, allocations: 12.02 kB / 413.5 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001405/0.3474, allocations: 108.6 kB / 413.6 MB, free: 13.28 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002995/0.3477, allocations: 196 kB / 413.8 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.984e-05/0.3477, allocations: 8.375 kB / 413.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.099e-05/0.3478, allocations: 8.375 kB / 413.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006695/0.3485, allocations: 168.9 kB / 414 MB, free: 12.87 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.457e-05/0.3485, allocations: 0 / 414 MB, free: 12.87 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.155e-05/0.3486, allocations: 4 kB / 414 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.771e-05/0.3486, allocations: 8 kB / 414 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007389/0.3494, allocations: 159.9 kB / 414.2 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00169/0.3511, allocations: 0.5586 MB / 414.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004931/0.3516, allocations: 146.6 kB / 414.9 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000222/0.3518, allocations: 72.75 kB / 414.9 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.697e-05/0.3518, allocations: 0 / 414.9 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.861e-05/0.3519, allocations: 34.56 kB / 415 MB, free: 11.82 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 3.206e-06/0.3519, allocations: 0 / 415 MB, free: 11.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006212/0.3525, allocations: 217.5 kB / 415.2 MB, free: 11.6 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.492e-05/0.3526, allocations: 55.41 kB / 415.2 MB, free: 11.54 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002225/0.3528, allocations: 211.3 kB / 415.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.08e-05/0.3528, allocations: 25.7 kB / 415.5 MB, free: 11.29 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.555e-05/0.3529, allocations: 124.2 kB / 415.6 MB, free: 11.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.223e-05/0.353, allocations: 35.48 kB / 415.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.272e-05/0.353, allocations: 33.62 kB / 415.7 MB, free: 11.08 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.3532, allocations: 326.8 kB / 416 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001616/0.3534, allocations: 63.89 kB / 416 MB, free: 10.69 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001796/0.3536, allocations: 88.23 kB / 416.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003481/0.3539, allocations: 152.2 kB / 416.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.3539, allocations: 0 / 416.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004335/0.3544, allocations: 205.2 kB / 416.5 MB, free: 10.22 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.3544, allocations: 7.094 kB / 416.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.3544, allocations: 4 kB / 416.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.3544, allocations: 4 kB / 416.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000195/0.3546, allocations: 31.92 kB / 416.5 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.3546, allocations: 4 kB / 416.5 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001235/0.3548, allocations: 20.3 kB / 416.5 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.506e-05/0.3548, allocations: 4 kB / 416.6 MB, free: 10.15 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.0001297/0.3549, allocations: 129.8 kB / 416.7 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.923e-05/0.355, allocations: 15.84 kB / 416.7 MB, free: 9.996 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004678/0.3555, allocations: 194.8 kB / 416.9 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.3555, allocations: 3.938 kB / 416.9 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.3555, allocations: 0 / 416.9 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.3555, allocations: 0 / 416.9 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002854/0.3558, allocations: 249.5 kB / 417.1 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3558, allocations: 0 / 417.1 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001522/0.356, allocations: 27.98 kB / 417.2 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.356, allocations: 0 / 417.2 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.594e-05/0.356, allocations: 7.984 kB / 417.2 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.356, allocations: 4 kB / 417.2 MB, free: 9.457 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.356, allocations: 0 / 417.2 MB, free: 9.457 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004259/0.3564, allocations: 263.2 kB / 417.4 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.593e-05/0.3565, allocations: 112.8 kB / 417.5 MB, free: 9.055 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.51e-05/0.3566, allocations: 0 / 417.5 MB, free: 9.055 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001322/0.3567, allocations: 15.98 kB / 417.6 MB, free: 9.039 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.27e-05/0.3568, allocations: 8 kB / 417.6 MB, free: 9.031 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.238e-06/0.3568, allocations: 3.984 kB / 417.6 MB, free: 9.027 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001358/0.3569, allocations: 152.2 kB / 417.7 MB, free: 8.879 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3569, allocations: 0 / 417.7 MB, free: 8.879 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002737/0.3572, allocations: 28 kB / 417.7 MB, free: 8.852 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.0001497/0.3574, allocations: 107.3 kB / 417.8 MB, free: 8.738 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004158/0.3578, allocations: 143.7 kB / 418 MB, free: 8.598 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.3578, allocations: 0 / 418 MB, free: 8.598 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001654/0.358, allocations: 59.97 kB / 418 MB, free: 8.539 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003159/0.3583, allocations: 32.14 kB / 418.1 MB, free: 8.508 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007044/0.359, allocations: 322 kB / 418.4 MB, free: 8.168 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003526/0.3594, allocations: 0.7239 MB / 419.1 MB, free: 7.418 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001068/0.3595, allocations: 29.41 kB / 419.1 MB, free: 7.391 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.753e-05/0.3596, allocations: 19.42 kB / 419.2 MB, free: 7.371 MB / 334.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3596, allocations: 4 kB / 419.2 MB, free: 7.367 MB / 334.1 MB Notification: Performance of Templates: time 0.005106/0.3647, allocations: 1.644 MB / 420.8 MB, free: 5.73 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