Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001331/0.001331, allocations: 120.1 kB / 18.49 MB, free: 4.562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001596/0.001596, allocations: 215.1 kB / 21.45 MB, free: 1.617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.53/1.53, allocations: 230.6 MB / 254.8 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.ShowTransferFunction,fileNamePrefix="Modelica_4_1_0_Modelica_ComplexBlocks_Examples_ShowTransferFunction",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.ShowTransferFunction,fileNamePrefix="Modelica_4_1_0_Modelica_ComplexBlocks_Examples_ShowTransferFunction",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00156/0.00156, allocations: 51.94 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1201, allocations: 53.32 MB / 427 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.003471/0.1236, allocations: 1.702 MB / 428.7 MB, free: 3.102 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001705/0.1253, allocations: 0.7788 MB / 429.5 MB, free: 2.316 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.825e-05/0.1254, allocations: 4 kB / 429.5 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003294/0.1257, allocations: 47.73 kB / 429.5 MB, free: 2.266 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002517/0.1259, allocations: 43.7 kB / 429.6 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00111/0.1271, allocations: 0.498 MB / 430.1 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002595/0.1273, allocations: 127.5 kB / 430.2 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001237/0.1274, allocations: 17.55 kB / 430.2 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001143/0.1276, allocations: 67.7 kB / 430.3 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002267/0.1278, allocations: 87.66 kB / 430.4 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.758e-05/0.1278, allocations: 12 kB / 430.4 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002681/0.1281, allocations: 123.9 kB / 430.5 MB, free: 1.293 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.873e-05/0.1281, allocations: 35.91 kB / 430.5 MB, free: 1.258 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.304e-05/0.1282, allocations: 63.58 kB / 430.6 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003429/0.1286, allocations: 207.1 kB / 430.8 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1286, allocations: 0 / 430.8 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1286, allocations: 0 / 430.8 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.1286, allocations: 3.938 kB / 430.8 MB, free: 0.9883 MB / 350.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.0014/0.13, allocations: 0.5375 MB / 431.3 MB, free: 412 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.13, allocations: 8.031 kB / 431.3 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.481e-05/0.13, allocations: 4.188 kB / 431.3 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.141e-05/0.1301, allocations: 42.73 kB / 431.4 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006775/0.1308, allocations: 104.7 kB / 431.5 MB, free: 244 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2274/0.3582, allocations: 223.8 kB / 431.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.842e-05/0.3582, allocations: 6.25 kB / 431.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.897e-05/0.3583, allocations: 10.28 kB / 431.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004888/0.3588, allocations: 155.6 kB / 431.9 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.3588, allocations: 0.6875 kB / 431.9 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.936e-05/0.3588, allocations: 4.188 kB / 431.9 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.687e-05/0.3588, allocations: 6.922 kB / 431.9 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004409/0.3593, allocations: 155.9 kB / 432 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000985/0.3602, allocations: 0.5626 MB / 432.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003964/0.3606, allocations: 137.9 kB / 432.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001707/0.3608, allocations: 62.12 kB / 432.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.363e-05/0.3608, allocations: 4.922 kB / 432.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.02e-05/0.3609, allocations: 39.97 kB / 432.8 MB, free: 10.67 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 2.435e-06/0.3609, allocations: 1.312 kB / 432.8 MB, free: 10.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006428/0.3615, allocations: 209.7 kB / 433 MB, free: 10.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.259e-05/0.3615, allocations: 53.16 kB / 433.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002045/0.3617, allocations: 211.8 kB / 433.3 MB, free: 10.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.713e-05/0.3618, allocations: 29.89 kB / 433.3 MB, free: 10.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.575e-05/0.3618, allocations: 126.2 kB / 433.5 MB, free: 10.33 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.396e-05/0.3618, allocations: 35.03 kB / 433.5 MB, free: 10.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.218e-05/0.3619, allocations: 36.3 kB / 433.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.954e-05/0.362, allocations: 324.7 kB / 433.8 MB, free: 9.984 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000162/0.3621, allocations: 58.78 kB / 433.9 MB, free: 9.984 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001718/0.3623, allocations: 93.16 kB / 434 MB, free: 9.945 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003142/0.3626, allocations: 158.6 kB / 434.1 MB, free: 9.906 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.3626, allocations: 0 / 434.1 MB, free: 9.906 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003734/0.363, allocations: 193.4 kB / 434.3 MB, free: 9.867 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.363, allocations: 6.953 kB / 434.3 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.363, allocations: 0.5625 kB / 434.3 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.363, allocations: 2.125 kB / 434.3 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001703/0.3632, allocations: 31.36 kB / 434.4 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/0.3632, allocations: 7.594 kB / 434.4 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001178/0.3633, allocations: 25.64 kB / 434.4 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.281e-05/0.3633, allocations: 6.719 kB / 434.4 MB, free: 9.859 MB / 350.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 7.771e-05/0.3634, allocations: 130 kB / 434.5 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.976e-05/0.3635, allocations: 14.19 kB / 434.6 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004359/0.3639, allocations: 190.8 kB / 434.7 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.3639, allocations: 1.125 kB / 434.7 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.3639, allocations: 5.625 kB / 434.7 MB, free: 9.695 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.3639, allocations: 0 / 434.7 MB, free: 9.695 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002133/0.3641, allocations: 253.2 kB / 435 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3641, allocations: 0.9844 kB / 435 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001542/0.3643, allocations: 25.05 kB / 435 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.3643, allocations: 0 / 435 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.3643, allocations: 1 kB / 435 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.3643, allocations: 1.938 kB / 435 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.3643, allocations: 7.875 kB / 435 MB, free: 9.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003863/0.3647, allocations: 264.5 kB / 435.3 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.357e-05/0.3647, allocations: 108.8 kB / 435.4 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.294e-05/0.3648, allocations: 1.406 kB / 435.4 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001336/0.3649, allocations: 11.33 kB / 435.4 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.151e-05/0.3649, allocations: 11.67 kB / 435.4 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.929e-06/0.3649, allocations: 7.547 kB / 435.4 MB, free: 9.258 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00011/0.3651, allocations: 158.4 kB / 435.6 MB, free: 9.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3651, allocations: 0 / 435.6 MB, free: 9.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002668/0.3653, allocations: 24.34 kB / 435.6 MB, free: 9.18 MB / 350.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.0005974/0.3659, allocations: 0.8026 MB / 436.4 MB, free: 8.516 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003941/0.3663, allocations: 141.5 kB / 436.5 MB, free: 8.508 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3663, allocations: 0 / 436.5 MB, free: 8.508 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001687/0.3665, allocations: 66.8 kB / 436.6 MB, free: 8.496 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000304/0.3668, allocations: 21.45 kB / 436.6 MB, free: 8.484 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002425/0.3692, allocations: 2.148 MB / 438.8 MB, free: 6.934 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001744/0.3694, allocations: 0.7261 MB / 439.5 MB, free: 6.234 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001138/0.3695, allocations: 35.11 kB / 439.5 MB, free: 6.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.044e-05/0.3696, allocations: 45.22 kB / 439.6 MB, free: 6.199 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3696, allocations: 0 / 439.6 MB, free: 6.199 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02198/0.3916, allocations: 3.521 MB / 443.1 MB, free: 5.723 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.513/8.904, allocations: 9.906 kB / 443.1 MB, free: 5.719 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe ; mkfifo Modelica_4.1.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe >> ../files/Modelica_4.1.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_ComplexBlocks_Examples_ShowTransferFunction_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_ComplexBlocks_Examples_ShowTransferFunction.fmu > Modelica_4.1.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.ComplexBlocks.Examples.ShowTransferFunction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/ComplexBlocks/Examples/ShowTransferFunction/ShowTransferFunction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 11.457687699003145]