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.001047/0.001047, allocations: 118.8 kB / 17.79 MB, free: 5.246 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001884/0.001884, allocations: 197.2 kB / 18.73 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 59.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2917/0.2931, allocations: 50.54 MB / 408.7 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.003597/0.2968, allocations: 1.709 MB / 410.4 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001499/0.2983, allocations: 0.7438 MB / 411.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.2985, allocations: 0 / 411.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002766/0.2988, allocations: 47.73 kB / 411.2 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002085/0.299, allocations: 43.7 kB / 411.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00106/0.3001, allocations: 498 kB / 411.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003642/0.3004, allocations: 135.5 kB / 411.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000159/0.3006, allocations: 33.53 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001572/0.3008, allocations: 63.7 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003067/0.3011, allocations: 79.67 kB / 412.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.189e-05/0.3012, allocations: 12 kB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004045/0.3016, allocations: 131.8 kB / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001013/0.3017, allocations: 35.84 kB / 412.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001121/0.3018, allocations: 59.59 kB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005242/0.3023, allocations: 201.1 kB / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.3024, allocations: 3.938 kB / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.3024, allocations: 0 / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.567e-05/0.3024, allocations: 11.98 kB / 412.5 MB, free: 13.75 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.001723/0.3041, allocations: 0.5222 MB / 413 MB, free: 13.18 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.491e-05/0.3042, allocations: 12.03 kB / 413 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.402e-05/0.3043, allocations: 42.73 kB / 413.1 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007426/0.3051, allocations: 100.6 kB / 413.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002381/0.3053, allocations: 204 kB / 413.4 MB, free: 12.78 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.524e-05/0.3053, allocations: 8.375 kB / 413.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.294e-05/0.3054, allocations: 4.375 kB / 413.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003828/0.3058, allocations: 161.7 kB / 413.6 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.3058, allocations: 0 / 413.6 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.943e-05/0.3058, allocations: 8 kB / 413.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.266e-05/0.3058, allocations: 11.94 kB / 413.6 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003763/0.3062, allocations: 155.9 kB / 413.7 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001041/0.3073, allocations: 0.5663 MB / 414.3 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004273/0.3077, allocations: 142.5 kB / 414.4 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001877/0.3079, allocations: 68.81 kB / 414.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.816e-05/0.3079, allocations: 4 kB / 414.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.736e-05/0.308, allocations: 30.56 kB / 414.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 4.028e-06/0.308, allocations: 0 / 414.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006995/0.3087, allocations: 225.4 kB / 414.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.608e-05/0.3088, allocations: 51.41 kB / 414.8 MB, free: 11.26 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002512/0.309, allocations: 211.4 kB / 415 MB, free: 11.04 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.341e-05/0.3091, allocations: 25.7 kB / 415 MB, free: 11.01 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.3092, allocations: 120.2 kB / 415.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.849e-05/0.3092, allocations: 39.44 kB / 415.2 MB, free: 10.85 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.119e-05/0.3093, allocations: 29.72 kB / 415.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.3094, allocations: 330.8 kB / 415.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001643/0.3096, allocations: 55.95 kB / 415.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001778/0.3098, allocations: 91.88 kB / 415.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003345/0.3101, allocations: 160.1 kB / 415.8 MB, free: 10.15 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.3101, allocations: 0 / 415.8 MB, free: 10.15 MB / 334.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004229/0.3106, allocations: 197.3 kB / 416 MB, free: 9.953 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.3106, allocations: 4 kB / 416 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.3106, allocations: 4 kB / 416 MB, free: 9.945 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.3106, allocations: 0 / 416 MB, free: 9.945 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001866/0.3108, allocations: 31.97 kB / 416.1 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.3108, allocations: 3.938 kB / 416.1 MB, free: 9.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001318/0.311, allocations: 19.84 kB / 416.1 MB, free: 9.891 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.467e-05/0.311, allocations: 7.984 kB / 416.1 MB, free: 9.883 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.0001162/0.3111, allocations: 141.8 kB / 416.2 MB, free: 9.734 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.14e-05/0.3112, allocations: 15.81 kB / 416.3 MB, free: 9.719 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004512/0.3116, allocations: 195.3 kB / 416.4 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.3116, allocations: 0 / 416.4 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.3117, allocations: 0 / 416.4 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.3117, allocations: 0 / 416.4 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002799/0.3119, allocations: 249.5 kB / 416.7 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.312, allocations: 3.938 kB / 416.7 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001663/0.3121, allocations: 31.97 kB / 416.7 MB, free: 9.188 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.3121, allocations: 4 kB / 416.7 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.225e-05/0.3122, allocations: 0 / 416.7 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.3122, allocations: 0 / 416.7 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.3122, allocations: 0 / 416.7 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000442/0.3126, allocations: 271.1 kB / 417 MB, free: 8.902 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001077/0.3127, allocations: 108.8 kB / 417.1 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.536e-05/0.3128, allocations: 4 kB / 417.1 MB, free: 8.773 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001397/0.3129, allocations: 7.984 kB / 417.1 MB, free: 8.766 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.947e-05/0.313, allocations: 11.98 kB / 417.1 MB, free: 8.754 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.838e-06/0.313, allocations: 4 kB / 417.1 MB, free: 8.75 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001327/0.3131, allocations: 152.2 kB / 417.3 MB, free: 8.602 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3131, allocations: 0 / 417.3 MB, free: 8.602 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002855/0.3134, allocations: 24 kB / 417.3 MB, free: 8.578 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.0007402/0.3142, allocations: 0.8136 MB / 418.1 MB, free: 7.738 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003981/0.3146, allocations: 136.2 kB / 418.2 MB, free: 7.605 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.3146, allocations: 0 / 418.2 MB, free: 7.605 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001687/0.3148, allocations: 71.84 kB / 418.3 MB, free: 7.535 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003363/0.3151, allocations: 18.22 kB / 418.3 MB, free: 7.52 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002804/0.3179, allocations: 2.135 MB / 420.5 MB, free: 5.281 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003176/0.3183, allocations: 0.7201 MB / 421.2 MB, free: 4.535 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001163/0.3184, allocations: 37.34 kB / 421.2 MB, free: 4.5 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.923e-05/0.3185, allocations: 43.42 kB / 421.3 MB, free: 4.457 MB / 334.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3185, allocations: 3.938 kB / 421.3 MB, free: 4.453 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02117/0.3397, allocations: 3.487 MB / 424.8 MB, free: 1.062 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.224/8.564, allocations: 12.05 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