Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009459/0.0009458, allocations: 92.77 kB / 17.31 MB, free: 5.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001193/0.001193, allocations: 176.6 kB / 18.21 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.291/1.291, allocations: 223.3 MB / 242.3 MB, free: 184 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002221/0.0002222, allocations: 4 kB / 302.1 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07352/0.07376, allocations: 50.42 MB / 352.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.001533/0.07533, allocations: 1.342 MB / 353.8 MB, free: 2.348 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009957/0.07634, allocations: 0.635 MB / 354.5 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.125e-05/0.07641, allocations: 4 kB / 354.5 MB, free: 1.703 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001986/0.07662, allocations: 39.86 kB / 354.5 MB, free: 1.664 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001409/0.07677, allocations: 23.84 kB / 354.5 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001084/0.07786, allocations: 0.5783 MB / 355.1 MB, free: 1.062 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001449/0.07802, allocations: 103.7 kB / 355.2 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.337e-05/0.07812, allocations: 25.09 kB / 355.2 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001357/0.07827, allocations: 51.78 kB / 355.3 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000149/0.07842, allocations: 75.67 kB / 355.4 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.033e-05/0.07845, allocations: 4 kB / 355.4 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002023/0.07866, allocations: 131.8 kB / 355.5 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.602e-05/0.07873, allocations: 31.91 kB / 355.5 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.735e-05/0.0788, allocations: 81.3 kB / 355.6 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001994/0.07901, allocations: 151.7 kB / 355.8 MB, free: 420 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.07902, allocations: 0 / 355.8 MB, free: 420 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.07903, allocations: 0 / 355.8 MB, free: 420 kB / 286.1 MB Notification: Performance of Transformations before backend: time 3.958e-06/0.07904, allocations: 0 / 355.8 MB, free: 420 kB / 286.1 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.001429/0.08047, allocations: 0.547 MB / 356.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.092e-05/0.08051, allocations: 8.031 kB / 356.3 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001449/0.08197, allocations: 172.5 kB / 356.5 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001396/0.08212, allocations: 200 kB / 356.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.634e-05/0.08214, allocations: 4.375 kB / 356.7 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.891e-05/0.08218, allocations: 8.375 kB / 356.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004062/0.08259, allocations: 197.8 kB / 356.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.08261, allocations: 0 / 356.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.909e-05/0.08264, allocations: 3.938 kB / 356.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.363e-05/0.08267, allocations: 16 kB / 356.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004408/0.08312, allocations: 171.9 kB / 357.1 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008981/0.08402, allocations: 0.543 MB / 357.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003998/0.08444, allocations: 186.4 kB / 357.8 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002366/0.08468, allocations: 104.8 kB / 357.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.221e-05/0.08472, allocations: 0 / 357.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.017e-05/0.08474, allocations: 34.56 kB / 357.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.483e-06/0.08475, allocations: 4 kB / 357.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007729/0.08553, allocations: 297.4 kB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.084e-05/0.08557, allocations: 59.34 kB / 358.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001613/0.08574, allocations: 184.3 kB / 358.5 MB, free: 13.51 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.08577, allocations: 25.7 kB / 358.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.2e-05/0.08584, allocations: 108 kB / 358.6 MB, free: 13.37 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.057e-05/0.08588, allocations: 51.2 kB / 358.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.856e-05/0.08593, allocations: 25.7 kB / 358.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.187e-05/0.08603, allocations: 326.8 kB / 359 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002092/0.08624, allocations: 71.95 kB / 359.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002181/0.08647, allocations: 107.4 kB / 359.2 MB, free: 12.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004376/0.08692, allocations: 200.4 kB / 359.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.08693, allocations: 4 kB / 359.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0005249/0.08746, allocations: 237.1 kB / 359.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.08749, allocations: 10.81 kB / 359.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.0875, allocations: 8.031 kB / 359.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.08752, allocations: 3.984 kB / 359.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002442/0.08777, allocations: 47.89 kB / 359.7 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.829e-06/0.08779, allocations: 8 kB / 359.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001584/0.08795, allocations: 19.83 kB / 359.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.829e-05/0.08798, allocations: 4 kB / 359.7 MB, free: 12.23 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (16): * Single equations (assignments): 15 * 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 0.0001037/0.08809, allocations: 137.8 kB / 359.8 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.15e-05/0.08814, allocations: 11.91 kB / 359.8 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000621/0.08877, allocations: 285.2 kB / 360.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.062e-06/0.08878, allocations: 3.984 kB / 360.1 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.08879, allocations: 4 kB / 360.1 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.0888, allocations: 0 / 360.1 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002884/0.0891, allocations: 289.3 kB / 360.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.08911, allocations: 0 / 360.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002372/0.08935, allocations: 47.89 kB / 360.4 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.08936, allocations: 0 / 360.4 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.31e-05/0.08939, allocations: 11.94 kB / 360.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.0894, allocations: 0 / 360.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.0894, allocations: 0 / 360.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005469/0.08996, allocations: 331.3 kB / 360.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.028e-05/0.09002, allocations: 100.8 kB / 360.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.718e-05/0.09005, allocations: 3.938 kB / 360.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000184/0.09024, allocations: 19.98 kB / 360.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.846e-05/0.0903, allocations: 11.98 kB / 360.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.09032, allocations: 11.98 kB / 360.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001023/0.09043, allocations: 132 kB / 361.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09044, allocations: 0 / 361.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000288/0.09073, allocations: 35.89 kB / 361.1 MB, free: 10.72 MB / 302.1 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 (19): * Single equations (assignments): 18 * 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.0001102/0.09085, allocations: 107.2 kB / 361.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004874/0.09134, allocations: 202.5 kB / 361.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.09136, allocations: 192 / 361.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002451/0.09161, allocations: 115.9 kB / 361.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002948/0.09191, allocations: 12 kB / 361.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006125/0.09253, allocations: 420 kB / 361.9 MB, free: 9.844 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002356/0.09278, allocations: 0.7283 MB / 362.7 MB, free: 9.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.809e-05/0.09288, allocations: 27.41 kB / 362.7 MB, free: 9.062 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.09289, allocations: 0 / 362.7 MB, free: 9.062 MB / 302.1 MB Notification: Performance of Templates: time 0.003793/0.09668, allocations: 2.192 MB / 364.9 MB, free: 6.875 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction.makefile (rm -f Modelica_4.0.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe ; mkfifo Modelica_4.0.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe >> ../files/Modelica_4.0.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction.sim & ./Modelica_4.0.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/ComplexBlocks/Examples/ShowTransferFunction/ShowTransferFunction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches