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.00116/0.00116, allocations: 103.6 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001185/0.001185, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 65.03 kB / 307 MB, free: 0.5273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1108, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.003764/0.1146, allocations: 1.699 MB / 359.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001431/0.116, allocations: 0.7477 MB / 360 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.207e-05/0.1162, allocations: 0 / 360 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003027/0.1165, allocations: 59.72 kB / 360.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002511/0.1168, allocations: 35.72 kB / 360.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001184/0.118, allocations: 0.4941 MB / 360.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002418/0.1182, allocations: 119.6 kB / 360.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001249/0.1184, allocations: 37.52 kB / 360.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001192/0.1185, allocations: 55.72 kB / 360.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002534/0.1187, allocations: 95.64 kB / 360.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.642e-05/0.1188, allocations: 8 kB / 360.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002557/0.119, allocations: 119.9 kB / 361 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.992e-05/0.1191, allocations: 39.83 kB / 361.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.76e-05/0.1192, allocations: 63.59 kB / 361.1 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003296/0.1196, allocations: 199.7 kB / 361.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.1196, allocations: 8 kB / 361.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1196, allocations: 0 / 361.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.187e-05/0.1196, allocations: 0 / 361.3 MB, free: 10.21 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.001405/0.121, allocations: 0.5183 MB / 361.9 MB, free: 9.648 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.1211, allocations: 16.03 kB / 361.9 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.91e-05/0.1211, allocations: 46.73 kB / 361.9 MB, free: 9.578 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007404/0.1219, allocations: 108.5 kB / 362 MB, free: 9.473 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002123/0.1221, allocations: 199.3 kB / 362.2 MB, free: 9.242 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.136e-05/0.1221, allocations: 4.375 kB / 362.2 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.198e-05/0.1222, allocations: 12.38 kB / 362.2 MB, free: 9.227 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003915/0.1226, allocations: 161.6 kB / 362.4 MB, free: 9.062 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.1226, allocations: 8 kB / 362.4 MB, free: 9.055 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.006e-05/0.1226, allocations: 4 kB / 362.4 MB, free: 9.051 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.444e-05/0.1226, allocations: 4 kB / 362.4 MB, free: 9.047 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004199/0.1231, allocations: 164.9 kB / 362.6 MB, free: 8.887 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001033/0.1241, allocations: 0.5586 MB / 363.1 MB, free: 8.277 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004094/0.1245, allocations: 150.6 kB / 363.3 MB, free: 8.121 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000183/0.1247, allocations: 69 kB / 363.3 MB, free: 8.051 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.509e-05/0.1248, allocations: 3.938 kB / 363.3 MB, free: 8.047 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.583e-05/0.1248, allocations: 38.56 kB / 363.4 MB, free: 8 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.843e-06/0.1248, allocations: 0 / 363.4 MB, free: 8 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006189/0.1254, allocations: 209.3 kB / 363.6 MB, free: 7.789 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.687e-05/0.1255, allocations: 59.41 kB / 363.6 MB, free: 7.719 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002099/0.1257, allocations: 206.6 kB / 363.8 MB, free: 7.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.017e-05/0.1257, allocations: 25.7 kB / 363.9 MB, free: 7.469 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001117/0.1258, allocations: 128.1 kB / 364 MB, free: 7.336 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.619e-05/0.1259, allocations: 31.55 kB / 364 MB, free: 7.305 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.743e-05/0.126, allocations: 33.7 kB / 364.1 MB, free: 7.266 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.1261, allocations: 322.8 kB / 364.4 MB, free: 6.941 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001704/0.1263, allocations: 55.95 kB / 364.4 MB, free: 6.887 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001983/0.1265, allocations: 95.88 kB / 364.5 MB, free: 6.781 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003561/0.1268, allocations: 160.1 kB / 364.7 MB, free: 6.609 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.177e-06/0.1268, allocations: 0 / 364.7 MB, free: 6.609 MB / 302.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004386/0.1273, allocations: 201.2 kB / 364.9 MB, free: 6.406 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.1273, allocations: 4 kB / 364.9 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.1273, allocations: 4 kB / 364.9 MB, free: 6.398 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.1274, allocations: 4 kB / 364.9 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001847/0.1276, allocations: 32.09 kB / 364.9 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.114e-06/0.1276, allocations: 4 kB / 364.9 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001368/0.1277, allocations: 23.83 kB / 364.9 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.854e-05/0.1277, allocations: 7.938 kB / 365 MB, free: 6.328 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.0001324/0.1279, allocations: 134.2 kB / 365.1 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.198e-05/0.1279, allocations: 15.81 kB / 365.1 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000476/0.1284, allocations: 187 kB / 365.3 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.1284, allocations: 3.938 kB / 365.3 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.1284, allocations: 0 / 365.3 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.1285, allocations: 3.938 kB / 365.3 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002687/0.1287, allocations: 257.4 kB / 365.5 MB, free: 5.676 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.1287, allocations: 4 kB / 365.5 MB, free: 5.672 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001547/0.1289, allocations: 19.98 kB / 365.6 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.1289, allocations: 0 / 365.6 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.387e-05/0.1289, allocations: 4 kB / 365.6 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1289, allocations: 0 / 365.6 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.129, allocations: 4 kB / 365.6 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004307/0.1294, allocations: 263.2 kB / 365.8 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.571e-05/0.1295, allocations: 104.8 kB / 365.9 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.133e-05/0.1295, allocations: 8 kB / 365.9 MB, free: 5.242 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001414/0.1297, allocations: 7.984 kB / 365.9 MB, free: 5.234 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.718e-05/0.1297, allocations: 7.984 kB / 366 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/0.1297, allocations: 4 kB / 366 MB, free: 5.223 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001398/0.1299, allocations: 164.8 kB / 366.1 MB, free: 5.062 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1299, allocations: 4 kB / 366.1 MB, free: 5.059 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002782/0.1302, allocations: 27.91 kB / 366.1 MB, free: 5.031 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.0006947/0.1309, allocations: 0.7945 MB / 366.9 MB, free: 4.211 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004131/0.1313, allocations: 147.7 kB / 367.1 MB, free: 4.066 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1313, allocations: 0 / 367.1 MB, free: 4.066 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001813/0.1315, allocations: 76.14 kB / 367.2 MB, free: 3.992 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003116/0.1318, allocations: 12 kB / 367.2 MB, free: 3.98 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002988/0.1348, allocations: 2.137 MB / 369.3 MB, free: 1.742 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002918/0.1351, allocations: 0.724 MB / 370 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001302/0.1353, allocations: 29.39 kB / 370.1 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.552e-05/0.1354, allocations: 51.42 kB / 370.1 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1354, allocations: 0 / 370.1 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2/0.3354, allocations: 3.384 MB / 373.5 MB, free: 19.88 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.869/10.2, allocations: 7.969 kB / 373.5 MB, free: 19.88 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