Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.ComplexBlocks.Examples.ShowTransferFunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001978/0.001978, allocations: 194 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 226.5 MB / 244.7 MB, free: 6.375 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007614/0.0007613, allocations: 92.92 kB / 296.8 MB, free: 6.656 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002209/0.0002211, allocations: 4 kB / 356.7 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2156/0.2158, allocations: 51.29 MB / 408 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.001421/0.2173, allocations: 1.323 MB / 409.4 MB, free: 26.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009777/0.2183, allocations: 0.6966 MB / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.854e-05/0.2184, allocations: 0 / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002084/0.2186, allocations: 31.86 kB / 410.1 MB, free: 25.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001234/0.2187, allocations: 27.84 kB / 410.1 MB, free: 25.6 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006775/0.2194, allocations: 422 kB / 410.5 MB, free: 25.19 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000125/0.2196, allocations: 91.75 kB / 410.6 MB, free: 25.1 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001052/0.2197, allocations: 23.33 kB / 410.6 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.464e-05/0.2198, allocations: 47.78 kB / 410.7 MB, free: 25.03 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001846/0.22, allocations: 83.59 kB / 410.8 MB, free: 24.95 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.182e-05/0.22, allocations: 4 kB / 410.8 MB, free: 24.94 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001844/0.2202, allocations: 119.9 kB / 410.9 MB, free: 24.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.875e-05/0.2202, allocations: 29.09 kB / 410.9 MB, free: 24.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.863e-05/0.2203, allocations: 77.42 kB / 411 MB, free: 24.71 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001679/0.2205, allocations: 135.7 kB / 411.1 MB, free: 24.58 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.2205, allocations: 2.438 kB / 411.1 MB, free: 24.58 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2205, allocations: 3.938 kB / 411.1 MB, free: 24.58 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.2205, allocations: 0 / 411.1 MB, free: 24.58 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.00107/0.2216, allocations: 0.5024 MB / 411.6 MB, free: 24.03 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.2216, allocations: 8.031 kB / 411.6 MB, free: 24.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005802/0.2222, allocations: 107.2 kB / 411.7 MB, free: 23.92 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001389/0.2224, allocations: 190.4 kB / 411.9 MB, free: 23.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.928e-05/0.2224, allocations: 8.375 kB / 411.9 MB, free: 23.69 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.994e-05/0.2224, allocations: 16.36 kB / 412 MB, free: 23.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003344/0.2228, allocations: 174.9 kB / 412.1 MB, free: 23.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.2228, allocations: 4 kB / 412.1 MB, free: 23.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.62e-05/0.2228, allocations: 0 / 412.1 MB, free: 23.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.262e-05/0.2228, allocations: 8 kB / 412.1 MB, free: 23.49 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003556/0.2232, allocations: 175.9 kB / 412.3 MB, free: 23.32 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000855/0.2241, allocations: 0.5626 MB / 412.9 MB, free: 22.7 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003756/0.2244, allocations: 170.6 kB / 413 MB, free: 22.53 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001648/0.2246, allocations: 76.81 kB / 413.1 MB, free: 22.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.885e-05/0.2247, allocations: 0 / 413.1 MB, free: 22.45 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.562e-05/0.2247, allocations: 42.5 kB / 413.2 MB, free: 22.4 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.162e-06/0.2247, allocations: 0 / 413.2 MB, free: 22.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0005657/0.2253, allocations: 260.2 kB / 413.4 MB, free: 22.14 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.692e-05/0.2253, allocations: 51.41 kB / 413.5 MB, free: 22.08 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001339/0.2254, allocations: 191.2 kB / 413.6 MB, free: 21.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.473e-05/0.2255, allocations: 25.7 kB / 413.7 MB, free: 21.85 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.331e-05/0.2255, allocations: 124.1 kB / 413.8 MB, free: 21.72 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.463e-05/0.2255, allocations: 35.38 kB / 413.8 MB, free: 21.69 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.049e-05/0.2256, allocations: 4 kB / 413.8 MB, free: 21.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.414e-05/0.2256, allocations: 326.8 kB / 414.1 MB, free: 21.36 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001799/0.2258, allocations: 71.95 kB / 414.2 MB, free: 21.29 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001642/0.226, allocations: 107.2 kB / 414.3 MB, free: 21.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003217/0.2263, allocations: 193 kB / 414.5 MB, free: 20.96 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.2263, allocations: 3.938 kB / 414.5 MB, free: 20.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003848/0.2267, allocations: 213.5 kB / 414.7 MB, free: 20.74 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/0.2267, allocations: 12 kB / 414.7 MB, free: 20.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.2267, allocations: 0 / 414.7 MB, free: 20.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.2268, allocations: 4 kB / 414.7 MB, free: 20.72 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001663/0.2269, allocations: 35.91 kB / 414.8 MB, free: 20.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.2269, allocations: 8 kB / 414.8 MB, free: 20.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000115/0.2271, allocations: 23.83 kB / 414.8 MB, free: 20.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.558e-05/0.2271, allocations: 4 kB / 414.8 MB, free: 20.65 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.352e-05/0.2272, allocations: 145.6 kB / 414.9 MB, free: 20.5 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.438e-05/0.2272, allocations: 19.75 kB / 415 MB, free: 20.48 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004221/0.2277, allocations: 199 kB / 415.2 MB, free: 20.28 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.2277, allocations: 8 kB / 415.2 MB, free: 20.27 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.2277, allocations: 3.938 kB / 415.2 MB, free: 20.27 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.2277, allocations: 7.984 kB / 415.2 MB, free: 20.26 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001968/0.2279, allocations: 249.5 kB / 415.4 MB, free: 19.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.2279, allocations: 0 / 415.4 MB, free: 19.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001489/0.2281, allocations: 35.84 kB / 415.5 MB, free: 19.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.2281, allocations: 4 kB / 415.5 MB, free: 19.93 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.2281, allocations: 4 kB / 415.5 MB, free: 19.92 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.2281, allocations: 0 / 415.5 MB, free: 19.92 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2281, allocations: 0 / 415.5 MB, free: 19.92 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000364/0.2285, allocations: 287.4 kB / 415.7 MB, free: 19.62 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.219e-05/0.2285, allocations: 100.8 kB / 415.8 MB, free: 19.51 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.24e-05/0.2285, allocations: 0 / 415.8 MB, free: 19.51 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001276/0.2287, allocations: 19.98 kB / 415.9 MB, free: 19.49 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.837e-05/0.2287, allocations: 7.984 kB / 415.9 MB, free: 19.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.066e-05/0.2287, allocations: 4 kB / 415.9 MB, free: 19.48 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.809e-05/0.2288, allocations: 139.2 kB / 416 MB, free: 19.34 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2288, allocations: 0 / 416 MB, free: 19.34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002433/0.2291, allocations: 24 kB / 416 MB, free: 19.32 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 (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.0001173/0.2292, allocations: 103.2 kB / 416.1 MB, free: 19.21 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000372/0.2296, allocations: 164.1 kB / 416.3 MB, free: 19.05 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2296, allocations: 8.281 kB / 416.3 MB, free: 19.04 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001751/0.2298, allocations: 83.89 kB / 416.4 MB, free: 18.96 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002755/0.2301, allocations: 15.88 kB / 416.4 MB, free: 18.94 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004925/0.2306, allocations: 364 kB / 416.8 MB, free: 18.55 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001298/0.2307, allocations: 0.7243 MB / 417.5 MB, free: 17.8 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.231e-05/0.2308, allocations: 19.44 kB / 417.5 MB, free: 17.79 MB / 298.7 MB Notification: Performance of SimCode: time 3.71e-07/0.2308, allocations: 0 / 417.5 MB, free: 17.79 MB / 298.7 MB Notification: Performance of Templates: time 0.002871/0.2337, allocations: 1.997 MB / 419.5 MB, free: 15.8 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.ShowTransferFunction.makefile (rm -f Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe ; mkfifo Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe >> ../files/Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.ShowTransferFunction.sim & ./Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.ShowTransferFunction --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.ComplexBlocks.Examples.ShowTransferFunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches