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.001659/0.001659, allocations: 114.7 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00194/0.00194, allocations: 204.5 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.559/1.559, allocations: 227.4 MB / 247.5 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 64.77 kB / 308.3 MB, free: 15.95 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1309, allocations: 50.54 MB / 358.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.003198/0.1341, allocations: 1.686 MB / 360.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001463/0.1356, allocations: 0.7531 MB / 361.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.73e-05/0.1357, allocations: 4 kB / 361.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002918/0.136, allocations: 55.7 kB / 361.4 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001932/0.1362, allocations: 31.73 kB / 361.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009852/0.1372, allocations: 0.4942 MB / 361.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002091/0.1374, allocations: 127.5 kB / 362 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001145/0.1375, allocations: 37.48 kB / 362.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.513e-05/0.1376, allocations: 59.7 kB / 362.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002172/0.1379, allocations: 87.66 kB / 362.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.247e-05/0.1379, allocations: 8 kB / 362.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002313/0.1381, allocations: 131.8 kB / 362.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.24e-05/0.1382, allocations: 31.86 kB / 362.4 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.987e-05/0.1383, allocations: 63.58 kB / 362.4 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002779/0.1386, allocations: 199.4 kB / 362.6 MB, free: 9.609 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.1386, allocations: 0 / 362.6 MB, free: 9.609 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1386, allocations: 3.938 kB / 362.6 MB, free: 9.605 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.1386, allocations: 4 kB / 362.6 MB, free: 9.602 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.0014/0.14, allocations: 0.53 MB / 363.2 MB, free: 9.023 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.1401, allocations: 8.031 kB / 363.2 MB, free: 9.016 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006691/0.1407, allocations: 104.6 kB / 363.3 MB, free: 8.914 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002026/0.1409, allocations: 196 kB / 363.5 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.953e-05/0.141, allocations: 12.36 kB / 363.5 MB, free: 8.672 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.801e-05/0.1411, allocations: 12.38 kB / 363.5 MB, free: 8.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003716/0.1414, allocations: 161.8 kB / 363.7 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.1415, allocations: 0 / 363.7 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.839e-05/0.1415, allocations: 4 kB / 363.7 MB, free: 8.492 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.539e-05/0.1415, allocations: 11.94 kB / 363.7 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004589/0.142, allocations: 155.9 kB / 363.8 MB, free: 8.328 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001078/0.1431, allocations: 0.5662 MB / 364.4 MB, free: 7.711 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004384/0.1435, allocations: 146.6 kB / 364.5 MB, free: 7.559 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002423/0.1438, allocations: 72.75 kB / 364.6 MB, free: 7.484 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.784e-05/0.1438, allocations: 0 / 364.6 MB, free: 7.484 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.847e-05/0.1439, allocations: 34.56 kB / 364.6 MB, free: 7.441 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.102e-06/0.1439, allocations: 0 / 364.6 MB, free: 7.441 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006493/0.1445, allocations: 213.5 kB / 364.9 MB, free: 7.227 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.678e-05/0.1446, allocations: 55.41 kB / 364.9 MB, free: 7.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003414/0.1449, allocations: 211.1 kB / 365.1 MB, free: 6.938 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.112e-05/0.145, allocations: 26.08 kB / 365.1 MB, free: 6.906 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001826/0.1451, allocations: 124.1 kB / 365.3 MB, free: 6.777 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.226e-05/0.1452, allocations: 35.45 kB / 365.3 MB, free: 6.742 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.249e-05/0.1452, allocations: 33.7 kB / 365.3 MB, free: 6.703 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002206/0.1455, allocations: 334.8 kB / 365.7 MB, free: 6.367 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001844/0.1457, allocations: 55.95 kB / 365.7 MB, free: 6.312 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001915/0.1459, allocations: 95.38 kB / 365.8 MB, free: 6.207 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003503/0.1462, allocations: 160.1 kB / 366 MB, free: 6.035 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1462, allocations: 0 / 366 MB, free: 6.035 MB / 302.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004236/0.1467, allocations: 193.2 kB / 366.1 MB, free: 5.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.375e-05/0.1467, allocations: 12.11 kB / 366.2 MB, free: 5.828 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/0.1467, allocations: 0 / 366.2 MB, free: 5.828 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.115e-05/0.1467, allocations: 4 kB / 366.2 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00018/0.1469, allocations: 31.98 kB / 366.2 MB, free: 5.793 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.147, allocations: 3.938 kB / 366.2 MB, free: 5.789 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001169/0.1471, allocations: 19.83 kB / 366.2 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.495e-05/0.1471, allocations: 4 kB / 366.2 MB, free: 5.766 MB / 302.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.0001499/0.1473, allocations: 130.9 kB / 366.3 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.164e-05/0.1473, allocations: 23.75 kB / 366.4 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005265/0.1478, allocations: 186.9 kB / 366.6 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.1479, allocations: 0 / 366.6 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.1479, allocations: 0 / 366.6 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.1479, allocations: 0 / 366.6 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003042/0.1482, allocations: 249.5 kB / 366.8 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.1482, allocations: 7.984 kB / 366.8 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001506/0.1484, allocations: 19.98 kB / 366.8 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.1484, allocations: 4 kB / 366.8 MB, free: 5.094 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.536e-05/0.1484, allocations: 4 kB / 366.8 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.1484, allocations: 3.984 kB / 366.8 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1484, allocations: 0 / 366.8 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004737/0.1489, allocations: 271.2 kB / 367.1 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001307/0.149, allocations: 112.8 kB / 367.2 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.81e-05/0.1491, allocations: 4 kB / 367.2 MB, free: 4.672 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000137/0.1492, allocations: 16 kB / 367.2 MB, free: 4.656 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.595e-05/0.1493, allocations: 7.984 kB / 367.2 MB, free: 4.648 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.746e-06/0.1493, allocations: 0 / 367.2 MB, free: 4.648 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001701/0.1495, allocations: 164.2 kB / 367.4 MB, free: 4.488 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1495, allocations: 0 / 367.4 MB, free: 4.488 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002821/0.1498, allocations: 20 kB / 367.4 MB, free: 4.469 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 (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.0001623/0.1499, allocations: 107.2 kB / 367.5 MB, free: 4.355 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004051/0.1503, allocations: 135.8 kB / 367.7 MB, free: 4.223 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1504, allocations: 0 / 367.7 MB, free: 4.223 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001623/0.1505, allocations: 67.89 kB / 367.7 MB, free: 4.156 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003061/0.1508, allocations: 32.16 kB / 367.8 MB, free: 4.125 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000685/0.1515, allocations: 321.9 kB / 368.1 MB, free: 3.781 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003802/0.1519, allocations: 0.7201 MB / 368.8 MB, free: 3.031 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.666e-05/0.152, allocations: 33.41 kB / 368.8 MB, free: 3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.351e-05/0.1521, allocations: 19.44 kB / 368.8 MB, free: 2.98 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1521, allocations: 0 / 368.8 MB, free: 2.98 MB / 302.1 MB Notification: Performance of Templates: time 0.004978/0.1571, allocations: 1.618 MB / 370.5 MB, free: 1.375 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/ComplexBlocks/Examples/ShowTransferFunction/ShowTransferFunction.csv","/var/lib/jenkins1/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.uInternal.im,transferFunction.uInternal.re,transferFunction.useConjugateInput,transferFunction.y.im,transferFunction.y.re,wMax,wMin