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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001123/0.001123, allocations: 196.8 kB / 14.16 MB, free: 1.156 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 225.4 MB / 240.1 MB, free: 15.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008232/0.0008232, allocations: 82.95 kB / 292.1 MB, free: 5.938 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.909e-05/2.93e-05, allocations: 0 / 350.5 MB, free: 2.555 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1365, allocations: 51.49 MB / 402 MB, free: 15.02 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3103/0.4468, allocations: 79.11 MB / 481.1 MB, free: 10.3 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000182/0.4471, allocations: 66.03 kB / 481.2 MB, free: 10.27 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01075/0.4578, allocations: 4.222 MB / 485.4 MB, free: 6.801 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.91e-07/0.4578, allocations: 0 / 485.4 MB, free: 6.801 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.161e-06/0.4578, allocations: 0 / 485.4 MB, free: 6.801 MB / 346.7 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.001047/0.4589, allocations: 0.5527 MB / 486 MB, free: 6.23 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.4589, allocations: 8.25 kB / 486 MB, free: 6.223 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001088/0.4591, allocations: 20.12 kB / 486 MB, free: 6.203 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001182/0.4592, allocations: 202.5 kB / 486.2 MB, free: 5.969 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.053e-05/0.4592, allocations: 8.656 kB / 486.2 MB, free: 5.965 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.329e-05/0.4592, allocations: 11.75 kB / 486.2 MB, free: 5.957 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002365/0.4595, allocations: 153.1 kB / 486.4 MB, free: 5.848 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.4595, allocations: 4 kB / 486.4 MB, free: 5.844 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.667e-05/0.4595, allocations: 3.625 kB / 486.4 MB, free: 5.844 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.652e-06/0.4595, allocations: 4 kB / 486.4 MB, free: 5.84 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002062/0.4598, allocations: 140.9 kB / 486.5 MB, free: 5.754 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008309/0.4606, allocations: 0.5732 MB / 487.1 MB, free: 5.234 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002834/0.4609, allocations: 145 kB / 487.2 MB, free: 5.129 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.305e-05/0.461, allocations: 60.78 kB / 487.3 MB, free: 5.086 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.871e-05/0.461, allocations: 3.953 kB / 487.3 MB, free: 5.082 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.787e-05/0.4611, allocations: 41.88 kB / 487.3 MB, free: 5.035 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.613e-06/0.4611, allocations: 0 / 487.3 MB, free: 5.035 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002655/0.4613, allocations: 146.3 kB / 487.5 MB, free: 4.918 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.874e-05/0.4614, allocations: 51.97 kB / 487.5 MB, free: 4.855 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001332/0.4615, allocations: 190.8 kB / 487.7 MB, free: 4.688 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.26e-05/0.4615, allocations: 25.7 kB / 487.7 MB, free: 4.656 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.635e-05/0.4616, allocations: 115.8 kB / 487.8 MB, free: 4.555 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.405e-05/0.4616, allocations: 41.2 kB / 487.9 MB, free: 4.52 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.227e-06/0.4616, allocations: 7.312 kB / 487.9 MB, free: 4.516 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.132e-05/0.4617, allocations: 325.6 kB / 488.2 MB, free: 4.195 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.457e-05/0.4618, allocations: 48.48 kB / 488.3 MB, free: 4.164 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.092e-05/0.4619, allocations: 94.17 kB / 488.4 MB, free: 4.074 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.032e-05/0.4619, allocations: 60.62 kB / 488.4 MB, free: 4.035 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.462, allocations: 4 kB / 488.4 MB, free: 4.031 MB / 346.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002404/0.4622, allocations: 180.5 kB / 488.6 MB, free: 3.891 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.4622, allocations: 13.45 kB / 488.6 MB, free: 3.879 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.4622, allocations: 7.984 kB / 488.6 MB, free: 3.871 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.4623, allocations: 0 / 488.6 MB, free: 3.871 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001758/0.4624, allocations: 38.27 kB / 488.7 MB, free: 3.836 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.4625, allocations: 0 / 488.7 MB, free: 3.836 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001257/0.4626, allocations: 27.39 kB / 488.7 MB, free: 3.812 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.411e-05/0.4626, allocations: 4 kB / 488.7 MB, free: 3.809 MB / 346.7 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 () * 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 4.838e-05/0.4627, allocations: 107.8 kB / 488.8 MB, free: 3.699 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.456e-05/0.4627, allocations: 15.81 kB / 488.8 MB, free: 3.684 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002745/0.463, allocations: 178.8 kB / 489 MB, free: 3.555 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.463, allocations: 4 kB / 489 MB, free: 3.551 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.463, allocations: 0 / 489 MB, free: 3.551 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.463, allocations: 3.984 kB / 489 MB, free: 3.547 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001903/0.4632, allocations: 261.6 kB / 489.2 MB, free: 3.277 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.4632, allocations: 0 / 489.2 MB, free: 3.277 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001519/0.4634, allocations: 27.92 kB / 489.3 MB, free: 3.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.4634, allocations: 0 / 489.3 MB, free: 3.25 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/0.4634, allocations: 5.969 kB / 489.3 MB, free: 3.246 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.215e-06/0.4634, allocations: 7.953 kB / 489.3 MB, free: 3.238 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.4634, allocations: 0 / 489.3 MB, free: 3.238 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002161/0.4636, allocations: 250.2 kB / 489.5 MB, free: 3.016 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.873e-05/0.4637, allocations: 107.5 kB / 489.6 MB, free: 2.898 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.304e-05/0.4637, allocations: 6.812 kB / 489.6 MB, free: 2.895 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001365/0.4639, allocations: 4 kB / 489.6 MB, free: 2.891 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.88e-05/0.4639, allocations: 15.06 kB / 489.7 MB, free: 2.879 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.073e-05/0.4639, allocations: 11.98 kB / 489.7 MB, free: 2.867 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.499e-05/0.464, allocations: 147.1 kB / 489.8 MB, free: 2.742 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.464, allocations: 0 / 489.8 MB, free: 2.742 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002457/0.4643, allocations: 34.06 kB / 489.8 MB, free: 2.715 MB / 346.7 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 () * 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.0001073/0.4644, allocations: 103.2 kB / 489.9 MB, free: 2.602 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002429/0.4647, allocations: 137.6 kB / 490.1 MB, free: 2.504 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.4647, allocations: 0 / 490.1 MB, free: 2.504 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.02e-05/0.4648, allocations: 64.11 kB / 490.1 MB, free: 2.461 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00019/0.465, allocations: 21.33 kB / 490.2 MB, free: 2.445 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003778/0.4653, allocations: 204.3 kB / 490.4 MB, free: 2.254 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001299/0.4655, allocations: 0.7362 MB / 491.1 MB, free: 1.496 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001071/0.4656, allocations: 29.19 kB / 491.1 MB, free: 1.469 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.468e-05/0.4657, allocations: 15.44 kB / 491.1 MB, free: 1.453 MB / 346.7 MB Notification: Performance of SimCode: time 4.41e-07/0.4657, allocations: 0 / 491.1 MB, free: 1.453 MB / 346.7 MB Notification: Performance of Templates: time 0.003505/0.4692, allocations: 1.537 MB / 492.7 MB, free: 15.98 MB / 362.7 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","../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.u.im,complexToPolar.u.re,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