Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.ShowTransferFunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001479/0.001479, allocations: 110.6 kB / 18.44 MB, free: 4.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001563/0.001563, allocations: 211.8 kB / 19.4 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.397/1.397, allocations: 227.7 MB / 247.8 MB, free: 10.17 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001869/0.001869, allocations: 55.91 kB / 359.6 MB, free: 12.8 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2124/0.2143, allocations: 50.55 MB / 410.2 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.002756/0.2171, allocations: 1.705 MB / 411.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001242/0.2183, allocations: 0.7516 MB / 412.6 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.094e-05/0.2184, allocations: 4 kB / 412.6 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002202/0.2186, allocations: 43.73 kB / 412.7 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001635/0.2187, allocations: 51.64 kB / 412.7 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009901/0.2197, allocations: 0.498 MB / 413.2 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002053/0.2199, allocations: 119.6 kB / 413.3 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.311e-05/0.22, allocations: 25.55 kB / 413.4 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.222e-05/0.2201, allocations: 59.72 kB / 413.4 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000192/0.2203, allocations: 87.66 kB / 413.5 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.161e-05/0.2203, allocations: 8 kB / 413.5 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002406/0.2206, allocations: 131.8 kB / 413.6 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.004e-05/0.2206, allocations: 35.84 kB / 413.7 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.497e-05/0.2207, allocations: 59.61 kB / 413.7 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003091/0.221, allocations: 207 kB / 413.9 MB, free: 13.67 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.221, allocations: 0 / 413.9 MB, free: 13.67 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.221, allocations: 0 / 413.9 MB, free: 13.67 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.93e-06/0.221, allocations: 4 kB / 413.9 MB, free: 13.67 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.001232/0.2222, allocations: 0.5336 MB / 414.5 MB, free: 13.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.213e-05/0.2223, allocations: 8.031 kB / 414.5 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006915/0.223, allocations: 108.7 kB / 414.6 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001795/0.2231, allocations: 200.1 kB / 414.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.791e-05/0.2232, allocations: 4.375 kB / 414.8 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.264e-05/0.2232, allocations: 12.38 kB / 414.8 MB, free: 12.72 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003665/0.2236, allocations: 157.9 kB / 415 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.2236, allocations: 0 / 415 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.86e-05/0.2236, allocations: 4 kB / 415 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.143e-05/0.2236, allocations: 11.98 kB / 415 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000406/0.224, allocations: 159.8 kB / 415.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001006/0.225, allocations: 0.5626 MB / 415.7 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003932/0.2254, allocations: 142.6 kB / 415.8 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001761/0.2256, allocations: 60.77 kB / 415.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.225e-05/0.2256, allocations: 7.984 kB / 415.9 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.995e-05/0.2256, allocations: 38.73 kB / 415.9 MB, free: 11.51 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.213e-06/0.2256, allocations: 3.938 kB / 415.9 MB, free: 11.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006029/0.2262, allocations: 209.5 kB / 416.1 MB, free: 11.3 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.417e-05/0.2263, allocations: 55.34 kB / 416.2 MB, free: 11.23 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002153/0.2265, allocations: 211.4 kB / 416.4 MB, free: 11.01 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.309e-05/0.2265, allocations: 25.7 kB / 416.4 MB, free: 10.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.688e-05/0.2266, allocations: 124.2 kB / 416.6 MB, free: 10.85 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.418e-05/0.2266, allocations: 35.69 kB / 416.6 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.084e-05/0.2267, allocations: 29.7 kB / 416.6 MB, free: 10.78 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.2268, allocations: 326.8 kB / 416.9 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001695/0.227, allocations: 55.95 kB / 417 MB, free: 10.4 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001933/0.2272, allocations: 92.25 kB / 417.1 MB, free: 10.29 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003593/0.2276, allocations: 156.2 kB / 417.2 MB, free: 10.12 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2276, allocations: 0 / 417.2 MB, free: 10.12 MB / 334.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004427/0.228, allocations: 205.7 kB / 417.4 MB, free: 9.918 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.228, allocations: 4 kB / 417.4 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.228, allocations: 4 kB / 417.4 MB, free: 9.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.228, allocations: 0 / 417.4 MB, free: 9.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001842/0.2282, allocations: 35.97 kB / 417.5 MB, free: 9.875 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.401e-06/0.2282, allocations: 0 / 417.5 MB, free: 9.875 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001272/0.2284, allocations: 23.84 kB / 417.5 MB, free: 9.852 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.453e-05/0.2284, allocations: 7.984 kB / 417.5 MB, free: 9.844 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.0001278/0.2285, allocations: 133.8 kB / 417.6 MB, free: 9.703 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.537e-05/0.2285, allocations: 23.83 kB / 417.7 MB, free: 9.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004621/0.229, allocations: 178.9 kB / 417.8 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.229, allocations: 0 / 417.8 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.768e-06/0.229, allocations: 0 / 417.8 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.229, allocations: 4 kB / 417.8 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002826/0.2293, allocations: 253.4 kB / 418.1 MB, free: 9.191 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.2293, allocations: 0 / 418.1 MB, free: 9.191 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001707/0.2295, allocations: 31.91 kB / 418.1 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.2295, allocations: 4 kB / 418.1 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.272e-05/0.2295, allocations: 4 kB / 418.1 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.2295, allocations: 0 / 418.1 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.2295, allocations: 0 / 418.1 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004477/0.2299, allocations: 267.2 kB / 418.4 MB, free: 8.875 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.2e-05/0.23, allocations: 101 kB / 418.5 MB, free: 8.758 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.334e-05/0.23, allocations: 8 kB / 418.5 MB, free: 8.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001407/0.2302, allocations: 7.984 kB / 418.5 MB, free: 8.742 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.827e-05/0.2302, allocations: 7.984 kB / 418.5 MB, free: 8.734 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.106e-05/0.2302, allocations: 8 kB / 418.5 MB, free: 8.727 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001408/0.2304, allocations: 152.2 kB / 418.7 MB, free: 8.578 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2304, allocations: 0 / 418.7 MB, free: 8.578 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002679/0.2306, allocations: 35.88 kB / 418.7 MB, free: 8.543 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.000121/0.2308, allocations: 103.2 kB / 418.8 MB, free: 8.434 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004011/0.2312, allocations: 131.8 kB / 418.9 MB, free: 8.305 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.2312, allocations: 0 / 418.9 MB, free: 8.305 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001814/0.2314, allocations: 71.83 kB / 419 MB, free: 8.234 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002775/0.2316, allocations: 20.19 kB / 419 MB, free: 8.215 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005999/0.2322, allocations: 324.5 kB / 419.3 MB, free: 7.875 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003427/0.2326, allocations: 0.7278 MB / 420.1 MB, free: 7.121 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001025/0.2327, allocations: 33.69 kB / 420.1 MB, free: 7.09 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.257e-05/0.2327, allocations: 15.44 kB / 420.1 MB, free: 7.074 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2327, allocations: 0 / 420.1 MB, free: 7.074 MB / 334.1 MB Notification: Performance of Templates: time 0.004643/0.2374, allocations: 1.653 MB / 421.8 MB, free: 5.426 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.ShowTransferFunction.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.ShowTransferFunction.sim & ./Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.ShowTransferFunction -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.ShowTransferFunction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/ComplexBlocks/Examples/ShowTransferFunction/ShowTransferFunction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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