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.001671/0.001671, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001955/0.001955, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.4 MB / 247.4 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 64.05 kB / 307.6 MB, free: 0.6602 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09916/0.1005, allocations: 50.53 MB / 358.1 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.002942/0.1035, allocations: 1.683 MB / 359.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001305/0.1048, allocations: 0.7571 MB / 360.6 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.318e-05/0.1049, allocations: 4 kB / 360.6 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002551/0.1052, allocations: 51.72 kB / 360.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002027/0.1054, allocations: 35.72 kB / 360.7 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00101/0.1064, allocations: 0.5058 MB / 361.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002157/0.1066, allocations: 119.6 kB / 361.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000119/0.1068, allocations: 33.53 kB / 361.3 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000106/0.1069, allocations: 59.7 kB / 361.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002214/0.1071, allocations: 87.67 kB / 361.5 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.467e-05/0.1071, allocations: 12 kB / 361.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002608/0.1074, allocations: 123.8 kB / 361.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.911e-05/0.1075, allocations: 39.84 kB / 361.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.711e-05/0.1076, allocations: 59.59 kB / 361.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002993/0.1079, allocations: 199.7 kB / 361.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.1079, allocations: 0 / 361.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1079, allocations: 0 / 361.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.678e-06/0.1079, allocations: 0 / 361.9 MB, free: 10.35 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.001325/0.1093, allocations: 0.5378 MB / 362.4 MB, free: 9.766 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.1093, allocations: 8.031 kB / 362.4 MB, free: 9.758 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007138/0.11, allocations: 100.6 kB / 362.5 MB, free: 9.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001611/0.1102, allocations: 211.3 kB / 362.7 MB, free: 9.418 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.984e-05/0.1102, allocations: 8.359 kB / 362.7 MB, free: 9.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.369e-05/0.1103, allocations: 8.375 kB / 362.8 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003605/0.1106, allocations: 161.8 kB / 362.9 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.1107, allocations: 0 / 362.9 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.879e-05/0.1107, allocations: 4 kB / 362.9 MB, free: 9.234 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.264e-05/0.1107, allocations: 11.98 kB / 362.9 MB, free: 9.223 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003936/0.1111, allocations: 155.9 kB / 363.1 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001008/0.1121, allocations: 0.5663 MB / 363.6 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003962/0.1125, allocations: 146.6 kB / 363.8 MB, free: 8.301 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001813/0.1127, allocations: 68.7 kB / 363.9 MB, free: 8.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.269e-05/0.1128, allocations: 0 / 363.9 MB, free: 8.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.354e-05/0.1128, allocations: 42.67 kB / 363.9 MB, free: 8.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 9.92e-07/0.1128, allocations: 0 / 363.9 MB, free: 8.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006056/0.1134, allocations: 209.3 kB / 364.1 MB, free: 7.969 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.053e-05/0.1135, allocations: 55.41 kB / 364.2 MB, free: 7.902 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001944/0.1137, allocations: 210.5 kB / 364.4 MB, free: 7.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.723e-05/0.1137, allocations: 25.7 kB / 364.4 MB, free: 7.648 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.703e-05/0.1138, allocations: 124.2 kB / 364.5 MB, free: 7.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.02e-05/0.1138, allocations: 39.44 kB / 364.5 MB, free: 7.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.643e-05/0.1139, allocations: 33.7 kB / 364.6 MB, free: 7.441 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.554e-05/0.114, allocations: 322.8 kB / 364.9 MB, free: 7.117 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001703/0.1142, allocations: 59.95 kB / 365 MB, free: 7.059 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001789/0.1143, allocations: 88.25 kB / 365 MB, free: 6.957 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003428/0.1147, allocations: 156.2 kB / 365.2 MB, free: 6.789 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.1147, allocations: 3.938 kB / 365.2 MB, free: 6.785 MB / 302.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004274/0.1151, allocations: 201.2 kB / 365.4 MB, free: 6.582 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.1152, allocations: 11.44 kB / 365.4 MB, free: 6.574 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.1152, allocations: 0 / 365.4 MB, free: 6.574 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.1152, allocations: 0 / 365.4 MB, free: 6.574 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001814/0.1154, allocations: 31.97 kB / 365.4 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.188e-06/0.1154, allocations: 4 kB / 365.4 MB, free: 6.539 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000139/0.1156, allocations: 19.78 kB / 365.5 MB, free: 6.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.935e-05/0.1156, allocations: 11.98 kB / 365.5 MB, free: 6.508 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.0001105/0.1157, allocations: 131 kB / 365.6 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.531e-05/0.1157, allocations: 27.72 kB / 365.6 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004441/0.1162, allocations: 175 kB / 365.8 MB, free: 6.168 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.1162, allocations: 4 kB / 365.8 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.1162, allocations: 0 / 365.8 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.1162, allocations: 0 / 365.8 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002605/0.1165, allocations: 249.4 kB / 366 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.1165, allocations: 4 kB / 366.1 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001623/0.1167, allocations: 35.91 kB / 366.1 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.1167, allocations: 0 / 366.1 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.1167, allocations: 0 / 366.1 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.1167, allocations: 0 / 366.1 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1167, allocations: 0 / 366.1 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004202/0.1171, allocations: 271.3 kB / 366.4 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.684e-05/0.1172, allocations: 108.8 kB / 366.5 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.85e-05/0.1173, allocations: 4 kB / 366.5 MB, free: 5.422 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001383/0.1174, allocations: 7.984 kB / 366.5 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.973e-05/0.1175, allocations: 7.984 kB / 366.5 MB, free: 5.406 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-05/0.1175, allocations: 7.938 kB / 366.5 MB, free: 5.398 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001345/0.1176, allocations: 160.8 kB / 366.6 MB, free: 5.242 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1176, allocations: 0 / 366.6 MB, free: 5.242 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002861/0.1179, allocations: 27.98 kB / 366.7 MB, free: 5.215 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.0001405/0.1181, allocations: 107.2 kB / 366.8 MB, free: 5.102 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004202/0.1185, allocations: 139.8 kB / 366.9 MB, free: 4.965 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1185, allocations: 0 / 366.9 MB, free: 4.965 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001768/0.1187, allocations: 72.14 kB / 367 MB, free: 4.895 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003146/0.119, allocations: 19.94 kB / 367 MB, free: 4.875 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006547/0.1197, allocations: 355.5 kB / 367.3 MB, free: 4.492 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002516/0.12, allocations: 0.724 MB / 368.1 MB, free: 3.738 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.413e-05/0.12, allocations: 23.44 kB / 368.1 MB, free: 3.719 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.12, allocations: 0 / 368.1 MB, free: 3.719 MB / 302.1 MB Notification: Performance of Templates: time 0.003795/0.1238, allocations: 1.985 MB / 370.1 MB, free: 1.738 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