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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009026/0.0009026, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009515/0.0009515, allocations: 157 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8834/0.8834, allocations: 173.3 MB / 200.4 MB, free: 9.445 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.944e-06/1.944e-06, allocations: 0 / 318.4 MB, free: 6.395 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.528e-05/2.722e-05, allocations: 5.516 kB / 318.4 MB, free: 6.391 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.004299/0.004326, allocations: 1.593 MB / 320 MB, free: 4.781 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.005428, allocations: 0.6037 MB / 320.6 MB, free: 4.172 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.004e-05/0.005498, allocations: 4 kB / 320.6 MB, free: 4.168 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002872/0.005785, allocations: 59.58 kB / 320.7 MB, free: 4.109 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002168/0.006002, allocations: 31.73 kB / 320.7 MB, free: 4.078 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008062/0.006808, allocations: 0.56 MB / 321.2 MB, free: 3.516 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002225/0.007031, allocations: 115.7 kB / 321.4 MB, free: 3.402 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001098/0.007141, allocations: 17.28 kB / 321.4 MB, free: 3.383 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001609/0.007301, allocations: 87.73 kB / 321.5 MB, free: 3.297 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001347/0.007436, allocations: 71.78 kB / 321.5 MB, free: 3.227 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.312e-05/0.007459, allocations: 8 kB / 321.5 MB, free: 3.219 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001816/0.007641, allocations: 95.86 kB / 321.6 MB, free: 3.125 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.786e-05/0.007699, allocations: 39.84 kB / 321.7 MB, free: 3.086 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.808e-05/0.007737, allocations: 27.92 kB / 321.7 MB, free: 3.059 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003133/0.00805, allocations: 231.2 kB / 321.9 MB, free: 2.832 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.008054, allocations: 4 kB / 321.9 MB, free: 2.828 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.008056, allocations: 0 / 321.9 MB, free: 2.828 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.069e-06/0.008061, allocations: 0 / 321.9 MB, free: 2.828 MB / 282.7 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.001053/0.009114, allocations: 496.6 kB / 322.4 MB, free: 2.316 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.009158, allocations: 8.922 kB / 322.4 MB, free: 2.309 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.255e-05/0.0092, allocations: 46.73 kB / 322.5 MB, free: 2.254 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006784/0.009879, allocations: 172.6 kB / 322.6 MB, free: 2.086 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002021/0.01008, allocations: 165.5 kB / 322.8 MB, free: 1.898 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/0.0101, allocations: 8.375 kB / 322.8 MB, free: 1.891 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.721e-05/0.01012, allocations: 4.375 kB / 322.8 MB, free: 1.887 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002849/0.0104, allocations: 184 kB / 323 MB, free: 1.703 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.01041, allocations: 4.188 kB / 323 MB, free: 1.699 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.497e-05/0.01043, allocations: 4.125 kB / 323 MB, free: 1.695 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.956e-05/0.01044, allocations: 4 kB / 323 MB, free: 1.691 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002436/0.01069, allocations: 167.9 kB / 323.2 MB, free: 1.527 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006693/0.01136, allocations: 483.4 kB / 323.6 MB, free: 1.012 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002462/0.0116, allocations: 154.4 kB / 323.8 MB, free: 0.8516 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001217/0.01173, allocations: 84.8 kB / 323.9 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.507e-05/0.01175, allocations: 8 kB / 323.9 MB, free: 0.7578 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.682e-05/0.01178, allocations: 38.55 kB / 323.9 MB, free: 0.7109 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 1.382e-06/0.01178, allocations: 0 / 323.9 MB, free: 0.7109 MB / 282.7 MB Notification: Performance of matching and sorting (n=13): time 0.0004511/0.01223, allocations: 269.3 kB / 324.2 MB, free: 456 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.206e-05/0.01226, allocations: 51.41 kB / 324.2 MB, free: 392 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.01239, allocations: 186.2 kB / 324.4 MB, free: 196 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.936e-05/0.01241, allocations: 37.69 kB / 324.4 MB, free: 152 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.691e-05/0.01248, allocations: 104.4 kB / 324.6 MB, free: 40 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.728e-05/0.01252, allocations: 51.73 kB / 324.6 MB, free: 15.98 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.297e-05/0.01257, allocations: 41.64 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.309e-05/0.01265, allocations: 322.8 kB / 325 MB, free: 15.61 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001155/0.01277, allocations: 71.89 kB / 325 MB, free: 15.54 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001351/0.0129, allocations: 86.52 kB / 325.1 MB, free: 15.45 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002304/0.01313, allocations: 170.4 kB / 325.3 MB, free: 15.27 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.01314, allocations: 4 kB / 325.3 MB, free: 15.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002877/0.01342, allocations: 209.5 kB / 325.5 MB, free: 15.06 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.01344, allocations: 4 kB / 325.5 MB, free: 15.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.01345, allocations: 0 / 325.5 MB, free: 15.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.01346, allocations: 3.938 kB / 325.5 MB, free: 15.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001361/0.0136, allocations: 35.97 kB / 325.5 MB, free: 15.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.0136, allocations: 0 / 325.5 MB, free: 15.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.109e-05/0.01367, allocations: 31.89 kB / 325.6 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.227e-05/0.01369, allocations: 4 kB / 325.6 MB, free: 14.98 MB / 298.7 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.312e-05/0.01378, allocations: 133.8 kB / 325.7 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.519e-05/0.0138, allocations: 11.95 kB / 325.7 MB, free: 14.83 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003671/0.01417, allocations: 249.7 kB / 326 MB, free: 14.59 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.01418, allocations: 7.938 kB / 326 MB, free: 14.58 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.01418, allocations: 3.984 kB / 326 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.01419, allocations: 4 kB / 326 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002009/0.01439, allocations: 216.6 kB / 326.2 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.01439, allocations: 4 kB / 326.2 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001088/0.0145, allocations: 43.91 kB / 326.2 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.0145, allocations: 0 / 326.2 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.01451, allocations: 4 kB / 326.2 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.01452, allocations: 3.938 kB / 326.2 MB, free: 14.26 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.01452, allocations: 0 / 326.2 MB, free: 14.26 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003239/0.01484, allocations: 327.1 kB / 326.6 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.467e-05/0.01487, allocations: 23.83 kB / 326.6 MB, free: 13.9 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.942e-05/0.01489, allocations: 4 kB / 326.6 MB, free: 13.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.631e-05/0.01496, allocations: 19.86 kB / 326.6 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.86e-05/0.01501, allocations: 11.98 kB / 326.6 MB, free: 13.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.328e-06/0.01502, allocations: 7.984 kB / 326.6 MB, free: 13.86 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.097e-05/0.0151, allocations: 144.2 kB / 326.8 MB, free: 13.72 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0151, allocations: 0 / 326.8 MB, free: 13.72 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001985/0.0153, allocations: 24 kB / 326.8 MB, free: 13.7 MB / 298.7 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.0005781/0.01588, allocations: 0.8567 MB / 327.6 MB, free: 12.81 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002899/0.01617, allocations: 166.2 kB / 327.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.01617, allocations: 3.938 kB / 327.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001148/0.01628, allocations: 96 kB / 327.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002338/0.01652, allocations: 27.8 kB / 327.9 MB, free: 12.53 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001935/0.01845, allocations: 2.135 MB / 330.1 MB, free: 10.3 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.519e-05/0.01855, allocations: 123.2 kB / 330.2 MB, free: 10.16 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001005/0.01865, allocations: 33.47 kB / 330.2 MB, free: 10.12 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.444e-05/0.01874, allocations: 52.47 kB / 330.3 MB, free: 10.07 MB / 298.7 MB Notification: Performance of SimCode: time 8.02e-07/0.01874, allocations: 0 / 330.3 MB, free: 10.07 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0227/0.04145, allocations: 4.598 MB / 334.9 MB, free: 5.613 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.772/6.814, allocations: 0.75 kB / 334.9 MB, free: 5.613 MB / 298.7 MB " [Timeout remaining time 653] (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 --stepSize=0.001 --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) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/ComplexBlocks/Examples/ShowTransferFunction/ShowTransferFunction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.479921692050993]