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.001214/0.001214, allocations: 96.12 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001346/0.001346, allocations: 201.9 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.573/1.573, allocations: 227.7 MB / 246.8 MB, free: 11.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004824/0.0004824, allocations: 4 kB / 307.7 MB, free: 0.8164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1369, allocations: 51.53 MB / 359.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.00211/0.139, allocations: 1.406 MB / 360.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001502/0.1406, allocations: 0.7439 MB / 361.4 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.543e-05/0.1407, allocations: 0 / 361.4 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002681/0.141, allocations: 39.86 kB / 361.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002119/0.1412, allocations: 31.84 kB / 361.5 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001056/0.1423, allocations: 498.4 kB / 362 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000214/0.1425, allocations: 115.6 kB / 362.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.1426, allocations: 21.55 kB / 362.1 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001411/0.1428, allocations: 55.77 kB / 362.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002705/0.143, allocations: 79.61 kB / 362.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.655e-05/0.1431, allocations: 4 kB / 362.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002976/0.1434, allocations: 127.9 kB / 362.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.641e-05/0.1435, allocations: 35.83 kB / 362.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.744e-05/0.1436, allocations: 85.25 kB / 362.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003792/0.144, allocations: 199.7 kB / 362.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.217e-06/0.144, allocations: 0 / 362.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.144, allocations: 0 / 362.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.144, allocations: 0 / 362.7 MB, free: 9.855 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.001394/0.1454, allocations: 0.5106 MB / 363.2 MB, free: 9.297 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.1455, allocations: 12.03 kB / 363.2 MB, free: 9.285 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007279/0.1462, allocations: 108.5 kB / 363.3 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002429/0.1464, allocations: 199.6 kB / 363.5 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.404e-05/0.1465, allocations: 8.375 kB / 363.5 MB, free: 8.941 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.18e-05/0.1465, allocations: 12.36 kB / 363.5 MB, free: 8.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004676/0.147, allocations: 181.7 kB / 363.7 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.147, allocations: 0 / 363.7 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.333e-05/0.1471, allocations: 4 kB / 363.7 MB, free: 8.742 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.873e-05/0.1471, allocations: 4 kB / 363.7 MB, free: 8.738 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004758/0.1476, allocations: 179.8 kB / 363.9 MB, free: 8.562 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001182/0.1488, allocations: 0.5819 MB / 364.5 MB, free: 7.93 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004492/0.1492, allocations: 166.7 kB / 364.6 MB, free: 7.758 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002153/0.1495, allocations: 80.81 kB / 364.7 MB, free: 7.676 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.817e-05/0.1495, allocations: 3.938 kB / 364.7 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.135e-05/0.1495, allocations: 34.5 kB / 364.7 MB, free: 7.629 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.683e-06/0.1496, allocations: 0 / 364.7 MB, free: 7.629 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006956/0.1503, allocations: 249.5 kB / 365 MB, free: 7.379 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.139e-05/0.1503, allocations: 55.41 kB / 365 MB, free: 7.312 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002146/0.1505, allocations: 202.2 kB / 365.2 MB, free: 7.102 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.645e-05/0.1506, allocations: 33.7 kB / 365.3 MB, free: 7.062 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.499e-05/0.1507, allocations: 119.9 kB / 365.4 MB, free: 6.941 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.837e-05/0.1507, allocations: 39.45 kB / 365.4 MB, free: 6.902 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.78e-05/0.1508, allocations: 21.72 kB / 365.4 MB, free: 6.875 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.1509, allocations: 322.8 kB / 365.8 MB, free: 6.551 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000219/0.1511, allocations: 67.95 kB / 365.8 MB, free: 6.484 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002134/0.1513, allocations: 117 kB / 365.9 MB, free: 6.352 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004068/0.1517, allocations: 177 kB / 366.1 MB, free: 6.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1518, allocations: 0 / 366.1 MB, free: 6.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005079/0.1523, allocations: 233.2 kB / 366.3 MB, free: 5.926 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.1523, allocations: 4.094 kB / 366.3 MB, free: 5.922 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.1523, allocations: 7.938 kB / 366.4 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.1523, allocations: 0 / 366.4 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001865/0.1525, allocations: 35.97 kB / 366.4 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.1525, allocations: 0 / 366.4 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001449/0.1527, allocations: 31.89 kB / 366.4 MB, free: 5.848 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.76e-05/0.1527, allocations: 11.94 kB / 366.4 MB, free: 5.836 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.0001183/0.1528, allocations: 126.9 kB / 366.6 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.435e-05/0.1529, allocations: 19.75 kB / 366.6 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005161/0.1534, allocations: 218.9 kB / 366.8 MB, free: 5.465 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/0.1534, allocations: 0 / 366.8 MB, free: 5.465 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.924e-06/0.1535, allocations: 3.984 kB / 366.8 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.1535, allocations: 0 / 366.8 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002909/0.1538, allocations: 257.5 kB / 367 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.1538, allocations: 0 / 367 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000166/0.1539, allocations: 31.91 kB / 367.1 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.868e-06/0.154, allocations: 4 kB / 367.1 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.519e-05/0.154, allocations: 8 kB / 367.1 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.154, allocations: 0 / 367.1 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.154, allocations: 0 / 367.1 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000498/0.1545, allocations: 291.2 kB / 367.4 MB, free: 4.816 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.59e-05/0.1546, allocations: 104.8 kB / 367.5 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.588e-05/0.1546, allocations: 0 / 367.5 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001482/0.1548, allocations: 15.98 kB / 367.5 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.27e-05/0.1548, allocations: 7.984 kB / 367.5 MB, free: 4.672 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.434e-05/0.1549, allocations: 4 kB / 367.5 MB, free: 4.668 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001338/0.155, allocations: 151.2 kB / 367.6 MB, free: 4.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.155, allocations: 0 / 367.6 MB, free: 4.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000297/0.1553, allocations: 31.94 kB / 367.7 MB, free: 4.488 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.0001629/0.1555, allocations: 103.2 kB / 367.8 MB, free: 4.379 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005004/0.156, allocations: 160.1 kB / 367.9 MB, free: 4.223 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.156, allocations: 0 / 367.9 MB, free: 4.223 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002109/0.1562, allocations: 83.89 kB / 368 MB, free: 4.141 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000341/0.1566, allocations: 24.61 kB / 368 MB, free: 4.117 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007586/0.1574, allocations: 392.5 kB / 368.4 MB, free: 3.703 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003585/0.1577, allocations: 0.7204 MB / 369.1 MB, free: 2.953 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001233/0.1579, allocations: 33.41 kB / 369.2 MB, free: 2.922 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.173e-05/0.1579, allocations: 19.42 kB / 369.2 MB, free: 2.902 MB / 302.1 MB Notification: Performance of SimCode: time 2.114e-06/0.1579, allocations: 192 / 369.2 MB, free: 2.902 MB / 302.1 MB Notification: Performance of Templates: time 0.005055/0.163, allocations: 1.621 MB / 370.8 MB, free: 1.297 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