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.001478/0.001478, allocations: 101 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001976/0.001976, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 227.4 MB / 246.3 MB, free: 10.86 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.00124, allocations: 59.88 kB / 306.2 MB, free: 1.074 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1243, allocations: 50.54 MB / 356.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.002803/0.1271, allocations: 1.745 MB / 358.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001185/0.1283, allocations: 0.7478 MB / 359.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.627e-05/0.1284, allocations: 4 kB / 359.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002322/0.1287, allocations: 47.83 kB / 359.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001347/0.1288, allocations: 27.78 kB / 359.4 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008967/0.1297, allocations: 0.4945 MB / 359.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001541/0.1299, allocations: 111.6 kB / 360 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.13, allocations: 29.55 kB / 360 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.529e-05/0.1301, allocations: 55.7 kB / 360 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002087/0.1303, allocations: 91.59 kB / 360.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.44e-05/0.1303, allocations: 4 kB / 360.1 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002259/0.1306, allocations: 127.9 kB / 360.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.153e-05/0.1306, allocations: 31.84 kB / 360.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.991e-05/0.1307, allocations: 59.59 kB / 360.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002675/0.131, allocations: 211.6 kB / 360.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.131, allocations: 0 / 360.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.131, allocations: 4 kB / 360.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.131, allocations: 0 / 360.6 MB, free: 10.75 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.00124/0.1323, allocations: 0.5339 MB / 361.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.1323, allocations: 8.031 kB / 361.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006964/0.133, allocations: 108.6 kB / 361.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001595/0.1332, allocations: 196 kB / 361.4 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.834e-05/0.1332, allocations: 8.375 kB / 361.4 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.602e-05/0.1332, allocations: 12.38 kB / 361.4 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003623/0.1336, allocations: 177.7 kB / 361.6 MB, free: 9.621 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.1336, allocations: 0 / 361.6 MB, free: 9.621 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.882e-05/0.1337, allocations: 4 kB / 361.6 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.551e-05/0.1337, allocations: 12 kB / 361.6 MB, free: 9.605 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004041/0.1341, allocations: 163.8 kB / 361.8 MB, free: 9.445 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001036/0.1351, allocations: 0.582 MB / 362.4 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004255/0.1356, allocations: 150.7 kB / 362.5 MB, free: 8.656 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001877/0.1358, allocations: 76.81 kB / 362.6 MB, free: 8.578 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.472e-05/0.1358, allocations: 4 kB / 362.6 MB, free: 8.574 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.485e-05/0.1358, allocations: 42.44 kB / 362.6 MB, free: 8.523 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.423e-06/0.1358, allocations: 0 / 362.6 MB, free: 8.523 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006811/0.1365, allocations: 225.6 kB / 362.8 MB, free: 8.297 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.363e-05/0.1366, allocations: 55.41 kB / 362.9 MB, free: 8.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001961/0.1368, allocations: 206.1 kB / 363.1 MB, free: 8.016 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.919e-05/0.1368, allocations: 25.7 kB / 363.1 MB, free: 7.984 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.466e-05/0.1369, allocations: 127.9 kB / 363.2 MB, free: 7.855 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.183e-05/0.1369, allocations: 35.47 kB / 363.3 MB, free: 7.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.626e-05/0.137, allocations: 37.61 kB / 363.3 MB, free: 7.777 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.1371, allocations: 326.8 kB / 363.6 MB, free: 7.449 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001786/0.1373, allocations: 59.95 kB / 363.7 MB, free: 7.391 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002066/0.1375, allocations: 111.6 kB / 363.8 MB, free: 7.266 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000379/0.1379, allocations: 181 kB / 364 MB, free: 7.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1379, allocations: 0 / 364 MB, free: 7.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004616/0.1384, allocations: 209.3 kB / 364.2 MB, free: 6.859 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.1384, allocations: 8 kB / 364.2 MB, free: 6.852 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.1384, allocations: 3.984 kB / 364.2 MB, free: 6.848 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.1384, allocations: 4 kB / 364.2 MB, free: 6.844 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001828/0.1386, allocations: 24.14 kB / 364.2 MB, free: 6.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.276e-06/0.1387, allocations: 8 kB / 364.2 MB, free: 6.812 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001332/0.1388, allocations: 23.73 kB / 364.3 MB, free: 6.789 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.718e-05/0.1388, allocations: 11.94 kB / 364.3 MB, free: 6.777 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001056/0.1389, allocations: 134.9 kB / 364.4 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.879e-05/0.139, allocations: 11.84 kB / 364.4 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004858/0.1395, allocations: 202.9 kB / 364.6 MB, free: 6.422 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.1395, allocations: 4 kB / 364.6 MB, free: 6.418 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.1395, allocations: 0 / 364.6 MB, free: 6.418 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.1395, allocations: 3.984 kB / 364.6 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002817/0.1398, allocations: 261.4 kB / 364.9 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1398, allocations: 3.938 kB / 364.9 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001633/0.14, allocations: 27.92 kB / 364.9 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.14, allocations: 0 / 364.9 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.539e-05/0.14, allocations: 4 kB / 364.9 MB, free: 6.074 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.14, allocations: 0 / 364.9 MB, free: 6.074 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.14, allocations: 0 / 364.9 MB, free: 6.074 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004577/0.1405, allocations: 279.3 kB / 365.2 MB, free: 5.785 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.414e-05/0.1406, allocations: 108.8 kB / 365.3 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.66e-05/0.1406, allocations: 0 / 365.3 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001482/0.1408, allocations: 12 kB / 365.3 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.037e-05/0.1408, allocations: 11.92 kB / 365.3 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.243e-05/0.1408, allocations: 7.984 kB / 365.3 MB, free: 5.629 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001195/0.141, allocations: 147.2 kB / 365.5 MB, free: 5.484 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.141, allocations: 7.938 kB / 365.5 MB, free: 5.477 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002835/0.1413, allocations: 27.94 kB / 365.5 MB, free: 5.449 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 (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.00015/0.1414, allocations: 107.2 kB / 365.6 MB, free: 5.336 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004326/0.1419, allocations: 155.2 kB / 365.8 MB, free: 5.188 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.1419, allocations: 0 / 365.8 MB, free: 5.188 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001895/0.1421, allocations: 75.89 kB / 365.8 MB, free: 5.113 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003123/0.1424, allocations: 20.81 kB / 365.8 MB, free: 5.094 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006551/0.1431, allocations: 376.3 kB / 366.2 MB, free: 4.695 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000278/0.1433, allocations: 0.732 MB / 366.9 MB, free: 3.934 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000111/0.1435, allocations: 29.41 kB / 367 MB, free: 3.906 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.49e-05/0.1435, allocations: 15.44 kB / 367 MB, free: 3.891 MB / 302.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1435, allocations: 0 / 367 MB, free: 3.891 MB / 302.1 MB Notification: Performance of Templates: time 0.004436/0.148, allocations: 1.63 MB / 368.6 MB, free: 2.273 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