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.001387/0.001387, allocations: 121.7 kB / 17.83 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001568/0.001568, allocations: 205.8 kB / 18.79 MB, free: 4.102 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.489/1.489, allocations: 230.4 MB / 250 MB, free: 8.977 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.001894/0.001894, allocations: 60.03 kB / 367.3 MB, free: 7.055 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2817/0.2836, allocations: 53.32 MB / 420.6 MB, free: 8.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.003515/0.2871, allocations: 1.705 MB / 422.3 MB, free: 6.621 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001576/0.2887, allocations: 0.7515 MB / 423.1 MB, free: 5.863 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.131e-05/0.2888, allocations: 4 kB / 423.1 MB, free: 5.859 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002996/0.2891, allocations: 47.72 kB / 423.1 MB, free: 5.812 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002013/0.2893, allocations: 43.72 kB / 423.2 MB, free: 5.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001062/0.2903, allocations: 0.5019 MB / 423.7 MB, free: 5.266 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002564/0.2906, allocations: 119.6 kB / 423.8 MB, free: 5.148 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001202/0.2907, allocations: 21.53 kB / 423.8 MB, free: 5.125 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001043/0.2908, allocations: 59.78 kB / 423.9 MB, free: 5.066 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002396/0.291, allocations: 91.59 kB / 424 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.683e-05/0.2911, allocations: 8 kB / 424 MB, free: 4.969 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000242/0.2913, allocations: 127.9 kB / 424.1 MB, free: 4.844 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.5e-05/0.2914, allocations: 43.77 kB / 424.1 MB, free: 4.801 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.818e-05/0.2915, allocations: 55.61 kB / 424.2 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003537/0.2918, allocations: 207.1 kB / 424.4 MB, free: 4.547 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.676e-06/0.2918, allocations: 0 / 424.4 MB, free: 4.547 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2918, allocations: 3.938 kB / 424.4 MB, free: 4.543 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.144e-06/0.2918, allocations: 0 / 424.4 MB, free: 4.543 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.001431/0.2933, allocations: 0.5414 MB / 424.9 MB, free: 3.953 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.2933, allocations: 8.031 kB / 425 MB, free: 3.945 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006875/0.294, allocations: 104.7 kB / 425.1 MB, free: 3.844 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002121/0.2942, allocations: 197.2 kB / 425.3 MB, free: 3.613 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.179e-05/0.2942, allocations: 12.38 kB / 425.3 MB, free: 3.602 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.404e-05/0.2943, allocations: 12.31 kB / 425.3 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003767/0.2946, allocations: 161.9 kB / 425.4 MB, free: 3.426 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.2946, allocations: 0 / 425.4 MB, free: 3.426 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.812e-05/0.2947, allocations: 4 kB / 425.4 MB, free: 3.422 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.439e-05/0.2947, allocations: 8 kB / 425.4 MB, free: 3.414 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004027/0.2951, allocations: 155.9 kB / 425.6 MB, free: 3.262 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001057/0.2961, allocations: 0.5549 MB / 426.2 MB, free: 2.656 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004015/0.2965, allocations: 146.6 kB / 426.3 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001755/0.2967, allocations: 68.69 kB / 426.4 MB, free: 2.434 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.631e-05/0.2967, allocations: 7.984 kB / 426.4 MB, free: 2.426 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.614e-05/0.2968, allocations: 30.56 kB / 426.4 MB, free: 2.387 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.142e-06/0.2968, allocations: 0 / 426.4 MB, free: 2.387 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.000615/0.2974, allocations: 217.6 kB / 426.6 MB, free: 2.168 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.926e-05/0.2974, allocations: 51.41 kB / 426.7 MB, free: 2.105 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002479/0.2977, allocations: 210.8 kB / 426.9 MB, free: 1.887 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.023e-05/0.2977, allocations: 25.7 kB / 426.9 MB, free: 1.855 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.939e-05/0.2978, allocations: 120.2 kB / 427 MB, free: 1.73 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.336e-05/0.2978, allocations: 43.62 kB / 427.1 MB, free: 1.688 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.55e-05/0.2979, allocations: 29.7 kB / 427.1 MB, free: 1.652 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.298, allocations: 322.8 kB / 427.4 MB, free: 1.328 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001692/0.2982, allocations: 59.95 kB / 427.5 MB, free: 1.27 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000186/0.2984, allocations: 92.25 kB / 427.5 MB, free: 1.164 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003524/0.2988, allocations: 160.5 kB / 427.7 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.2988, allocations: 0 / 427.7 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004274/0.2992, allocations: 193.3 kB / 427.9 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.2992, allocations: 8 kB / 427.9 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.2992, allocations: 4.125 kB / 427.9 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.2992, allocations: 0 / 427.9 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001824/0.2994, allocations: 35.91 kB / 427.9 MB, free: 0.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.531e-06/0.2994, allocations: 0 / 427.9 MB, free: 0.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001269/0.2995, allocations: 23.83 kB / 428 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.715e-05/0.2996, allocations: 8 kB / 428 MB, free: 0.7188 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.0001196/0.2997, allocations: 133.8 kB / 428.1 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.162e-05/0.2997, allocations: 19.84 kB / 428.1 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004792/0.3002, allocations: 186.9 kB / 428.3 MB, free: 372 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.3002, allocations: 0 / 428.3 MB, free: 372 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.3002, allocations: 4 kB / 428.3 MB, free: 368 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.3002, allocations: 0 / 428.3 MB, free: 368 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003074/0.3005, allocations: 257.4 kB / 428.6 MB, free: 60 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3005, allocations: 0 / 428.6 MB, free: 60 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001549/0.3007, allocations: 23.98 kB / 428.6 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.3007, allocations: 0 / 428.6 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.3007, allocations: 7.938 kB / 428.6 MB, free: 28 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.3007, allocations: 0 / 428.6 MB, free: 28 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3007, allocations: 0 / 428.6 MB, free: 28 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004525/0.3011, allocations: 271.2 kB / 428.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001174/0.3013, allocations: 101 kB / 429 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.624e-05/0.3013, allocations: 0 / 429 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001386/0.3014, allocations: 15.98 kB / 429 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.594e-05/0.3015, allocations: 7.984 kB / 429 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.119e-05/0.3015, allocations: 4 kB / 429 MB, free: 15.6 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001493/0.3016, allocations: 160.8 kB / 429.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3016, allocations: 0 / 429.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000269/0.3019, allocations: 23.95 kB / 429.2 MB, free: 15.42 MB / 350.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.0001528/0.3021, allocations: 111.2 kB / 429.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004146/0.3025, allocations: 135.9 kB / 429.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3025, allocations: 0 / 429.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001683/0.3026, allocations: 67.89 kB / 429.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003036/0.3029, allocations: 22.92 kB / 429.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006587/0.3036, allocations: 322.2 kB / 429.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003477/0.304, allocations: 0.7278 MB / 430.5 MB, free: 13.99 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001035/0.3041, allocations: 37.39 kB / 430.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.938e-05/0.3041, allocations: 15.44 kB / 430.6 MB, free: 13.94 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3041, allocations: 0 / 430.6 MB, free: 13.94 MB / 350.1 MB Notification: Performance of Templates: time 0.005085/0.3092, allocations: 1.657 MB / 432.2 MB, free: 12.3 MB / 350.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/ComplexBlocks/Examples/ShowTransferFunction/ShowTransferFunction.csv","/var/lib/jenkins/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