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.001179/0.001179, allocations: 102.1 kB / 16.62 MB, free: 6.809 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.001055/0.001055, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.454/1.454, allocations: 222.9 MB / 241.2 MB, free: 13.69 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 46.05 kB / 300.2 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1284, allocations: 49.45 MB / 349.7 MB, free: 4.418 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.003075/0.1315, allocations: 1.678 MB / 351.4 MB, free: 2.723 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001107/0.1327, allocations: 0.631 MB / 352 MB, free: 2.086 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.787e-05/0.1327, allocations: 4 kB / 352 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002783/0.133, allocations: 47.83 kB / 352 MB, free: 2.035 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001747/0.1332, allocations: 19.86 kB / 352.1 MB, free: 2.016 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001147/0.1344, allocations: 0.5722 MB / 352.6 MB, free: 1.441 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001861/0.1346, allocations: 111.6 kB / 352.7 MB, free: 1.332 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001217/0.1347, allocations: 29.09 kB / 352.8 MB, free: 1.301 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001602/0.1349, allocations: 55.83 kB / 352.8 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001811/0.135, allocations: 83.61 kB / 352.9 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.472e-05/0.1351, allocations: 12 kB / 352.9 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002081/0.1353, allocations: 143.8 kB / 353.1 MB, free: 1.012 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.385e-05/0.1354, allocations: 35.89 kB / 353.1 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.214e-05/0.1355, allocations: 55.61 kB / 353.1 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003284/0.1358, allocations: 223.7 kB / 353.4 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1358, allocations: 3.938 kB / 353.4 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.1358, allocations: 0 / 353.4 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.143e-06/0.1358, allocations: 0 / 353.4 MB, free: 0.6992 MB / 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.001596/0.1374, allocations: 0.5613 MB / 353.9 MB, free: 92 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.1375, allocations: 8.031 kB / 353.9 MB, free: 84 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.78e-05/0.1375, allocations: 46.73 kB / 354 MB, free: 28 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001391/0.1389, allocations: 176.5 kB / 354.2 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001822/0.1391, allocations: 200 kB / 354.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.701e-05/0.1392, allocations: 4.375 kB / 354.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.002e-05/0.1392, allocations: 12.38 kB / 354.4 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004164/0.1396, allocations: 181.7 kB / 354.5 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.1396, allocations: 8 kB / 354.6 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.875e-05/0.1397, allocations: 3.938 kB / 354.6 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.634e-05/0.1397, allocations: 8 kB / 354.6 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004198/0.1401, allocations: 167.9 kB / 354.7 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009939/0.1411, allocations: 0.5392 MB / 355.3 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003831/0.1415, allocations: 182.4 kB / 355.4 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002309/0.1418, allocations: 96.8 kB / 355.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.597e-05/0.1418, allocations: 0 / 355.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.787e-05/0.1418, allocations: 46.55 kB / 355.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.273e-06/0.1418, allocations: 0 / 355.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.000747/0.1426, allocations: 283.9 kB / 355.9 MB, free: 14.03 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/0.1426, allocations: 51.41 kB / 355.9 MB, free: 13.97 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001617/0.1428, allocations: 187.3 kB / 356.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.14e-05/0.1429, allocations: 29.7 kB / 356.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.216e-05/0.1429, allocations: 112 kB / 356.2 MB, free: 13.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.274e-05/0.143, allocations: 55.2 kB / 356.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.685e-05/0.1431, allocations: 33.7 kB / 356.3 MB, free: 13.53 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.1432, allocations: 322.8 kB / 356.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001814/0.1434, allocations: 71.94 kB / 356.7 MB, free: 13.13 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002147/0.1436, allocations: 109.9 kB / 356.8 MB, free: 13.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003977/0.144, allocations: 187.4 kB / 357 MB, free: 12.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.144, allocations: 0 / 357 MB, free: 12.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004861/0.1445, allocations: 237.3 kB / 357.2 MB, free: 12.58 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.1445, allocations: 7.938 kB / 357.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.1445, allocations: 0 / 357.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.1446, allocations: 4 kB / 357.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002382/0.1448, allocations: 39.91 kB / 357.3 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.1448, allocations: 0 / 357.3 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001445/0.145, allocations: 19.83 kB / 357.3 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.151e-05/0.145, allocations: 11.98 kB / 357.3 MB, free: 12.5 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.0001097/0.1451, allocations: 133.8 kB / 357.4 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.803e-05/0.1452, allocations: 15.83 kB / 357.5 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005876/0.1458, allocations: 266.9 kB / 357.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.1458, allocations: 4 kB / 357.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/0.1458, allocations: 0 / 357.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.1458, allocations: 0 / 357.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003204/0.1461, allocations: 285.4 kB / 358 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.1461, allocations: 4 kB / 358 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002206/0.1464, allocations: 35.97 kB / 358 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.569e-06/0.1464, allocations: 3.938 kB / 358 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.154e-05/0.1464, allocations: 11.98 kB / 358.1 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.1464, allocations: 3.938 kB / 358.1 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.1464, allocations: 0 / 358.1 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005445/0.147, allocations: 330 kB / 358.4 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.973e-05/0.147, allocations: 96.86 kB / 358.5 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.259e-05/0.1471, allocations: 7.938 kB / 358.5 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001621/0.1472, allocations: 7.984 kB / 358.5 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.467e-05/0.1473, allocations: 27.86 kB / 358.5 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.563e-05/0.1473, allocations: 4 kB / 358.5 MB, free: 11.19 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001096/0.1475, allocations: 135.9 kB / 358.7 MB, free: 11.05 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1475, allocations: 0 / 358.7 MB, free: 11.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002726/0.1477, allocations: 28 kB / 358.7 MB, free: 11.03 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.0008292/0.1486, allocations: 0.8722 MB / 359.6 MB, free: 10.13 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004986/0.1491, allocations: 211.7 kB / 359.8 MB, free: 9.922 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1491, allocations: 0 / 359.8 MB, free: 9.922 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000221/0.1493, allocations: 110.6 kB / 359.9 MB, free: 9.816 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002992/0.1496, allocations: 12 kB / 359.9 MB, free: 9.805 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002805/0.1524, allocations: 2.224 MB / 362.1 MB, free: 7.488 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002872/0.1528, allocations: 0.7319 MB / 362.8 MB, free: 6.73 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001366/0.1529, allocations: 33.41 kB / 362.9 MB, free: 6.699 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001172/0.153, allocations: 55.39 kB / 362.9 MB, free: 6.645 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.153, allocations: 3.938 kB / 362.9 MB, free: 6.641 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01533/0.1684, allocations: 3.741 MB / 366.7 MB, free: 3.031 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003063/0.1687, allocations: 206.4 kB / 366.9 MB, free: 2.773 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.979/2.148, allocations: 0 / 366.9 MB, free: 2.773 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