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.001244/0.001244, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009302/0.00093, allocations: 109.3 kB / 296.7 MB, free: 6.465 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009574/0.0009575, allocations: 47.92 kB / 356.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2402/0.2412, allocations: 50.45 MB / 407 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.002994/0.2442, allocations: 1.754 MB / 408.8 MB, free: 26.06 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001172/0.2454, allocations: 0.7498 MB / 409.5 MB, free: 25.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.51e-05/0.2456, allocations: 0 / 409.5 MB, free: 25.3 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002544/0.2458, allocations: 47.83 kB / 409.6 MB, free: 25.26 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001888/0.246, allocations: 30.67 kB / 409.6 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008214/0.2469, allocations: 0.4906 MB / 410.1 MB, free: 24.74 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000159/0.247, allocations: 119.6 kB / 410.2 MB, free: 24.62 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.662e-05/0.2471, allocations: 29.53 kB / 410.2 MB, free: 24.59 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.685e-05/0.2473, allocations: 63.7 kB / 410.3 MB, free: 24.53 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001946/0.2475, allocations: 83.66 kB / 410.4 MB, free: 24.45 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.254e-05/0.2475, allocations: 8 kB / 410.4 MB, free: 24.44 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002471/0.2478, allocations: 131.8 kB / 410.5 MB, free: 24.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.028e-05/0.2478, allocations: 35.83 kB / 410.6 MB, free: 24.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.354e-05/0.2479, allocations: 55.67 kB / 410.6 MB, free: 24.22 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002524/0.2481, allocations: 208.9 kB / 410.8 MB, free: 24.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.2482, allocations: 0 / 410.8 MB, free: 24.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.2482, allocations: 0 / 410.8 MB, free: 24.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.2482, allocations: 0 / 410.8 MB, free: 24.02 MB / 298.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.001191/0.2494, allocations: 0.5379 MB / 411.4 MB, free: 23.43 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.2494, allocations: 12.02 kB / 411.4 MB, free: 23.42 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000607/0.25, allocations: 96.64 kB / 411.5 MB, free: 23.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001246/0.2502, allocations: 208.9 kB / 411.7 MB, free: 23.08 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.99e-05/0.2502, allocations: 8.375 kB / 411.7 MB, free: 23.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.06e-05/0.2502, allocations: 12.38 kB / 411.7 MB, free: 23.06 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003074/0.2505, allocations: 169.8 kB / 411.9 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.2506, allocations: 0 / 411.9 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.686e-05/0.2506, allocations: 11.98 kB / 411.9 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.917e-05/0.2506, allocations: 4 kB / 411.9 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003365/0.2509, allocations: 165.4 kB / 412 MB, free: 22.71 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008902/0.2518, allocations: 0.5587 MB / 412.6 MB, free: 22.11 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003709/0.2522, allocations: 166.6 kB / 412.8 MB, free: 21.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001615/0.2524, allocations: 76.75 kB / 412.8 MB, free: 21.86 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.604e-05/0.2524, allocations: 4 kB / 412.8 MB, free: 21.85 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.393e-05/0.2525, allocations: 34.5 kB / 412.9 MB, free: 21.81 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.383e-06/0.2525, allocations: 0 / 412.9 MB, free: 21.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0005518/0.253, allocations: 241.5 kB / 413.1 MB, free: 21.57 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.51e-05/0.2531, allocations: 51.41 kB / 413.2 MB, free: 21.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001434/0.2532, allocations: 215 kB / 413.4 MB, free: 21.28 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.236e-05/0.2532, allocations: 29.7 kB / 413.4 MB, free: 21.25 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.298e-05/0.2533, allocations: 123.8 kB / 413.5 MB, free: 21.12 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.197e-05/0.2533, allocations: 39.39 kB / 413.6 MB, free: 21.08 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.644e-05/0.2534, allocations: 41.61 kB / 413.6 MB, free: 21.04 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.31e-05/0.2534, allocations: 326.8 kB / 413.9 MB, free: 20.71 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001498/0.2536, allocations: 55.95 kB / 414 MB, free: 20.65 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001616/0.2538, allocations: 107.9 kB / 414.1 MB, free: 20.53 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003094/0.2541, allocations: 177 kB / 414.2 MB, free: 20.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2541, allocations: 0 / 414.2 MB, free: 20.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000388/0.2545, allocations: 213.3 kB / 414.5 MB, free: 20.12 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.2545, allocations: 8 kB / 414.5 MB, free: 20.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.2545, allocations: 0 / 414.5 MB, free: 20.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.2545, allocations: 3.984 kB / 414.5 MB, free: 20.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001635/0.2547, allocations: 39.91 kB / 414.5 MB, free: 20.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.323e-06/0.2547, allocations: 7.984 kB / 414.5 MB, free: 20.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001191/0.2548, allocations: 19.83 kB / 414.5 MB, free: 20.05 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.405e-05/0.2549, allocations: 16.09 kB / 414.5 MB, free: 20.03 MB / 298.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 () * 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 7.654e-05/0.2549, allocations: 129.8 kB / 414.7 MB, free: 19.89 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.546e-05/0.255, allocations: 19.75 kB / 414.7 MB, free: 19.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000414/0.2554, allocations: 195.1 kB / 414.9 MB, free: 19.68 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.2554, allocations: 11.92 kB / 414.9 MB, free: 19.67 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.2554, allocations: 0 / 414.9 MB, free: 19.67 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.2554, allocations: 4 kB / 414.9 MB, free: 19.66 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002256/0.2557, allocations: 261.4 kB / 415.2 MB, free: 19.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.2557, allocations: 0 / 415.2 MB, free: 19.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000147/0.2558, allocations: 31.86 kB / 415.2 MB, free: 19.33 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.2559, allocations: 0 / 415.2 MB, free: 19.33 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/0.2559, allocations: 7.984 kB / 415.2 MB, free: 19.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.2559, allocations: 0 / 415.2 MB, free: 19.32 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.2559, allocations: 0 / 415.2 MB, free: 19.32 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006519/0.2565, allocations: 0.9228 MB / 416.1 MB, free: 18.34 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.692e-05/0.2566, allocations: 100.9 kB / 416.2 MB, free: 18.22 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.329e-05/0.2566, allocations: 4 kB / 416.2 MB, free: 18.22 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001303/0.2568, allocations: 7.984 kB / 416.2 MB, free: 18.21 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.375e-05/0.2568, allocations: 7.984 kB / 416.2 MB, free: 18.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.066e-05/0.2569, allocations: 7.938 kB / 416.2 MB, free: 18.2 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.917e-05/0.257, allocations: 155.2 kB / 416.4 MB, free: 18.04 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.257, allocations: 0 / 416.4 MB, free: 18.04 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003533/0.2573, allocations: 27.94 kB / 416.4 MB, free: 18.02 MB / 298.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 () * 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.0001248/0.2574, allocations: 103.2 kB / 416.5 MB, free: 17.91 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003656/0.2578, allocations: 159.8 kB / 416.7 MB, free: 17.75 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.2578, allocations: 0 / 416.7 MB, free: 17.75 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001565/0.258, allocations: 71.95 kB / 416.7 MB, free: 17.68 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002776/0.2583, allocations: 16.64 kB / 416.8 MB, free: 17.66 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006549/0.2589, allocations: 0.5222 MB / 417.3 MB, free: 17.1 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001474/0.2591, allocations: 0.7282 MB / 418 MB, free: 16.34 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001071/0.2592, allocations: 29.41 kB / 418 MB, free: 16.32 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.912e-05/0.2593, allocations: 19.42 kB / 418.1 MB, free: 16.3 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2593, allocations: 0 / 418.1 MB, free: 16.3 MB / 298.7 MB Notification: Performance of Templates: time 0.003939/0.2632, allocations: 1.715 MB / 419.8 MB, free: 14.6 MB / 298.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@2/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.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