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.001304/0.001304, allocations: 110.5 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001428/0.001427, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.275/1.275, allocations: 227.4 MB / 246.9 MB, free: 10.65 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 59.75 kB / 306.9 MB, free: 1.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08973/0.09103, allocations: 50.54 MB / 357.4 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.002815/0.09388, allocations: 1.745 MB / 359.2 MB, free: 12.72 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00119/0.09509, allocations: 0.7517 MB / 359.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.981e-05/0.09517, allocations: 4 kB / 359.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002222/0.09543, allocations: 39.86 kB / 360 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000145/0.09559, allocations: 27.78 kB / 360 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009082/0.09651, allocations: 0.4906 MB / 360.5 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001641/0.09668, allocations: 111.6 kB / 360.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.692e-05/0.09679, allocations: 41.5 kB / 360.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001084/0.09691, allocations: 55.72 kB / 360.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000193/0.09711, allocations: 83.67 kB / 360.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.569e-05/0.09714, allocations: 8 kB / 360.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002305/0.09738, allocations: 119.9 kB / 360.9 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.617e-05/0.09745, allocations: 43.77 kB / 360.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.049e-05/0.09752, allocations: 55.61 kB / 361 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002059/0.09773, allocations: 148 kB / 361.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.09775, allocations: 4 kB / 361.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.09775, allocations: 0 / 361.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.692e-06/0.09777, allocations: 0 / 361.1 MB, free: 10.74 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.001269/0.09904, allocations: 0.5378 MB / 361.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.388e-05/0.09908, allocations: 12.03 kB / 361.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006869/0.09978, allocations: 96.64 kB / 361.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001526/0.09994, allocations: 199.5 kB / 362 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.378e-05/0.09997, allocations: 8.375 kB / 362 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.246e-05/0.1, allocations: 12.38 kB / 362 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003652/0.1004, allocations: 173.8 kB / 362.2 MB, free: 9.625 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.1004, allocations: 0 / 362.2 MB, free: 9.625 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.786e-05/0.1004, allocations: 11.94 kB / 362.2 MB, free: 9.613 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.461e-05/0.1004, allocations: 11.94 kB / 362.2 MB, free: 9.602 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004064/0.1009, allocations: 159.9 kB / 362.4 MB, free: 9.445 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001003/0.1019, allocations: 0.5742 MB / 362.9 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004152/0.1023, allocations: 150.7 kB / 363.1 MB, free: 8.664 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001883/0.1025, allocations: 80.75 kB / 363.2 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.382e-05/0.1025, allocations: 3.984 kB / 363.2 MB, free: 8.578 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.976e-05/0.1026, allocations: 42.5 kB / 363.2 MB, free: 8.527 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.583e-06/0.1026, allocations: 0 / 363.2 MB, free: 8.527 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006288/0.1032, allocations: 229.6 kB / 363.4 MB, free: 8.297 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.046e-05/0.1032, allocations: 59.34 kB / 363.5 MB, free: 8.227 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001769/0.1034, allocations: 207 kB / 363.7 MB, free: 8.012 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.721e-05/0.1034, allocations: 25.7 kB / 363.7 MB, free: 7.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.331e-05/0.1035, allocations: 123.9 kB / 363.8 MB, free: 7.855 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.058e-05/0.1036, allocations: 39.45 kB / 363.9 MB, free: 7.816 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.04e-05/0.1036, allocations: 37.61 kB / 363.9 MB, free: 7.773 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.1037, allocations: 326.8 kB / 364.2 MB, free: 7.445 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001803/0.1039, allocations: 63.89 kB / 364.3 MB, free: 7.383 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001995/0.1041, allocations: 101.1 kB / 364.4 MB, free: 7.266 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003689/0.1045, allocations: 177 kB / 364.6 MB, free: 7.074 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1045, allocations: 0 / 364.6 MB, free: 7.074 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004822/0.105, allocations: 217.2 kB / 364.8 MB, free: 6.855 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.105, allocations: 8 kB / 364.8 MB, free: 6.848 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.1051, allocations: 0 / 364.8 MB, free: 6.848 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.1051, allocations: 4 kB / 364.8 MB, free: 6.844 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001869/0.1053, allocations: 32.12 kB / 364.8 MB, free: 6.812 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/0.1053, allocations: 11.94 kB / 364.8 MB, free: 6.801 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001362/0.1054, allocations: 19.75 kB / 364.8 MB, free: 6.781 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.773e-05/0.1054, allocations: 11.98 kB / 364.9 MB, free: 6.77 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.0001002/0.1056, allocations: 126.9 kB / 365 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.23e-05/0.1056, allocations: 15.84 kB / 365 MB, free: 6.621 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004646/0.1061, allocations: 206.8 kB / 365.2 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.263e-06/0.1061, allocations: 4 kB / 365.2 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.1061, allocations: 0 / 365.2 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.1061, allocations: 0 / 365.2 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002561/0.1064, allocations: 257.5 kB / 365.5 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.1064, allocations: 96 / 365.5 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001673/0.1066, allocations: 31.84 kB / 365.5 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.1066, allocations: 4 kB / 365.5 MB, free: 6.074 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.39e-05/0.1066, allocations: 4 kB / 365.5 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.636e-06/0.1066, allocations: 3.984 kB / 365.5 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1066, allocations: 4 kB / 365.5 MB, free: 6.062 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004408/0.107, allocations: 282.6 kB / 365.8 MB, free: 5.773 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.185e-05/0.1071, allocations: 108.8 kB / 365.9 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.678e-05/0.1072, allocations: 0 / 365.9 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001443/0.1073, allocations: 11.98 kB / 365.9 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.021e-05/0.1074, allocations: 7.984 kB / 365.9 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.18e-05/0.1074, allocations: 8 kB / 365.9 MB, free: 5.621 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001143/0.1075, allocations: 147.2 kB / 366.1 MB, free: 5.477 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1075, allocations: 0 / 366.1 MB, free: 5.477 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002834/0.1078, allocations: 31.94 kB / 366.1 MB, free: 5.445 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.0001264/0.1079, allocations: 99.25 kB / 366.2 MB, free: 5.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004203/0.1084, allocations: 155.8 kB / 366.3 MB, free: 5.188 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.855e-06/0.1084, allocations: 0 / 366.3 MB, free: 5.188 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001878/0.1086, allocations: 75.89 kB / 366.4 MB, free: 5.113 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003178/0.1089, allocations: 23.92 kB / 366.4 MB, free: 5.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006261/0.1095, allocations: 398 kB / 366.8 MB, free: 4.664 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002568/0.1098, allocations: 0.7243 MB / 367.5 MB, free: 3.91 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.766e-05/0.1099, allocations: 19.42 kB / 367.6 MB, free: 3.895 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1099, allocations: 0 / 367.6 MB, free: 3.895 MB / 302.1 MB Notification: Performance of Templates: time 0.003644/0.1135, allocations: 2.053 MB / 369.6 MB, free: 1.852 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