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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001521/0.001521, allocations: 206.7 kB / 8.544 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.3/1.3, allocations: 225.5 MB / 234.4 MB, free: 3.453 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008499/0.00085, allocations: 92.86 kB / 286.3 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.222e-06/6.252e-06, allocations: 0 / 343.1 MB, free: 8.789 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09503/0.09506, allocations: 51.48 MB / 394.6 MB, free: 5.25 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2275/0.3226, allocations: 78.37 MB / 473 MB, free: 13.44 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00015/0.3228, allocations: 67.94 kB / 473 MB, free: 13.41 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01029/0.3331, allocations: 3.846 MB / 476.9 MB, free: 11.43 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.685e-06/0.3331, allocations: 9.312 kB / 476.9 MB, free: 11.42 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.0009645/0.3341, allocations: 0.5239 MB / 477.4 MB, free: 10.93 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.997e-05/0.3341, allocations: 8.031 kB / 477.4 MB, free: 10.93 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003445/0.3345, allocations: 53.53 kB / 477.5 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001185/0.3346, allocations: 198.2 kB / 477.7 MB, free: 10.66 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.619e-05/0.3346, allocations: 7.984 kB / 477.7 MB, free: 10.65 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.275e-05/0.3347, allocations: 4 kB / 477.7 MB, free: 10.65 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002253/0.3349, allocations: 134.6 kB / 477.8 MB, free: 10.58 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001944/0.3351, allocations: 136.9 kB / 478 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.437e-06/0.3351, allocations: 4 kB / 478 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.71e-05/0.3351, allocations: 3.375 kB / 478 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.352e-05/0.3352, allocations: 4.234 kB / 478 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008249/0.336, allocations: 0.5324 MB / 478.5 MB, free: 10.09 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002299/0.3362, allocations: 141.5 kB / 478.6 MB, free: 9.996 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.27e-05/0.3363, allocations: 59.33 kB / 478.7 MB, free: 9.961 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.54e-05/0.3364, allocations: 0 / 478.7 MB, free: 9.961 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.137e-05/0.3364, allocations: 45.59 kB / 478.7 MB, free: 9.91 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.122e-06/0.3364, allocations: 0 / 478.7 MB, free: 9.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002547/0.3366, allocations: 138.8 kB / 478.9 MB, free: 9.812 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.877e-05/0.3367, allocations: 51.41 kB / 478.9 MB, free: 9.75 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/0.3368, allocations: 157 kB / 479.1 MB, free: 9.609 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.332e-05/0.3368, allocations: 29.64 kB / 479.1 MB, free: 9.574 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.274e-05/0.3368, allocations: 116.6 kB / 479.2 MB, free: 9.469 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.235e-05/0.3369, allocations: 41.97 kB / 479.3 MB, free: 9.438 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.287e-06/0.3369, allocations: 4 kB / 479.3 MB, free: 9.434 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.928e-05/0.3369, allocations: 321.7 kB / 479.6 MB, free: 9.117 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.807e-05/0.337, allocations: 46.88 kB / 479.6 MB, free: 9.094 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.07e-05/0.3371, allocations: 82 kB / 479.7 MB, free: 9.02 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.069e-05/0.3372, allocations: 66.28 kB / 479.8 MB, free: 8.984 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.3372, allocations: 0 / 479.8 MB, free: 8.984 MB / 346.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002345/0.3374, allocations: 171.3 kB / 479.9 MB, free: 8.863 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.238e-06/0.3374, allocations: 8 kB / 479.9 MB, free: 8.855 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.77e-06/0.3374, allocations: 0 / 479.9 MB, free: 8.855 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.3375, allocations: 4.75 kB / 479.9 MB, free: 8.852 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001984/0.3377, allocations: 37.86 kB / 480 MB, free: 8.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.3377, allocations: 4.609 kB / 480 MB, free: 8.816 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001355/0.3378, allocations: 19.38 kB / 480 MB, free: 8.801 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.268e-05/0.3379, allocations: 8.969 kB / 480 MB, free: 8.797 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 5.175e-05/0.3379, allocations: 116.8 kB / 480.1 MB, free: 8.676 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.694e-05/0.338, allocations: 8.609 kB / 480.1 MB, free: 8.668 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002649/0.3382, allocations: 166.2 kB / 480.3 MB, free: 8.562 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.3382, allocations: 0 / 480.3 MB, free: 8.562 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.3382, allocations: 4.656 kB / 480.3 MB, free: 8.559 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.3383, allocations: 0.75 kB / 480.3 MB, free: 8.559 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001951/0.3385, allocations: 228.9 kB / 480.5 MB, free: 8.355 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.3385, allocations: 3.938 kB / 480.5 MB, free: 8.355 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000175/0.3386, allocations: 32.95 kB / 480.6 MB, free: 8.328 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.3387, allocations: 4.688 kB / 480.6 MB, free: 8.324 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/0.3387, allocations: 5.875 kB / 480.6 MB, free: 8.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.325e-06/0.3387, allocations: 1.141 kB / 480.6 MB, free: 8.32 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3387, allocations: 0 / 480.6 MB, free: 8.32 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002162/0.3389, allocations: 251.7 kB / 480.8 MB, free: 8.113 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.093e-05/0.339, allocations: 101.4 kB / 480.9 MB, free: 8.008 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.924e-05/0.339, allocations: 8.656 kB / 480.9 MB, free: 8 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001545/0.3392, allocations: 6.484 kB / 480.9 MB, free: 7.996 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.037e-05/0.3392, allocations: 7.844 kB / 480.9 MB, free: 7.992 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/0.3392, allocations: 4.703 kB / 480.9 MB, free: 7.988 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.758e-05/0.3393, allocations: 127.2 kB / 481.1 MB, free: 7.883 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000262/0.3396, allocations: 35.11 kB / 481.1 MB, free: 7.852 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.0001079/0.3397, allocations: 109 kB / 481.2 MB, free: 7.738 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002044/0.3399, allocations: 123.9 kB / 481.3 MB, free: 7.664 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.3399, allocations: 3.938 kB / 481.3 MB, free: 7.66 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.57e-05/0.34, allocations: 61.16 kB / 481.4 MB, free: 7.625 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001883/0.3402, allocations: 8.125 kB / 481.4 MB, free: 7.621 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004421/0.3407, allocations: 217.9 kB / 481.6 MB, free: 7.441 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001847/0.3409, allocations: 0.7493 MB / 482.4 MB, free: 6.668 MB / 346.7 MB Notification: Performance of SimCode: time 2.71e-07/0.3409, allocations: 0 / 482.4 MB, free: 6.668 MB / 346.7 MB Notification: Performance of Templates: time 0.003537/0.3444, allocations: 1.616 MB / 484 MB, free: 5.102 MB / 346.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.b[1],transferFunction.useConjugateInput,transferFunction.y.im,transferFunction.y.re,wMax,wMin