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.001569/0.001569, allocations: 115.7 kB / 17.33 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001974/0.001974, allocations: 205.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.517/1.517, allocations: 227.4 MB / 246.4 MB, free: 10.81 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00205/0.00205, allocations: 64.52 kB / 306.5 MB, free: 0.8555 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1211, allocations: 50.53 MB / 357.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.003474/0.1246, allocations: 1.749 MB / 358.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001562/0.1262, allocations: 0.7439 MB / 359.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.1263, allocations: 4 kB / 359.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003006/0.1267, allocations: 43.84 kB / 359.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002505/0.1269, allocations: 27.78 kB / 359.6 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001154/0.1281, allocations: 485.7 kB / 360.1 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002557/0.1284, allocations: 123.6 kB / 360.2 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001286/0.1285, allocations: 33.52 kB / 360.3 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001461/0.1287, allocations: 59.72 kB / 360.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002606/0.1289, allocations: 87.66 kB / 360.4 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.017e-05/0.129, allocations: 12 kB / 360.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003036/0.1293, allocations: 135.8 kB / 360.6 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.492e-05/0.1294, allocations: 39.84 kB / 360.6 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.217e-05/0.1295, allocations: 63.59 kB / 360.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003878/0.1299, allocations: 203.7 kB / 360.9 MB, free: 10.53 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.1299, allocations: 0 / 360.9 MB, free: 10.53 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.1299, allocations: 0 / 360.9 MB, free: 10.53 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.191e-05/0.13, allocations: 0 / 360.9 MB, free: 10.53 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.001572/0.1315, allocations: 0.5417 MB / 361.4 MB, free: 9.938 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.1316, allocations: 11.97 kB / 361.4 MB, free: 9.926 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.049e-05/0.1317, allocations: 42.69 kB / 361.5 MB, free: 9.875 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007053/0.1324, allocations: 108.5 kB / 361.6 MB, free: 9.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001998/0.1326, allocations: 192.1 kB / 361.7 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.43e-05/0.1326, allocations: 12.38 kB / 361.8 MB, free: 9.531 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.47e-05/0.1327, allocations: 8.375 kB / 361.8 MB, free: 9.523 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004046/0.1331, allocations: 173.5 kB / 361.9 MB, free: 9.348 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.1331, allocations: 0 / 361.9 MB, free: 9.348 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.086e-05/0.1331, allocations: 8 kB / 361.9 MB, free: 9.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.618e-05/0.1331, allocations: 4 kB / 361.9 MB, free: 9.336 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004316/0.1336, allocations: 161 kB / 362.1 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001127/0.1347, allocations: 0.5742 MB / 362.7 MB, free: 8.555 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004528/0.1352, allocations: 170.6 kB / 362.8 MB, free: 8.379 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001913/0.1354, allocations: 72.81 kB / 362.9 MB, free: 8.305 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.486e-05/0.1354, allocations: 11.92 kB / 362.9 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.015e-05/0.1355, allocations: 34.56 kB / 363 MB, free: 8.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.684e-06/0.1355, allocations: 0 / 363 MB, free: 8.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006898/0.1362, allocations: 233.5 kB / 363.2 MB, free: 8.016 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.776e-05/0.1363, allocations: 59.34 kB / 363.2 MB, free: 7.945 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002117/0.1365, allocations: 202.2 kB / 363.4 MB, free: 7.734 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.732e-05/0.1365, allocations: 25.7 kB / 363.5 MB, free: 7.703 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.205e-05/0.1366, allocations: 123.9 kB / 363.6 MB, free: 7.578 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.392e-05/0.1367, allocations: 35.45 kB / 363.6 MB, free: 7.543 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.004e-05/0.1368, allocations: 37.62 kB / 363.7 MB, free: 7.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.1369, allocations: 330.8 kB / 364 MB, free: 7.168 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001738/0.1371, allocations: 59.97 kB / 364 MB, free: 7.109 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002069/0.1373, allocations: 101.1 kB / 364.1 MB, free: 6.992 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004057/0.1377, allocations: 181 kB / 364.3 MB, free: 6.797 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.1377, allocations: 0 / 364.3 MB, free: 6.797 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004763/0.1382, allocations: 213.2 kB / 364.5 MB, free: 6.582 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.1383, allocations: 11.28 kB / 364.5 MB, free: 6.574 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.1383, allocations: 0 / 364.5 MB, free: 6.574 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.805e-05/0.1383, allocations: 4 kB / 364.5 MB, free: 6.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001847/0.1385, allocations: 31.86 kB / 364.6 MB, free: 6.539 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.257e-05/0.1385, allocations: 4 kB / 364.6 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000145/0.1387, allocations: 23.83 kB / 364.6 MB, free: 6.512 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.823e-05/0.1387, allocations: 4 kB / 364.6 MB, free: 6.508 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.0001499/0.1389, allocations: 141.9 kB / 364.7 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.264e-05/0.1389, allocations: 19.78 kB / 364.8 MB, free: 6.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004972/0.1394, allocations: 198.8 kB / 365 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/0.1394, allocations: 4 kB / 365 MB, free: 6.137 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.1394, allocations: 0 / 365 MB, free: 6.137 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.1394, allocations: 0 / 365 MB, free: 6.137 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003467/0.1398, allocations: 257.5 kB / 365.2 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.496e-06/0.1398, allocations: 11.94 kB / 365.2 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001667/0.14, allocations: 23.98 kB / 365.2 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.299e-06/0.14, allocations: 0 / 365.2 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/0.14, allocations: 0 / 365.2 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.14, allocations: 0 / 365.2 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.14, allocations: 0 / 365.2 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004781/0.1405, allocations: 283.2 kB / 365.5 MB, free: 5.508 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001086/0.1406, allocations: 120.8 kB / 365.6 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.585e-05/0.1407, allocations: 0 / 365.6 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001415/0.1408, allocations: 8 kB / 365.6 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.34e-05/0.1409, allocations: 11.92 kB / 365.7 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.326e-05/0.1409, allocations: 7.984 kB / 365.7 MB, free: 5.344 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000127/0.141, allocations: 143.2 kB / 365.8 MB, free: 5.203 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.141, allocations: 4 kB / 365.8 MB, free: 5.199 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002777/0.1413, allocations: 24 kB / 365.8 MB, free: 5.176 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.0008617/0.1422, allocations: 0.8176 MB / 366.7 MB, free: 4.332 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004565/0.1427, allocations: 159.8 kB / 366.8 MB, free: 4.176 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.1427, allocations: 3.938 kB / 366.8 MB, free: 4.172 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001818/0.1429, allocations: 71.95 kB / 366.9 MB, free: 4.102 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000308/0.1432, allocations: 12.98 kB / 366.9 MB, free: 4.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003032/0.1462, allocations: 2.241 MB / 369.1 MB, free: 1.738 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003677/0.1466, allocations: 0.724 MB / 369.9 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001366/0.1468, allocations: 37.58 kB / 369.9 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.1469, allocations: 39.42 kB / 369.9 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1469, allocations: 3.938 kB / 369.9 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2177/0.3646, allocations: 3.387 MB / 373.3 MB, free: 20.08 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001629/0.3648, allocations: 209 kB / 373.5 MB, free: 19.83 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.895/2.26, allocations: 0 / 373.5 MB, free: 19.83 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