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.0008228/0.0008228, allocations: 96.5 kB / 17 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009469/0.0009469, allocations: 202.5 kB / 17.91 MB, free: 5.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 227.7 MB / 246.4 MB, free: 11.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002406/0.0002407, allocations: 11.98 kB / 307.1 MB, free: 1.191 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09984/0.1001, allocations: 51.52 MB / 358.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.002051/0.1022, allocations: 1.383 MB / 360 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001115/0.1033, allocations: 0.7016 MB / 360.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.078e-05/0.1034, allocations: 4 kB / 360.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000193/0.1036, allocations: 27.86 kB / 360.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001336/0.1037, allocations: 27.78 kB / 360.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007505/0.1045, allocations: 406.9 kB / 361.2 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001578/0.1047, allocations: 103.6 kB / 361.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.1048, allocations: 33.52 kB / 361.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001009/0.1049, allocations: 55.7 kB / 361.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002103/0.1051, allocations: 75.73 kB / 361.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.082e-05/0.1052, allocations: 8 kB / 361.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002285/0.1054, allocations: 123.8 kB / 361.6 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.201e-05/0.1055, allocations: 31.84 kB / 361.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.486e-05/0.1055, allocations: 45.58 kB / 361.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002067/0.1057, allocations: 143.9 kB / 361.8 MB, free: 10.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1057, allocations: 0 / 361.8 MB, free: 10.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1057, allocations: 0 / 361.8 MB, free: 10.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.977e-06/0.1057, allocations: 0 / 361.8 MB, free: 10.5 MB / 302.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.001156/0.1069, allocations: 0.5182 MB / 362.3 MB, free: 9.934 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.107, allocations: 8.031 kB / 362.3 MB, free: 9.926 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006078/0.1076, allocations: 107.6 kB / 362.4 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001614/0.1077, allocations: 194.1 kB / 362.6 MB, free: 9.594 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.901e-05/0.1078, allocations: 8 kB / 362.6 MB, free: 9.586 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.374e-05/0.1078, allocations: 12 kB / 362.6 MB, free: 9.574 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003737/0.1082, allocations: 173.4 kB / 362.8 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.1082, allocations: 0 / 362.8 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.313e-05/0.1082, allocations: 8 kB / 362.8 MB, free: 9.391 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.874e-05/0.1083, allocations: 11.94 kB / 362.8 MB, free: 9.379 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004055/0.1087, allocations: 167.9 kB / 363 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001159/0.1098, allocations: 0.5819 MB / 363.5 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004179/0.1103, allocations: 162.7 kB / 363.7 MB, free: 8.414 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001845/0.1105, allocations: 80.81 kB / 363.8 MB, free: 8.332 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.747e-05/0.1105, allocations: 7.922 kB / 363.8 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.763e-05/0.1105, allocations: 38.52 kB / 363.8 MB, free: 8.277 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.633e-06/0.1106, allocations: 0 / 363.8 MB, free: 8.277 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.000638/0.1112, allocations: 245.7 kB / 364.1 MB, free: 8.031 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.31e-05/0.1112, allocations: 51.62 kB / 364.1 MB, free: 7.969 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002146/0.1115, allocations: 210.1 kB / 364.3 MB, free: 7.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.121e-05/0.1115, allocations: 29.7 kB / 364.4 MB, free: 7.715 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.411e-05/0.1116, allocations: 127.9 kB / 364.5 MB, free: 7.586 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.127e-05/0.1116, allocations: 35.45 kB / 364.5 MB, free: 7.551 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.087e-06/0.1117, allocations: 0 / 364.5 MB, free: 7.551 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.1118, allocations: 326.8 kB / 364.8 MB, free: 7.223 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001768/0.112, allocations: 67.95 kB / 364.9 MB, free: 7.156 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001988/0.1122, allocations: 111.3 kB / 365 MB, free: 7.031 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000199/0.1124, allocations: 83.95 kB / 365.1 MB, free: 6.949 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.1124, allocations: 3.938 kB / 365.1 MB, free: 6.945 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004428/0.1129, allocations: 213.4 kB / 365.3 MB, free: 6.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.1129, allocations: 15.98 kB / 365.3 MB, free: 6.715 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.1129, allocations: 0 / 365.3 MB, free: 6.715 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.1129, allocations: 7.984 kB / 365.3 MB, free: 6.707 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001677/0.1131, allocations: 31.98 kB / 365.4 MB, free: 6.676 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.871e-05/0.1131, allocations: 0 / 365.4 MB, free: 6.676 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00012/0.1132, allocations: 23.83 kB / 365.4 MB, free: 6.652 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.567e-05/0.1133, allocations: 7.984 kB / 365.4 MB, free: 6.645 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001223/0.1134, allocations: 142.9 kB / 365.5 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.585e-05/0.1134, allocations: 11.81 kB / 365.5 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004638/0.1139, allocations: 207 kB / 365.7 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.1139, allocations: 0 / 365.7 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1139, allocations: 7.938 kB / 365.7 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.1139, allocations: 0 / 365.7 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002533/0.1142, allocations: 261.4 kB / 366 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.1142, allocations: 0 / 366 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001498/0.1144, allocations: 27.97 kB / 366 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.1144, allocations: 4 kB / 366 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.1144, allocations: 3.938 kB / 366 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.546e-06/0.1144, allocations: 3.953 kB / 366 MB, free: 5.926 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.1144, allocations: 4 kB / 366 MB, free: 5.922 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004396/0.1149, allocations: 291.4 kB / 366.3 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.559e-05/0.115, allocations: 108.9 kB / 366.4 MB, free: 5.496 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.411e-05/0.115, allocations: 3.938 kB / 366.4 MB, free: 5.492 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000128/0.1151, allocations: 16 kB / 366.5 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.913e-05/0.1152, allocations: 11.94 kB / 366.5 MB, free: 5.465 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.909e-06/0.1152, allocations: 4 kB / 366.5 MB, free: 5.461 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001252/0.1153, allocations: 147.2 kB / 366.6 MB, free: 5.316 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1153, allocations: 0 / 366.6 MB, free: 5.316 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002623/0.1156, allocations: 27.94 kB / 366.6 MB, free: 5.289 MB / 302.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 (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001392/0.1158, allocations: 107.4 kB / 366.7 MB, free: 5.176 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004125/0.1162, allocations: 160 kB / 366.9 MB, free: 5.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1162, allocations: 4.344 kB / 366.9 MB, free: 5.016 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001744/0.1164, allocations: 79.89 kB / 367 MB, free: 4.938 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003164/0.1167, allocations: 24.8 kB / 367 MB, free: 4.914 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006508/0.1174, allocations: 380.1 kB / 367.4 MB, free: 4.512 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003087/0.1177, allocations: 0.7282 MB / 368.1 MB, free: 3.754 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001118/0.1178, allocations: 29.41 kB / 368.1 MB, free: 3.727 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.489e-05/0.1179, allocations: 15.44 kB / 368.2 MB, free: 3.711 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1179, allocations: 0 / 368.2 MB, free: 3.711 MB / 302.1 MB Notification: Performance of Templates: time 0.004325/0.1222, allocations: 1.558 MB / 369.7 MB, free: 2.164 MB / 302.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.useConjugateInput,transferFunction.y.im,transferFunction.y.re,wMax,wMin