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: "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.ShowTransferFunction,fileNamePrefix="Modelica_trunk_Modelica_ComplexBlocks_Examples_ShowTransferFunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.ShowTransferFunction,fileNamePrefix="Modelica_trunk_Modelica_ComplexBlocks_Examples_ShowTransferFunction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001019/0.001019, allocations: 117.8 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.001017/0.001017, allocations: 199.8 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.37/1.37, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 59.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2891/0.2904, allocations: 50.54 MB / 408.7 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.003015/0.2934, allocations: 1.704 MB / 410.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001434/0.2949, allocations: 0.7516 MB / 411.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.765e-05/0.295, allocations: 0 / 411.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002679/0.2953, allocations: 47.73 kB / 411.2 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002182/0.2955, allocations: 39.7 kB / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001052/0.2966, allocations: 0.4941 MB / 411.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000257/0.2969, allocations: 127.5 kB / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.297, allocations: 37.53 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001242/0.2971, allocations: 55.72 kB / 412 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002529/0.2974, allocations: 83.67 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.2e-05/0.2974, allocations: 12 kB / 412.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002555/0.2977, allocations: 127.8 kB / 412.2 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.26e-05/0.2978, allocations: 43.83 kB / 412.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.96e-05/0.2979, allocations: 59.61 kB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003337/0.2982, allocations: 205.1 kB / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2982, allocations: 3.938 kB / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.2982, allocations: 0 / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.704e-06/0.2983, allocations: 0 / 412.5 MB, free: 13.76 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.00137/0.2996, allocations: 0.5261 MB / 413 MB, free: 13.18 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.2997, allocations: 12.03 kB / 413 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.026e-05/0.2997, allocations: 42.73 kB / 413.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000682/0.3004, allocations: 104.6 kB / 413.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001812/0.3006, allocations: 196 kB / 413.4 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.171e-05/0.3007, allocations: 8.375 kB / 413.4 MB, free: 12.78 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.969e-05/0.3007, allocations: 12.38 kB / 413.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000375/0.3011, allocations: 161.7 kB / 413.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.3011, allocations: 0 / 413.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.848e-05/0.3011, allocations: 4 kB / 413.6 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.187e-05/0.3011, allocations: 4 kB / 413.6 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003949/0.3015, allocations: 163.8 kB / 413.7 MB, free: 12.44 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00106/0.3026, allocations: 0.5702 MB / 414.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004054/0.303, allocations: 142.8 kB / 414.4 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001834/0.3032, allocations: 72.75 kB / 414.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.722e-05/0.3033, allocations: 4 kB / 414.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.076e-05/0.3033, allocations: 30.56 kB / 414.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 3.397e-06/0.3033, allocations: 0 / 414.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006458/0.304, allocations: 217.5 kB / 414.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.786e-05/0.304, allocations: 51.5 kB / 414.8 MB, free: 11.27 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002362/0.3043, allocations: 215.4 kB / 415 MB, free: 11.05 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.576e-05/0.3043, allocations: 29.7 kB / 415 MB, free: 11.01 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.3044, allocations: 120.2 kB / 415.2 MB, free: 10.89 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.21e-05/0.3045, allocations: 35.45 kB / 415.2 MB, free: 10.85 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.402e-05/0.3045, allocations: 25.72 kB / 415.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.3047, allocations: 330.8 kB / 415.5 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001711/0.3048, allocations: 55.97 kB / 415.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001959/0.305, allocations: 92.23 kB / 415.7 MB, free: 10.33 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003807/0.3054, allocations: 156.1 kB / 415.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.3054, allocations: 4 kB / 415.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004764/0.3059, allocations: 193.2 kB / 416 MB, free: 9.961 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.323e-05/0.306, allocations: 8 kB / 416 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.306, allocations: 0 / 416 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.291e-05/0.306, allocations: 0 / 416 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001841/0.3062, allocations: 35.97 kB / 416.1 MB, free: 9.918 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.617e-05/0.3062, allocations: 8.062 kB / 416.1 MB, free: 9.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001348/0.3064, allocations: 15.84 kB / 416.1 MB, free: 9.895 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.928e-05/0.3064, allocations: 8 kB / 416.1 MB, free: 9.887 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.0001675/0.3066, allocations: 141.6 kB / 416.2 MB, free: 9.738 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.268e-05/0.3066, allocations: 15.81 kB / 416.3 MB, free: 9.723 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004783/0.3071, allocations: 182.9 kB / 416.4 MB, free: 9.531 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.3071, allocations: 4 kB / 416.4 MB, free: 9.527 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.3071, allocations: 4 kB / 416.4 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.187e-06/0.3072, allocations: 0 / 416.4 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000296/0.3075, allocations: 249.5 kB / 416.7 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.3075, allocations: 4 kB / 416.7 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001575/0.3076, allocations: 32.06 kB / 416.7 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.576e-06/0.3076, allocations: 3.938 kB / 416.7 MB, free: 9.191 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.3077, allocations: 0 / 416.7 MB, free: 9.191 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.3077, allocations: 0 / 416.7 MB, free: 9.191 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3077, allocations: 0 / 416.7 MB, free: 9.191 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004591/0.3081, allocations: 275.1 kB / 417 MB, free: 8.906 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.838e-05/0.3083, allocations: 108.8 kB / 417.1 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.956e-05/0.3083, allocations: 0 / 417.1 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001394/0.3084, allocations: 11.98 kB / 417.1 MB, free: 8.77 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.972e-05/0.3085, allocations: 4 kB / 417.1 MB, free: 8.766 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.297e-05/0.3085, allocations: 7.984 kB / 417.1 MB, free: 8.758 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001543/0.3087, allocations: 156.2 kB / 417.3 MB, free: 8.605 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.3087, allocations: 0 / 417.3 MB, free: 8.605 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002882/0.309, allocations: 24 kB / 417.3 MB, free: 8.582 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.001007/0.31, allocations: 0.81 MB / 418.1 MB, free: 7.746 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004479/0.3105, allocations: 139.8 kB / 418.2 MB, free: 7.609 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3105, allocations: 0 / 418.2 MB, free: 7.609 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001767/0.3107, allocations: 63.97 kB / 418.3 MB, free: 7.547 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003344/0.311, allocations: 29.42 kB / 418.3 MB, free: 7.523 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0031/0.3141, allocations: 2.131 MB / 420.5 MB, free: 5.289 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003653/0.3145, allocations: 0.724 MB / 421.2 MB, free: 4.539 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001218/0.3146, allocations: 29.41 kB / 421.2 MB, free: 4.512 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001071/0.3147, allocations: 43.42 kB / 421.3 MB, free: 4.469 MB / 334.1 MB Notification: Performance of SimCode: time 2.265e-06/0.3147, allocations: 7.938 kB / 421.3 MB, free: 4.461 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02289/0.3376, allocations: 3.496 MB / 424.8 MB, free: 1.062 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.128/8.466, allocations: 11.97 kB / 424.8 MB, free: 1.051 MB / 334.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction_res.mat --tempDir=temp_Modelica_trunk_Modelica_ComplexBlocks_Examples_ShowTransferFunction_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_ComplexBlocks_Examples_ShowTransferFunction.fmu > Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/ComplexBlocks/Examples/ShowTransferFunction/ShowTransferFunction.csv","/var/lib/jenkins1/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.len,complexToPolar.phi,complexToPolar.u.im,complexToPolar.u.re,complexToPolar.useConjugateInput,const.k.im,const.k.re,const.y.im,const.y.re,d,dB,lg_w,logFrequencySweep.duration,logFrequencySweep.startTime,logFrequencySweep.wMax,logFrequencySweep.wMin,logFrequencySweep.y,m,phi,time,transferFunction.a[1],transferFunction.a[2],transferFunction.a[3],transferFunction.b[1],transferFunction.u.im,transferFunction.u.re,transferFunction.useConjugateInput,transferFunction.w,transferFunction.y.im,transferFunction.y.re,wMax,wMin