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.001427/0.001427, allocations: 194.7 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 226.6 MB / 244.3 MB, free: 6.594 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007684/0.0007683, allocations: 93.83 kB / 296.4 MB, free: 6.809 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002547/0.0002547, allocations: 4 kB / 356.2 MB, free: 11.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2401/0.2404, allocations: 51.3 MB / 407.5 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.001621/0.2421, allocations: 1.319 MB / 408.8 MB, free: 26.47 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001101/0.2432, allocations: 0.696 MB / 409.5 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.229e-05/0.2433, allocations: 4 kB / 409.5 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002304/0.2435, allocations: 33 kB / 409.5 MB, free: 25.73 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001522/0.2437, allocations: 15.86 kB / 409.6 MB, free: 25.72 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007207/0.2444, allocations: 430.4 kB / 410 MB, free: 25.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001335/0.2445, allocations: 83.77 kB / 410.1 MB, free: 25.22 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001097/0.2447, allocations: 33.8 kB / 410.1 MB, free: 25.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.528e-05/0.2448, allocations: 49.59 kB / 410.1 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001953/0.245, allocations: 79.66 kB / 410.2 MB, free: 25.06 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.392e-05/0.245, allocations: 8 kB / 410.2 MB, free: 25.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001982/0.2452, allocations: 111.9 kB / 410.3 MB, free: 24.94 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.671e-05/0.2453, allocations: 33.88 kB / 410.4 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.89e-05/0.2453, allocations: 41.64 kB / 410.4 MB, free: 24.86 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001727/0.2455, allocations: 131.8 kB / 410.5 MB, free: 24.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2455, allocations: 0 / 410.5 MB, free: 24.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.335e-06/0.2455, allocations: 0 / 410.5 MB, free: 24.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.2455, allocations: 0 / 410.5 MB, free: 24.73 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.001178/0.2467, allocations: 0.5082 MB / 411 MB, free: 24.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.2467, allocations: 8.031 kB / 411 MB, free: 24.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005856/0.2473, allocations: 106.2 kB / 411.2 MB, free: 24.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001184/0.2475, allocations: 193.1 kB / 411.3 MB, free: 23.85 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.713e-05/0.2475, allocations: 11.95 kB / 411.4 MB, free: 23.84 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.121e-05/0.2475, allocations: 4 kB / 411.4 MB, free: 23.83 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003334/0.2478, allocations: 175.2 kB / 411.5 MB, free: 23.66 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.2479, allocations: 3.984 kB / 411.5 MB, free: 23.65 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.634e-05/0.2479, allocations: 4 kB / 411.5 MB, free: 23.65 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.046e-05/0.2479, allocations: 8 kB / 411.5 MB, free: 23.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003588/0.2483, allocations: 167.9 kB / 411.7 MB, free: 23.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008308/0.2491, allocations: 0.5665 MB / 412.3 MB, free: 22.86 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003634/0.2495, allocations: 174.6 kB / 412.4 MB, free: 22.68 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000166/0.2497, allocations: 76.81 kB / 412.5 MB, free: 22.6 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.219e-05/0.2497, allocations: 3.984 kB / 412.5 MB, free: 22.6 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.457e-05/0.2497, allocations: 38.56 kB / 412.6 MB, free: 22.55 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.262e-06/0.2497, allocations: 3.938 kB / 412.6 MB, free: 22.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0005732/0.2503, allocations: 241.5 kB / 412.8 MB, free: 22.3 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.035e-05/0.2503, allocations: 59.41 kB / 412.9 MB, free: 22.23 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001279/0.2505, allocations: 195.2 kB / 413.1 MB, free: 22.04 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.446e-05/0.2505, allocations: 33.64 kB / 413.1 MB, free: 22 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.003e-05/0.2506, allocations: 116.1 kB / 413.2 MB, free: 21.88 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.619e-05/0.2506, allocations: 47.44 kB / 413.2 MB, free: 21.83 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.867e-06/0.2506, allocations: 0 / 413.2 MB, free: 21.83 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.75e-05/0.2506, allocations: 326.8 kB / 413.6 MB, free: 21.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001588/0.2508, allocations: 67.95 kB / 413.6 MB, free: 21.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001675/0.251, allocations: 106.1 kB / 413.7 MB, free: 21.31 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001725/0.2512, allocations: 79.95 kB / 413.8 MB, free: 21.23 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.594e-06/0.2512, allocations: 4 kB / 413.8 MB, free: 21.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003937/0.2516, allocations: 229.2 kB / 414 MB, free: 21 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.2516, allocations: 4.938 kB / 414 MB, free: 21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.2516, allocations: 4 kB / 414 MB, free: 20.99 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.2516, allocations: 0 / 414 MB, free: 20.99 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001771/0.2518, allocations: 39.95 kB / 414.1 MB, free: 20.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.503e-06/0.2518, allocations: 3.938 kB / 414.1 MB, free: 20.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001261/0.252, allocations: 31.98 kB / 414.1 MB, free: 20.92 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.362e-05/0.252, allocations: 4 kB / 414.1 MB, free: 20.91 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.001e-05/0.2521, allocations: 133.8 kB / 414.3 MB, free: 20.77 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.217e-05/0.2521, allocations: 11.86 kB / 414.3 MB, free: 20.76 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004175/0.2525, allocations: 218.8 kB / 414.5 MB, free: 20.54 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.2526, allocations: 3.938 kB / 414.5 MB, free: 20.54 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.2526, allocations: 0 / 414.5 MB, free: 20.54 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.2526, allocations: 0 / 414.5 MB, free: 20.54 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000191/0.2528, allocations: 253.5 kB / 414.7 MB, free: 20.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.2528, allocations: 0 / 414.7 MB, free: 20.24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000157/0.2529, allocations: 27.97 kB / 414.8 MB, free: 20.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.253, allocations: 8.047 kB / 414.8 MB, free: 20.2 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.253, allocations: 11.94 kB / 414.8 MB, free: 20.19 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.253, allocations: 0 / 414.8 MB, free: 20.19 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.253, allocations: 0 / 414.8 MB, free: 20.19 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000377/0.2534, allocations: 294.8 kB / 415.1 MB, free: 19.89 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.899e-05/0.2534, allocations: 89 kB / 415.2 MB, free: 19.79 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.32e-05/0.2534, allocations: 7.953 kB / 415.2 MB, free: 19.78 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001389/0.2536, allocations: 8 kB / 415.2 MB, free: 19.77 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.239e-05/0.2536, allocations: 7.984 kB / 415.2 MB, free: 19.76 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.989e-06/0.2536, allocations: 7.984 kB / 415.2 MB, free: 19.75 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.889e-05/0.2537, allocations: 139.2 kB / 415.3 MB, free: 19.62 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2537, allocations: 4 kB / 415.3 MB, free: 19.61 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002744/0.254, allocations: 31.84 kB / 415.4 MB, free: 19.58 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.0001068/0.2541, allocations: 99.25 kB / 415.5 MB, free: 19.48 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000395/0.2545, allocations: 171.7 kB / 415.6 MB, free: 19.31 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2545, allocations: 0 / 415.6 MB, free: 19.31 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001683/0.2547, allocations: 75.94 kB / 415.7 MB, free: 19.23 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002609/0.255, allocations: 18.94 kB / 415.7 MB, free: 19.22 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004894/0.2555, allocations: 364 kB / 416.1 MB, free: 18.83 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001324/0.2556, allocations: 0.7243 MB / 416.8 MB, free: 18.08 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.862e-05/0.2557, allocations: 19.42 kB / 416.8 MB, free: 18.06 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2557, allocations: 0 / 416.8 MB, free: 18.06 MB / 298.7 MB Notification: Performance of Templates: time 0.002788/0.2585, allocations: 1.999 MB / 418.8 MB, free: 16.07 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