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.0007153/0.0007154, allocations: 97.12 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008017/0.0008017, allocations: 206.3 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.225/1.225, allocations: 227.7 MB / 246.8 MB, free: 11.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002236/0.0002236, allocations: 7.938 kB / 307.8 MB, free: 0.7422 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09784/0.09808, allocations: 51.52 MB / 359.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.002253/0.1004, allocations: 1.406 MB / 360.8 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001499/0.1019, allocations: 0.7362 MB / 361.5 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.456e-05/0.102, allocations: 4 kB / 361.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002588/0.1023, allocations: 43.84 kB / 361.5 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002042/0.1025, allocations: 27.84 kB / 361.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009991/0.1035, allocations: 0.4905 MB / 362.1 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000209/0.1038, allocations: 111.6 kB / 362.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001266/0.1039, allocations: 29.53 kB / 362.2 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001276/0.104, allocations: 51.72 kB / 362.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002204/0.1043, allocations: 75.67 kB / 362.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.618e-05/0.1043, allocations: 4 kB / 362.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002522/0.1046, allocations: 131.9 kB / 362.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.22e-05/0.1046, allocations: 39.77 kB / 362.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.743e-05/0.1047, allocations: 77.31 kB / 362.6 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003159/0.1051, allocations: 195.7 kB / 362.8 MB, free: 9.781 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.1051, allocations: 0 / 362.8 MB, free: 9.781 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1051, allocations: 0 / 362.8 MB, free: 9.781 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.7e-06/0.1051, allocations: 0 / 362.8 MB, free: 9.781 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.0013/0.1064, allocations: 0.5183 MB / 363.3 MB, free: 9.215 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.1064, allocations: 16.02 kB / 363.3 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.17e-05/0.1065, allocations: 42.75 kB / 363.3 MB, free: 9.148 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000666/0.1072, allocations: 112.5 kB / 363.4 MB, free: 9.039 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001806/0.1074, allocations: 199.5 kB / 363.6 MB, free: 8.809 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.295e-05/0.1074, allocations: 12.36 kB / 363.7 MB, free: 8.797 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.345e-05/0.1074, allocations: 8.375 kB / 363.7 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000381/0.1078, allocations: 181.5 kB / 363.8 MB, free: 8.605 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.1078, allocations: 0 / 363.8 MB, free: 8.605 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.893e-05/0.1079, allocations: 4 kB / 363.8 MB, free: 8.602 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3e-05/0.1079, allocations: 15.98 kB / 363.9 MB, free: 8.586 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004154/0.1083, allocations: 169 kB / 364 MB, free: 8.422 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001036/0.1094, allocations: 0.5704 MB / 364.6 MB, free: 7.801 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004333/0.1098, allocations: 166.6 kB / 364.8 MB, free: 7.629 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001883/0.11, allocations: 80.81 kB / 364.8 MB, free: 7.547 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.473e-05/0.11, allocations: 3.938 kB / 364.8 MB, free: 7.543 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.643e-05/0.1101, allocations: 34.56 kB / 364.9 MB, free: 7.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.683e-06/0.1101, allocations: 0 / 364.9 MB, free: 7.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006675/0.1108, allocations: 249.5 kB / 365.1 MB, free: 7.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.088e-05/0.1108, allocations: 55.34 kB / 365.2 MB, free: 7.184 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001968/0.111, allocations: 210.1 kB / 365.4 MB, free: 6.965 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.066e-05/0.111, allocations: 29.7 kB / 365.4 MB, free: 6.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.655e-05/0.1111, allocations: 127.9 kB / 365.5 MB, free: 6.801 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.61e-05/0.1112, allocations: 43.34 kB / 365.6 MB, free: 6.758 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.772e-05/0.1112, allocations: 17.72 kB / 365.6 MB, free: 6.734 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.1113, allocations: 326.8 kB / 365.9 MB, free: 6.406 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001789/0.1115, allocations: 63.95 kB / 366 MB, free: 6.344 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002025/0.1117, allocations: 109.1 kB / 366.1 MB, free: 6.219 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000382/0.1121, allocations: 185 kB / 366.3 MB, free: 6.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.1122, allocations: 4 kB / 366.3 MB, free: 6.016 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004627/0.1126, allocations: 217.3 kB / 366.5 MB, free: 5.797 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.1126, allocations: 8 kB / 366.5 MB, free: 5.789 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.1127, allocations: 4 kB / 366.5 MB, free: 5.785 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.1127, allocations: 7.938 kB / 366.5 MB, free: 5.777 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000172/0.1129, allocations: 40.06 kB / 366.5 MB, free: 5.738 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.1129, allocations: 4 kB / 366.5 MB, free: 5.734 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001284/0.113, allocations: 23.83 kB / 366.6 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.676e-05/0.113, allocations: 8 kB / 366.6 MB, free: 5.703 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.0001184/0.1132, allocations: 137.7 kB / 366.7 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.894e-05/0.1132, allocations: 15.75 kB / 366.7 MB, free: 5.543 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005274/0.1137, allocations: 210.9 kB / 366.9 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.1138, allocations: 0 / 366.9 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.1138, allocations: 0 / 366.9 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.1138, allocations: 4 kB / 366.9 MB, free: 5.328 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002837/0.1141, allocations: 249.5 kB / 367.2 MB, free: 5.035 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.1141, allocations: 8.031 kB / 367.2 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001551/0.1142, allocations: 35.91 kB / 367.2 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.1143, allocations: 0 / 367.2 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.407e-05/0.1143, allocations: 4 kB / 367.2 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.1143, allocations: 0 / 367.2 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.1143, allocations: 4 kB / 367.2 MB, free: 4.984 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004719/0.1148, allocations: 294.7 kB / 367.5 MB, free: 4.684 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001013/0.1149, allocations: 112.8 kB / 367.6 MB, free: 4.555 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.834e-05/0.1149, allocations: 4 kB / 367.6 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001404/0.1151, allocations: 11.98 kB / 367.6 MB, free: 4.539 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.878e-05/0.1151, allocations: 11.92 kB / 367.6 MB, free: 4.527 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.138e-05/0.1151, allocations: 4 kB / 367.6 MB, free: 4.523 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001366/0.1153, allocations: 151.2 kB / 367.8 MB, free: 4.375 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1153, allocations: 4 kB / 367.8 MB, free: 4.371 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002755/0.1156, allocations: 24 kB / 367.8 MB, free: 4.348 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.0008046/0.1164, allocations: 0.8293 MB / 368.7 MB, free: 3.492 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004376/0.1168, allocations: 160 kB / 368.8 MB, free: 3.336 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1168, allocations: 0 / 368.8 MB, free: 3.336 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001857/0.117, allocations: 79.89 kB / 368.9 MB, free: 3.258 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003015/0.1173, allocations: 19.98 kB / 368.9 MB, free: 3.238 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002758/0.1201, allocations: 2.265 MB / 371.2 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000277/0.1204, allocations: 0.7204 MB / 371.9 MB, free: 108 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001115/0.1205, allocations: 29.41 kB / 371.9 MB, free: 80 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.461e-05/0.1206, allocations: 47.41 kB / 372 MB, free: 32 kB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1206, allocations: 0 / 372 MB, free: 32 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1502/0.2709, allocations: 3.219 MB / 375.2 MB, free: 18.63 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001391/0.271, allocations: 207.1 kB / 375.4 MB, free: 18.38 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.673/1.945, allocations: 0 / 375.4 MB, free: 18.38 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