Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.ComplexBlocks.Examples.ShowTransferFunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001278/0.001278, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001253/0.001253, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.409/1.409, allocations: 227.7 MB / 247.7 MB, free: 10.36 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001941, allocations: 62.53 kB / 307.9 MB, free: 0.5234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1056, allocations: 50.54 MB / 358.4 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.003067/0.1087, allocations: 1.69 MB / 360.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001294/0.1101, allocations: 0.757 MB / 360.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.366e-05/0.1101, allocations: 4 kB / 360.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002332/0.1104, allocations: 55.7 kB / 360.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001648/0.1106, allocations: 35.72 kB / 361 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00101/0.1116, allocations: 0.5019 MB / 361.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00023/0.1118, allocations: 115.6 kB / 361.6 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001177/0.1119, allocations: 33.53 kB / 361.6 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.734e-05/0.112, allocations: 59.72 kB / 361.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002305/0.1123, allocations: 87.66 kB / 361.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.024e-05/0.1123, allocations: 12 kB / 361.8 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002568/0.1126, allocations: 119.9 kB / 361.9 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.581e-05/0.1127, allocations: 43.83 kB / 361.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.808e-05/0.1128, allocations: 63.59 kB / 362 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000301/0.1131, allocations: 195.7 kB / 362.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1131, allocations: 0 / 362.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1131, allocations: 0 / 362.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.1131, allocations: 0 / 362.2 MB, free: 10.2 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.001329/0.1144, allocations: 0.5339 MB / 362.7 MB, free: 9.613 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.1145, allocations: 8.031 kB / 362.7 MB, free: 9.605 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006807/0.1152, allocations: 108.6 kB / 362.8 MB, free: 9.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001918/0.1154, allocations: 196.1 kB / 363 MB, free: 9.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.692e-05/0.1154, allocations: 12.3 kB / 363 MB, free: 9.258 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.736e-05/0.1154, allocations: 12.36 kB / 363 MB, free: 9.246 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004085/0.1158, allocations: 169 kB / 363.2 MB, free: 9.078 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.1159, allocations: 0 / 363.2 MB, free: 9.078 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.044e-05/0.1159, allocations: 4 kB / 363.2 MB, free: 9.074 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.466e-05/0.1159, allocations: 8 kB / 363.2 MB, free: 9.066 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004168/0.1163, allocations: 159.9 kB / 363.4 MB, free: 8.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001039/0.1174, allocations: 0.5623 MB / 363.9 MB, free: 8.297 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004218/0.1178, allocations: 150.6 kB / 364.1 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001889/0.118, allocations: 68.75 kB / 364.1 MB, free: 8.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.065e-05/0.1181, allocations: 3.984 kB / 364.2 MB, free: 8.066 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.578e-05/0.1181, allocations: 34.56 kB / 364.2 MB, free: 8.023 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.363e-06/0.1181, allocations: 4 kB / 364.2 MB, free: 8.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006315/0.1187, allocations: 213.5 kB / 364.4 MB, free: 7.805 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.634e-05/0.1188, allocations: 51.41 kB / 364.4 MB, free: 7.742 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002269/0.119, allocations: 214.9 kB / 364.7 MB, free: 7.516 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.01e-05/0.1191, allocations: 25.7 kB / 364.7 MB, free: 7.484 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.532e-05/0.1192, allocations: 128.1 kB / 364.8 MB, free: 7.352 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.223e-05/0.1192, allocations: 31.47 kB / 364.8 MB, free: 7.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.379e-05/0.1193, allocations: 33.7 kB / 364.9 MB, free: 7.281 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.1194, allocations: 322.8 kB / 365.2 MB, free: 6.957 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001839/0.1196, allocations: 59.95 kB / 365.2 MB, free: 6.898 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001905/0.1198, allocations: 88.25 kB / 365.3 MB, free: 6.797 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003606/0.1202, allocations: 156.5 kB / 365.5 MB, free: 6.629 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.1202, allocations: 0 / 365.5 MB, free: 6.629 MB / 302.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004467/0.1206, allocations: 205.1 kB / 365.7 MB, free: 6.422 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.1207, allocations: 8 kB / 365.7 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.1207, allocations: 3.984 kB / 365.7 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/0.1207, allocations: 4 kB / 365.7 MB, free: 6.406 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001833/0.1209, allocations: 31.92 kB / 365.7 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.665e-06/0.1209, allocations: 4 kB / 365.7 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000127/0.121, allocations: 19.83 kB / 365.8 MB, free: 6.352 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.416e-05/0.1211, allocations: 8 kB / 365.8 MB, free: 6.344 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001219/0.1212, allocations: 133.9 kB / 365.9 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.518e-05/0.1212, allocations: 23.73 kB / 365.9 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004675/0.1217, allocations: 179 kB / 366.1 MB, free: 6 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.1217, allocations: 4 kB / 366.1 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.1217, allocations: 0 / 366.1 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.1218, allocations: 0 / 366.1 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002864/0.122, allocations: 253.4 kB / 366.3 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1221, allocations: 4 kB / 366.3 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001595/0.1222, allocations: 27.92 kB / 366.4 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.1222, allocations: 0 / 366.4 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.1222, allocations: 4 kB / 366.4 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1223, allocations: 0 / 366.4 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1223, allocations: 0 / 366.4 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004593/0.1227, allocations: 267.2 kB / 366.6 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.78e-05/0.1228, allocations: 104.8 kB / 366.7 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.212e-05/0.1229, allocations: 7.984 kB / 366.7 MB, free: 5.258 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001388/0.123, allocations: 4 kB / 366.8 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.138e-05/0.1231, allocations: 7.984 kB / 366.8 MB, free: 5.246 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.34e-05/0.1231, allocations: 8 kB / 366.8 MB, free: 5.238 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001435/0.1232, allocations: 160.2 kB / 366.9 MB, free: 5.082 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1233, allocations: 0 / 366.9 MB, free: 5.082 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002991/0.1236, allocations: 24 kB / 366.9 MB, free: 5.059 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 (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001391/0.1237, allocations: 107.2 kB / 367.1 MB, free: 4.945 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004438/0.1242, allocations: 139.8 kB / 367.2 MB, free: 4.809 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1242, allocations: 256 / 367.2 MB, free: 4.809 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001872/0.1244, allocations: 75.89 kB / 367.3 MB, free: 4.734 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002992/0.1247, allocations: 20.2 kB / 367.3 MB, free: 4.715 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006537/0.1253, allocations: 344.1 kB / 367.6 MB, free: 4.344 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003487/0.1257, allocations: 0.7278 MB / 368.3 MB, free: 3.586 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.995e-05/0.1258, allocations: 27.42 kB / 368.4 MB, free: 3.562 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1258, allocations: 0 / 368.4 MB, free: 3.562 MB / 302.1 MB Notification: Performance of Templates: time 0.004086/0.1299, allocations: 1.987 MB / 370.4 MB, free: 1.582 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.ShowTransferFunction.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.ShowTransferFunction.sim & ./Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.ShowTransferFunction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.ShowTransferFunction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/ComplexBlocks/Examples/ShowTransferFunction/ShowTransferFunction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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