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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0009129/0.0009129, allocations: 95.09 kB / 18 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001188/0.001189, allocations: 203 kB / 18.93 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.287/1.287, allocations: 227.7 MB / 247.5 MB, free: 11.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000209/0.000209, allocations: 4 kB / 308.4 MB, free: 0.8203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08548/0.0857, allocations: 51.52 MB / 359.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.001812/0.08755, allocations: 1.414 MB / 361.3 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001217/0.08879, allocations: 0.7361 MB / 362 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.544e-05/0.08888, allocations: 8 kB / 362.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002157/0.08911, allocations: 35.86 kB / 362.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000168/0.08928, allocations: 27.84 kB / 362.1 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000939/0.09023, allocations: 0.4906 MB / 362.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000173/0.09042, allocations: 111.6 kB / 362.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.997e-05/0.09053, allocations: 29.55 kB / 362.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001127/0.09065, allocations: 47.77 kB / 362.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002031/0.09086, allocations: 79.61 kB / 362.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.616e-05/0.0909, allocations: 8 kB / 362.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002455/0.09115, allocations: 127.9 kB / 363 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.648e-05/0.09123, allocations: 35.83 kB / 363 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.033e-05/0.0913, allocations: 81.25 kB / 363.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002054/0.09151, allocations: 140 kB / 363.3 MB, free: 9.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.09152, allocations: 0 / 363.3 MB, free: 9.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.09154, allocations: 4 kB / 363.3 MB, free: 9.906 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.09154, allocations: 0 / 363.3 MB, free: 9.906 MB / 302.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.001185/0.09273, allocations: 0.5223 MB / 363.8 MB, free: 9.336 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.09278, allocations: 8.031 kB / 363.8 MB, free: 9.328 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00066/0.09344, allocations: 100.5 kB / 363.9 MB, free: 9.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000157/0.09361, allocations: 197.4 kB / 364.1 MB, free: 9 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.081e-05/0.09364, allocations: 8.375 kB / 364.1 MB, free: 8.992 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.551e-05/0.09367, allocations: 12.38 kB / 364.1 MB, free: 8.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003735/0.09405, allocations: 177.8 kB / 364.3 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.09407, allocations: 0 / 364.3 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/0.0941, allocations: 11.91 kB / 364.3 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.198e-05/0.09412, allocations: 8 kB / 364.3 MB, free: 8.781 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004117/0.09454, allocations: 183.8 kB / 364.5 MB, free: 8.602 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009796/0.09553, allocations: 0.5741 MB / 365 MB, free: 7.977 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004093/0.09595, allocations: 162.7 kB / 365.2 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001915/0.09616, allocations: 80.81 kB / 365.3 MB, free: 7.727 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.922e-05/0.09619, allocations: 4 kB / 365.3 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.101e-05/0.09621, allocations: 34.5 kB / 365.3 MB, free: 7.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 2.635e-06/0.09622, allocations: 0 / 365.3 MB, free: 7.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006399/0.09687, allocations: 261.4 kB / 365.6 MB, free: 7.418 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.345e-05/0.09691, allocations: 55.41 kB / 365.6 MB, free: 7.352 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001818/0.0971, allocations: 202.2 kB / 365.8 MB, free: 7.141 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.761e-05/0.09712, allocations: 25.7 kB / 365.9 MB, free: 7.109 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.251e-05/0.0972, allocations: 127.9 kB / 366 MB, free: 6.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.12e-05/0.09724, allocations: 39.45 kB / 366 MB, free: 6.941 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.562e-05/0.09728, allocations: 17.72 kB / 366 MB, free: 6.918 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.553e-05/0.09738, allocations: 326.8 kB / 366.4 MB, free: 6.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001736/0.09756, allocations: 63.97 kB / 366.4 MB, free: 6.527 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001968/0.09777, allocations: 117 kB / 366.5 MB, free: 6.395 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003823/0.09816, allocations: 185 kB / 366.7 MB, free: 6.195 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.09817, allocations: 0 / 366.7 MB, free: 6.195 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004607/0.09864, allocations: 229.2 kB / 366.9 MB, free: 5.965 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.09866, allocations: 4 kB / 366.9 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.09867, allocations: 4 kB / 366.9 MB, free: 5.957 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.09869, allocations: 96 / 366.9 MB, free: 5.957 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001715/0.09887, allocations: 31.92 kB / 367 MB, free: 5.926 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.724e-06/0.09889, allocations: 8.156 kB / 367 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001314/0.09902, allocations: 23.83 kB / 367 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.687e-05/0.09905, allocations: 8 kB / 367 MB, free: 5.887 MB / 302.1 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 0.0001028/0.09915, allocations: 134.9 kB / 367.1 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.964e-05/0.0992, allocations: 19.75 kB / 367.2 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004912/0.0997, allocations: 210.9 kB / 367.4 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.09971, allocations: 0 / 367.4 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.09972, allocations: 0 / 367.4 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.09973, allocations: 0 / 367.4 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002558/0.09999, allocations: 265.4 kB / 367.6 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.1, allocations: 0 / 367.6 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001571/0.1002, allocations: 31.86 kB / 367.7 MB, free: 5.176 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.1002, allocations: 4 kB / 367.7 MB, free: 5.172 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/0.1002, allocations: 7.984 kB / 367.7 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.1002, allocations: 0 / 367.7 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1002, allocations: 0 / 367.7 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004468/0.1007, allocations: 294.8 kB / 368 MB, free: 4.863 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.246e-05/0.1008, allocations: 112.8 kB / 368.1 MB, free: 4.734 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.351e-05/0.1008, allocations: 0 / 368.1 MB, free: 4.734 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001398/0.1009, allocations: 12 kB / 368.1 MB, free: 4.723 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.447e-05/0.101, allocations: 7.984 kB / 368.1 MB, free: 4.715 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.197e-05/0.101, allocations: 11.92 kB / 368.1 MB, free: 4.703 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001183/0.1011, allocations: 143.2 kB / 368.2 MB, free: 4.562 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1011, allocations: 4 kB / 368.2 MB, free: 4.559 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002683/0.1014, allocations: 31.94 kB / 368.3 MB, free: 4.527 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 (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.0001257/0.1015, allocations: 103.2 kB / 368.4 MB, free: 4.418 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004227/0.102, allocations: 163.8 kB / 368.5 MB, free: 4.258 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.102, allocations: 0 / 368.5 MB, free: 4.258 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002075/0.1022, allocations: 83.89 kB / 368.6 MB, free: 4.176 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002867/0.1025, allocations: 20.19 kB / 368.6 MB, free: 4.156 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006156/0.1031, allocations: 422.1 kB / 369 MB, free: 3.707 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002555/0.1034, allocations: 0.7243 MB / 369.8 MB, free: 2.953 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.486e-05/0.1034, allocations: 15.44 kB / 369.8 MB, free: 2.941 MB / 302.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1035, allocations: 0 / 369.8 MB, free: 2.941 MB / 302.1 MB Notification: Performance of Templates: time 0.003766/0.1072, allocations: 2.046 MB / 371.8 MB, free: 0.9062 MB / 302.1 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/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_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:const.y.im,const.y.re,logFrequencySweep.y,time,transferFunction.y.im,transferFunction.y.re