Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_ComplexBlocks_Examples_ShowTransferFunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.ShowTransferFunction,fileNamePrefix="Modelica_3_2_3_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.001584/0.001584, allocations: 110.4 kB / 17.73 MB, free: 5.34 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.001809/0.001809, allocations: 183.1 kB / 18.66 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.577/1.577, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001487, allocations: 43.94 kB / 328 MB, free: 3.836 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1149, allocations: 46.62 MB / 374.6 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.003473/0.1184, allocations: 1.6 MB / 376.2 MB, free: 3.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001581/0.1201, allocations: 0.6909 MB / 376.9 MB, free: 2.801 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001272/0.1202, allocations: 0 / 376.9 MB, free: 2.801 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003312/0.1206, allocations: 43.73 kB / 376.9 MB, free: 2.758 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002724/0.1209, allocations: 43.72 kB / 377 MB, free: 2.715 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00146/0.1224, allocations: 0.5914 MB / 377.6 MB, free: 2.121 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003171/0.1227, allocations: 107.7 kB / 377.7 MB, free: 2.016 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001384/0.1228, allocations: 37.05 kB / 377.7 MB, free: 1.98 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001904/0.1231, allocations: 75.7 kB / 377.8 MB, free: 1.906 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002133/0.1233, allocations: 79.66 kB / 377.9 MB, free: 1.828 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.514e-05/0.1233, allocations: 12 kB / 377.9 MB, free: 1.816 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002774/0.1236, allocations: 123.8 kB / 378 MB, free: 1.695 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.674e-05/0.1237, allocations: 35.89 kB / 378 MB, free: 1.66 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.341e-05/0.1238, allocations: 63.59 kB / 378.1 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004251/0.1242, allocations: 219.2 kB / 378.3 MB, free: 1.383 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1242, allocations: 0 / 378.3 MB, free: 1.383 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.118e-06/0.1243, allocations: 3.938 kB / 378.3 MB, free: 1.379 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.1243, allocations: 3.938 kB / 378.3 MB, free: 1.375 MB / 318.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.001954/0.1262, allocations: 0.5571 MB / 378.9 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.515e-05/0.1263, allocations: 12.03 kB / 378.9 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.641e-05/0.1264, allocations: 42.73 kB / 378.9 MB, free: 0.707 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001393/0.1278, allocations: 180.6 kB / 379.1 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002323/0.128, allocations: 180.2 kB / 379.3 MB, free: 324 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.357e-05/0.1281, allocations: 16.17 kB / 379.3 MB, free: 308 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.554e-05/0.1281, allocations: 12.38 kB / 379.3 MB, free: 296 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004692/0.1286, allocations: 181.7 kB / 379.5 MB, free: 108 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.1286, allocations: 0 / 379.5 MB, free: 108 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.05e-05/0.1287, allocations: 0 / 379.5 MB, free: 108 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.282e-05/0.1287, allocations: 12 kB / 379.5 MB, free: 96 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2189/0.3476, allocations: 170.2 kB / 379.7 MB, free: 13.04 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001052/0.3487, allocations: 0.5385 MB / 380.2 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003726/0.3491, allocations: 162.6 kB / 380.4 MB, free: 12.74 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002271/0.3493, allocations: 92.64 kB / 380.5 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.333e-05/0.3493, allocations: 6.125 kB / 380.5 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.309e-05/0.3494, allocations: 38.09 kB / 380.5 MB, free: 12.7 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 2.053e-06/0.3494, allocations: 0.8438 kB / 380.5 MB, free: 12.7 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007063/0.3501, allocations: 257.1 kB / 380.8 MB, free: 12.66 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.273e-05/0.3501, allocations: 55.5 kB / 380.8 MB, free: 12.59 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001717/0.3503, allocations: 187.9 kB / 381 MB, free: 12.5 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.571e-05/0.3503, allocations: 25.7 kB / 381 MB, free: 12.46 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.604e-05/0.3504, allocations: 116.5 kB / 381.1 MB, free: 12.37 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.531e-05/0.3504, allocations: 41.52 kB / 381.2 MB, free: 12.35 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.406e-05/0.3505, allocations: 35.89 kB / 381.2 MB, free: 12.33 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.479e-05/0.3506, allocations: 327 kB / 381.5 MB, free: 12.02 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001841/0.3508, allocations: 70.05 kB / 381.6 MB, free: 12.02 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001959/0.351, allocations: 90.86 kB / 381.7 MB, free: 12 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003817/0.3514, allocations: 169.6 kB / 381.8 MB, free: 11.97 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3514, allocations: 0.8125 kB / 381.9 MB, free: 11.97 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005041/0.3519, allocations: 212.6 kB / 382.1 MB, free: 11.93 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/0.3519, allocations: 5.891 kB / 382.1 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.352, allocations: 1.031 kB / 382.1 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.455e-05/0.352, allocations: 6.656 kB / 382.1 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002879/0.3523, allocations: 37.59 kB / 382.1 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.435e-06/0.3523, allocations: 1.594 kB / 382.1 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001426/0.3524, allocations: 17.44 kB / 382.1 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.379e-05/0.3525, allocations: 14.09 kB / 382.1 MB, free: 11.93 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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): 15 * 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 9.345e-05/0.3526, allocations: 130 kB / 382.3 MB, free: 11.81 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.408e-05/0.3526, allocations: 16.95 kB / 382.3 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006682/0.3533, allocations: 253.8 kB / 382.5 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.3533, allocations: 7.172 kB / 382.5 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.3533, allocations: 0.5 kB / 382.5 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.3533, allocations: 5.125 kB / 382.5 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003232/0.3537, allocations: 270.8 kB / 382.8 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.3537, allocations: 0.625 kB / 382.8 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002464/0.3539, allocations: 38.7 kB / 382.8 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.354, allocations: 1.25 kB / 382.8 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.205e-05/0.354, allocations: 7.422 kB / 382.9 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.354, allocations: 5.734 kB / 382.9 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.354, allocations: 0.5 kB / 382.9 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005461/0.3545, allocations: 327.6 kB / 383.2 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.569e-05/0.3546, allocations: 94.75 kB / 383.3 MB, free: 11.19 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.131e-05/0.3546, allocations: 5.641 kB / 383.3 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001612/0.3548, allocations: 16.33 kB / 383.3 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.325e-05/0.3549, allocations: 11.31 kB / 383.3 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.701e-05/0.3549, allocations: 9.859 kB / 383.3 MB, free: 11.18 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001084/0.355, allocations: 150.3 kB / 383.5 MB, free: 11.08 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.355, allocations: 2.312 kB / 383.5 MB, free: 11.08 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002841/0.3553, allocations: 28.83 kB / 383.5 MB, free: 11.07 MB / 318.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 (18): * Single equations (assignments): 18 * 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.0006862/0.356, allocations: 0.8527 MB / 384.3 MB, free: 10.35 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004626/0.3565, allocations: 179.2 kB / 384.5 MB, free: 10.3 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.3565, allocations: 0 / 384.5 MB, free: 10.3 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002123/0.3567, allocations: 98.36 kB / 384.6 MB, free: 10.27 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000295/0.357, allocations: 24.89 kB / 384.6 MB, free: 10.25 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002497/0.3595, allocations: 2.122 MB / 386.8 MB, free: 8.73 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001728/0.3597, allocations: 0.7214 MB / 387.5 MB, free: 8.035 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000121/0.3598, allocations: 35.27 kB / 387.5 MB, free: 8.031 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001064/0.36, allocations: 57.02 kB / 387.6 MB, free: 7.992 MB / 318.1 MB Notification: Performance of SimCode: time 3.7e-07/0.36, allocations: 1.094 kB / 387.6 MB, free: 7.992 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02059/0.3806, allocations: 3.813 MB / 391.4 MB, free: 7.336 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.563/8.944, allocations: 21.11 kB / 391.4 MB, free: 7.316 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe ; mkfifo Modelica_3.2.3_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe >> ../files/Modelica_3.2.3_Modelica.ComplexBlocks.Examples.ShowTransferFunction.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.ComplexBlocks.Examples.ShowTransferFunction_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_ComplexBlocks_Examples_ShowTransferFunction.fmu > Modelica_3.2.3_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.ComplexBlocks.Examples.ShowTransferFunction_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/ComplexBlocks/Examples/ShowTransferFunction/ShowTransferFunction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.ComplexBlocks.Examples.ShowTransferFunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches