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: "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.ShowTransferFunction,fileNamePrefix="Modelica_trunk_Modelica_ComplexBlocks_Examples_ShowTransferFunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.ShowTransferFunction,fileNamePrefix="Modelica_trunk_Modelica_ComplexBlocks_Examples_ShowTransferFunction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001429/0.001429, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001587/0.001587, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.4 MB / 246.3 MB, free: 9.023 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00155/0.00155, allocations: 58.2 kB / 306.3 MB, free: 0.7383 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1078, allocations: 50.53 MB / 356.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.002856/0.1107, allocations: 1.76 MB / 358.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00163/0.1124, allocations: 0.7478 MB / 359.4 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001466/0.1126, allocations: 0 / 359.4 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003848/0.113, allocations: 47.78 kB / 359.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002367/0.1132, allocations: 27.84 kB / 359.5 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001009/0.1143, allocations: 494.4 kB / 359.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002052/0.1145, allocations: 115.6 kB / 360 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001173/0.1146, allocations: 33.52 kB / 360.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001245/0.1147, allocations: 59.7 kB / 360.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002296/0.115, allocations: 83.67 kB / 360.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.321e-05/0.115, allocations: 8 kB / 360.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002687/0.1153, allocations: 131.8 kB / 360.4 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.265e-05/0.1154, allocations: 35.83 kB / 360.4 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.11e-05/0.1155, allocations: 55.61 kB / 360.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003212/0.1158, allocations: 199.7 kB / 360.6 MB, free: 10.4 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1158, allocations: 0 / 360.6 MB, free: 10.4 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1158, allocations: 3.938 kB / 360.6 MB, free: 10.4 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.714e-06/0.1158, allocations: 0 / 360.6 MB, free: 10.4 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.001482/0.1173, allocations: 0.5477 MB / 361.2 MB, free: 9.805 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.1174, allocations: 11.97 kB / 361.2 MB, free: 9.793 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.945e-05/0.1174, allocations: 46.73 kB / 361.3 MB, free: 9.738 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006819/0.1181, allocations: 108.5 kB / 361.4 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002106/0.1183, allocations: 191.6 kB / 361.5 MB, free: 9.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.746e-05/0.1184, allocations: 8.375 kB / 361.6 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.391e-05/0.1184, allocations: 16.31 kB / 361.6 MB, free: 9.387 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004322/0.1188, allocations: 169.6 kB / 361.7 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.1189, allocations: 0 / 361.7 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.119e-05/0.1189, allocations: 4 kB / 361.7 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.257e-05/0.1189, allocations: 8 kB / 361.7 MB, free: 9.203 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004353/0.1194, allocations: 165 kB / 361.9 MB, free: 9.043 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001204/0.1206, allocations: 0.578 MB / 362.5 MB, free: 8.414 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004883/0.1211, allocations: 166.6 kB / 362.6 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002052/0.1213, allocations: 77.03 kB / 362.7 MB, free: 8.164 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.497e-05/0.1214, allocations: 7.875 kB / 362.7 MB, free: 8.156 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.734e-05/0.1214, allocations: 30.56 kB / 362.8 MB, free: 8.117 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.443e-06/0.1214, allocations: 8 kB / 362.8 MB, free: 8.109 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007192/0.1221, allocations: 229.3 kB / 363 MB, free: 7.879 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.646e-05/0.1222, allocations: 51.41 kB / 363 MB, free: 7.816 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002335/0.1224, allocations: 203.2 kB / 363.2 MB, free: 7.605 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.099e-05/0.1225, allocations: 29.7 kB / 363.3 MB, free: 7.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.1226, allocations: 123.9 kB / 363.4 MB, free: 7.445 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.776e-05/0.1226, allocations: 35.45 kB / 363.4 MB, free: 7.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.082e-05/0.1227, allocations: 37.62 kB / 363.5 MB, free: 7.367 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.1229, allocations: 330.8 kB / 363.8 MB, free: 7.035 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001688/0.123, allocations: 63.89 kB / 363.8 MB, free: 6.973 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001949/0.1232, allocations: 103.1 kB / 363.9 MB, free: 6.855 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003629/0.1236, allocations: 180.9 kB / 364.1 MB, free: 6.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.1236, allocations: 0 / 364.1 MB, free: 6.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004372/0.1241, allocations: 217.2 kB / 364.3 MB, free: 6.441 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.1241, allocations: 4 kB / 364.3 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.1241, allocations: 4 kB / 364.3 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.1241, allocations: 0 / 364.3 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001763/0.1243, allocations: 31.92 kB / 364.4 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.1243, allocations: 7.984 kB / 364.4 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001291/0.1245, allocations: 16 kB / 364.4 MB, free: 6.379 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.177e-05/0.1245, allocations: 12 kB / 364.4 MB, free: 6.367 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.0001044/0.1246, allocations: 133.7 kB / 364.5 MB, free: 6.227 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.183e-05/0.1247, allocations: 15.84 kB / 364.6 MB, free: 6.211 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004967/0.1252, allocations: 198.8 kB / 364.8 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.602e-06/0.1252, allocations: 0 / 364.8 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.1252, allocations: 4 kB / 364.8 MB, free: 6.008 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.1252, allocations: 7.984 kB / 364.8 MB, free: 6 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003241/0.1255, allocations: 253.5 kB / 365 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.1255, allocations: 3.938 kB / 365 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001549/0.1257, allocations: 19.98 kB / 365 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.928e-06/0.1257, allocations: 0 / 365 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.865e-05/0.1257, allocations: 8 kB / 365 MB, free: 5.672 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.1258, allocations: 3.984 kB / 365 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.1258, allocations: 3.938 kB / 365 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004709/0.1262, allocations: 283.2 kB / 365.3 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000113/0.1264, allocations: 108.8 kB / 365.4 MB, free: 5.246 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.975e-05/0.1264, allocations: 8 kB / 365.4 MB, free: 5.238 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001386/0.1265, allocations: 11.98 kB / 365.5 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.468e-05/0.1266, allocations: 7.984 kB / 365.5 MB, free: 5.219 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.1266, allocations: 4 kB / 365.5 MB, free: 5.215 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001181/0.1267, allocations: 143.2 kB / 365.6 MB, free: 5.074 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1267, allocations: 4 kB / 365.6 MB, free: 5.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002727/0.127, allocations: 28 kB / 365.6 MB, free: 5.043 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.0007237/0.1277, allocations: 0.821 MB / 366.5 MB, free: 4.199 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004097/0.1282, allocations: 151.9 kB / 366.6 MB, free: 4.051 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1282, allocations: 0 / 366.6 MB, free: 4.051 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001795/0.1284, allocations: 75.89 kB / 366.7 MB, free: 3.977 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003046/0.1287, allocations: 16.31 kB / 366.7 MB, free: 3.961 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002655/0.1313, allocations: 2.229 MB / 368.9 MB, free: 1.617 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002779/0.1316, allocations: 0.7282 MB / 369.7 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001173/0.1318, allocations: 33.39 kB / 369.7 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.884e-05/0.1319, allocations: 43.42 kB / 369.7 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1319, allocations: 0 / 369.7 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1892/0.321, allocations: 3.285 MB / 373 MB, free: 19.55 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001894/0.3213, allocations: 204.5 kB / 373.2 MB, free: 19.3 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.783/2.105, allocations: 3.016 kB / 373.2 MB, free: 19.3 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction_res.mat --tempDir=temp_Modelica_trunk_Modelica_ComplexBlocks_Examples_ShowTransferFunction_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_ComplexBlocks_Examples_ShowTransferFunction.fmu > 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:a[1],a[2],a[3],b[1],c,complexToPolar.len,complexToPolar.phi,complexToPolar.u.im,complexToPolar.u.re,complexToPolar.useConjugateInput,const.k.im,const.k.re,const.y.im,const.y.re,d,dB,lg_w,logFrequencySweep.duration,logFrequencySweep.startTime,logFrequencySweep.wMax,logFrequencySweep.wMin,logFrequencySweep.y,m,phi,time,transferFunction.a[1],transferFunction.a[2],transferFunction.a[3],transferFunction.b[1],transferFunction.u.im,transferFunction.u.re,transferFunction.useConjugateInput,transferFunction.w,transferFunction.y.im,transferFunction.y.re,wMax,wMin