Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.ShowTransferFunction,fileNamePrefix="Modelica_4_0_0_Modelica_ComplexBlocks_Examples_ShowTransferFunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.ShowTransferFunction,fileNamePrefix="Modelica_4_0_0_Modelica_ComplexBlocks_Examples_ShowTransferFunction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009056/0.0009057, allocations: 93.27 kB / 16.65 MB, free: 6.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 181.4 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.495/1.495, allocations: 223.3 MB / 241.6 MB, free: 128 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003254/0.0003253, allocations: 8 kB / 301.5 MB, free: 6.055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.117, allocations: 50.42 MB / 351.9 MB, free: 3.629 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.001971/0.1191, allocations: 1.346 MB / 353.3 MB, free: 2.27 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001245/0.1203, allocations: 0.635 MB / 353.9 MB, free: 1.629 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.283e-05/0.1204, allocations: 0 / 353.9 MB, free: 1.629 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002663/0.1207, allocations: 47.84 kB / 354 MB, free: 1.582 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002032/0.1209, allocations: 23.86 kB / 354 MB, free: 1.559 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00121/0.1222, allocations: 0.5678 MB / 354.5 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002323/0.1224, allocations: 111.6 kB / 354.7 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001291/0.1225, allocations: 25.11 kB / 354.7 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002149/0.1228, allocations: 47.83 kB / 354.7 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002144/0.123, allocations: 75.61 kB / 354.8 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.972e-05/0.123, allocations: 4 kB / 354.8 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002838/0.1233, allocations: 139.8 kB / 354.9 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.845e-05/0.1234, allocations: 27.91 kB / 355 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.417e-05/0.1235, allocations: 85.3 kB / 355.1 MB, free: 488 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004089/0.1239, allocations: 207.7 kB / 355.3 MB, free: 280 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.1239, allocations: 3.938 kB / 355.3 MB, free: 276 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.124, allocations: 0 / 355.3 MB, free: 276 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.124, allocations: 0 / 355.3 MB, free: 276 kB / 286.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.001771/0.1257, allocations: 0.5457 MB / 355.8 MB, free: 15.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.784e-05/0.1258, allocations: 8.031 kB / 355.8 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.094e-05/0.1259, allocations: 42.75 kB / 355.9 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001368/0.1273, allocations: 172.5 kB / 356 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001786/0.1275, allocations: 202.8 kB / 356.2 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.426e-05/0.1275, allocations: 12.31 kB / 356.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.919e-05/0.1275, allocations: 4.375 kB / 356.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004214/0.128, allocations: 193.7 kB / 356.4 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.128, allocations: 7.938 kB / 356.4 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.184e-05/0.128, allocations: 4 kB / 356.4 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.749e-05/0.1281, allocations: 8 kB / 356.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004288/0.1285, allocations: 175.9 kB / 356.6 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009712/0.1295, allocations: 0.5469 MB / 357.2 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004349/0.1299, allocations: 178.4 kB / 357.3 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002459/0.1302, allocations: 108.8 kB / 357.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.778e-05/0.1302, allocations: 4.125 kB / 357.5 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.044e-05/0.1303, allocations: 34.56 kB / 357.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.693e-06/0.1303, allocations: 0 / 357.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008048/0.1311, allocations: 305.4 kB / 357.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.835e-05/0.1311, allocations: 51.41 kB / 357.8 MB, free: 13.51 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000186/0.1313, allocations: 180.3 kB / 358 MB, free: 13.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.444e-05/0.1314, allocations: 33.7 kB / 358 MB, free: 13.28 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.947e-05/0.1315, allocations: 112 kB / 358.2 MB, free: 13.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.39e-05/0.1315, allocations: 59.19 kB / 358.2 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.287e-05/0.1316, allocations: 21.7 kB / 358.2 MB, free: 13.08 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.1317, allocations: 322.8 kB / 358.5 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002016/0.1319, allocations: 75.95 kB / 358.6 MB, free: 12.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000214/0.1321, allocations: 107.4 kB / 358.7 MB, free: 12.56 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004129/0.1326, allocations: 199.3 kB / 358.9 MB, free: 12.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1326, allocations: 0 / 358.9 MB, free: 12.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0005215/0.1331, allocations: 244.9 kB / 359.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.1331, allocations: 11.94 kB / 359.2 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.1331, allocations: 0 / 359.2 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.1332, allocations: 0 / 359.2 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002494/0.1334, allocations: 43.89 kB / 359.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.169e-05/0.1334, allocations: 4 kB / 359.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001577/0.1336, allocations: 23.83 kB / 359.2 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.743e-05/0.1336, allocations: 7.938 kB / 359.2 MB, free: 12.02 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (16): * Single equations (assignments): 15 * 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.000122/0.1338, allocations: 133.9 kB / 359.4 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.781e-05/0.1338, allocations: 15.75 kB / 359.4 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006181/0.1344, allocations: 271 kB / 359.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.526e-06/0.1344, allocations: 7.984 kB / 359.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.1345, allocations: 0 / 359.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.1345, allocations: 0 / 359.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003242/0.1348, allocations: 289.3 kB / 359.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.1348, allocations: 0 / 359.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000222/0.135, allocations: 43.95 kB / 360 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/0.1351, allocations: 7.938 kB / 360 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.592e-05/0.1351, allocations: 4 kB / 360 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.131e-06/0.1351, allocations: 7.938 kB / 360 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1351, allocations: 4 kB / 360 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005452/0.1356, allocations: 331.2 kB / 360.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.926e-05/0.1357, allocations: 96.94 kB / 360.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.965e-05/0.1358, allocations: 11.94 kB / 360.4 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001688/0.1359, allocations: 15.98 kB / 360.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.757e-05/0.136, allocations: 11.98 kB / 360.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.641e-05/0.136, allocations: 7.984 kB / 360.5 MB, free: 10.69 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001087/0.1361, allocations: 132 kB / 360.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1361, allocations: 0 / 360.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002984/0.1364, allocations: 35.89 kB / 360.6 MB, free: 10.52 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 (19): * Single equations (assignments): 18 * 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.0008539/0.1373, allocations: 0.8903 MB / 361.5 MB, free: 9.609 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004852/0.1378, allocations: 195.8 kB / 361.7 MB, free: 9.418 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1378, allocations: 192 / 361.7 MB, free: 9.418 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002351/0.1381, allocations: 115.9 kB / 361.8 MB, free: 9.305 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003017/0.1384, allocations: 23.06 kB / 361.9 MB, free: 9.285 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00283/0.1412, allocations: 2.258 MB / 364.1 MB, free: 6.934 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002726/0.1415, allocations: 0.7205 MB / 364.8 MB, free: 6.188 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001271/0.1416, allocations: 33.41 kB / 364.9 MB, free: 6.156 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001239/0.1418, allocations: 55.41 kB / 364.9 MB, free: 6.102 MB / 302.1 MB Notification: Performance of SimCode: time 8.71e-07/0.1418, allocations: 0 / 364.9 MB, free: 6.102 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01421/0.156, allocations: 3.544 MB / 368.5 MB, free: 2.699 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001922/0.1562, allocations: 207.9 kB / 368.7 MB, free: 2.441 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.864/2.02, allocations: 4 kB / 368.7 MB, free: 2.438 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe ; mkfifo Modelica_4.0.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe >> ../files/Modelica_4.0.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_ComplexBlocks_Examples_ShowTransferFunction_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_ComplexBlocks_Examples_ShowTransferFunction.fmu > Modelica_4.0.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches