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.001064/0.001065, allocations: 114.9 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001168/0.001168, allocations: 205.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 59.91 kB / 358.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3197/0.321, allocations: 50.55 MB / 408.7 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.003236/0.3243, allocations: 1.711 MB / 410.4 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0015/0.3258, allocations: 0.7438 MB / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001262/0.326, allocations: 4 kB / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003479/0.3264, allocations: 47.73 kB / 411.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002721/0.3266, allocations: 39.7 kB / 411.3 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001162/0.3278, allocations: 0.4902 MB / 411.8 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003143/0.3281, allocations: 127.6 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001543/0.3283, allocations: 33.53 kB / 411.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001523/0.3285, allocations: 59.72 kB / 412 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002736/0.3288, allocations: 87.66 kB / 412.1 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.094e-05/0.3288, allocations: 8 kB / 412.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003046/0.3291, allocations: 127.8 kB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.349e-05/0.3292, allocations: 39.84 kB / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.961e-05/0.3293, allocations: 59.59 kB / 412.3 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000437/0.3297, allocations: 206.2 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3298, allocations: 0 / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3298, allocations: 0 / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.3298, allocations: 4 kB / 412.5 MB, free: 13.79 MB / 334.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.001401/0.3312, allocations: 0.5336 MB / 413 MB, free: 13.21 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.3312, allocations: 12.03 kB / 413 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.086e-05/0.3313, allocations: 42.73 kB / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007455/0.3321, allocations: 108.7 kB / 413.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00022/0.3323, allocations: 199.3 kB / 413.4 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.851e-05/0.3323, allocations: 8.375 kB / 413.4 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.737e-05/0.3324, allocations: 8.375 kB / 413.4 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000416/0.3328, allocations: 165.7 kB / 413.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.3328, allocations: 0 / 413.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.293e-05/0.3328, allocations: 8 kB / 413.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.628e-05/0.3329, allocations: 4 kB / 413.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004279/0.3333, allocations: 155.9 kB / 413.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001114/0.3344, allocations: 0.5665 MB / 414.3 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003931/0.3348, allocations: 138.6 kB / 414.4 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001757/0.335, allocations: 68.81 kB / 414.5 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.36e-05/0.3351, allocations: 8.188 kB / 414.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.723e-05/0.3351, allocations: 34.5 kB / 414.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.282e-06/0.3351, allocations: 7.875 kB / 414.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006126/0.3357, allocations: 213.4 kB / 414.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.02e-05/0.3358, allocations: 51.41 kB / 414.8 MB, free: 11.29 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002339/0.336, allocations: 215.4 kB / 415 MB, free: 11.07 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.812e-05/0.3361, allocations: 25.7 kB / 415 MB, free: 11.04 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001396/0.3362, allocations: 120.2 kB / 415.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.494e-05/0.3362, allocations: 39.69 kB / 415.2 MB, free: 10.88 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.344e-05/0.3363, allocations: 25.72 kB / 415.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.3364, allocations: 326.8 kB / 415.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001649/0.3366, allocations: 55.95 kB / 415.6 MB, free: 10.46 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001931/0.3368, allocations: 96.23 kB / 415.7 MB, free: 10.35 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003525/0.3372, allocations: 156.1 kB / 415.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3372, allocations: 0 / 415.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000431/0.3376, allocations: 197.3 kB / 416 MB, free: 9.984 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.3377, allocations: 6.969 kB / 416 MB, free: 9.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.3377, allocations: 4 kB / 416 MB, free: 9.977 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.3377, allocations: 0 / 416 MB, free: 9.977 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001723/0.3379, allocations: 32.45 kB / 416.1 MB, free: 9.945 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.3379, allocations: 8.109 kB / 416.1 MB, free: 9.938 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001266/0.338, allocations: 19.84 kB / 416.1 MB, free: 9.918 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.318e-05/0.338, allocations: 4 kB / 416.1 MB, free: 9.914 MB / 334.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.0001253/0.3382, allocations: 153.5 kB / 416.3 MB, free: 9.754 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.079e-05/0.3382, allocations: 15.84 kB / 416.3 MB, free: 9.738 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000454/0.3387, allocations: 182.9 kB / 416.5 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.3387, allocations: 8 kB / 416.5 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.3387, allocations: 0 / 416.5 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.3387, allocations: 0 / 416.5 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003077/0.339, allocations: 253.5 kB / 416.7 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.339, allocations: 3.938 kB / 416.7 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001584/0.3392, allocations: 23.98 kB / 416.7 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/0.3392, allocations: 4 kB / 416.7 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.3392, allocations: 3.984 kB / 416.7 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.3392, allocations: 0 / 416.7 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3393, allocations: 0 / 416.7 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004394/0.3397, allocations: 267.3 kB / 417 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/0.3398, allocations: 109 kB / 417.1 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.566e-05/0.3398, allocations: 0 / 417.1 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000148/0.34, allocations: 11.98 kB / 417.1 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.653e-05/0.3401, allocations: 7.938 kB / 417.1 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.33e-05/0.3401, allocations: 7.984 kB / 417.1 MB, free: 8.777 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001384/0.3402, allocations: 156.2 kB / 417.3 MB, free: 8.625 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3402, allocations: 0 / 417.3 MB, free: 8.625 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002861/0.3405, allocations: 31.89 kB / 417.3 MB, free: 8.594 MB / 334.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.0007805/0.3413, allocations: 0.806 MB / 418.1 MB, free: 7.762 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004112/0.3417, allocations: 132.1 kB / 418.3 MB, free: 7.633 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.3417, allocations: 4 kB / 418.3 MB, free: 7.629 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001711/0.3419, allocations: 68.14 kB / 418.3 MB, free: 7.562 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003019/0.3422, allocations: 19.98 kB / 418.4 MB, free: 7.543 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002866/0.3451, allocations: 2.139 MB / 420.5 MB, free: 5.301 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003222/0.3454, allocations: 0.7317 MB / 421.2 MB, free: 4.543 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000107/0.3456, allocations: 25.59 kB / 421.2 MB, free: 4.52 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.415e-05/0.3457, allocations: 51.36 kB / 421.3 MB, free: 4.469 MB / 334.1 MB Notification: Performance of SimCode: time 6.62e-07/0.3457, allocations: 3.938 kB / 421.3 MB, free: 4.465 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02091/0.3666, allocations: 3.442 MB / 424.7 MB, free: 1.125 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.039/8.405, allocations: 11.94 kB / 424.8 MB, free: 1.113 MB / 334.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 & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_ComplexBlocks_Examples_ShowTransferFunction.fmu > Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction_res.csv","/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) Reference file matches