Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.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.0009176/0.0009176, 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.000879/0.000879, allocations: 157.4 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.8442/0.8442, allocations: 173.4 MB / 200.4 MB, free: 9.43 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.Media.Examples.IdealGasH2O,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_IdealGasH2O",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.IdealGasH2O,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_IdealGasH2O",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 318.4 MB, free: 6.387 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.054e-05/2.208e-05, allocations: 5.516 kB / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.IdealGasH2O): time 0.0985/0.09852, allocations: 128.3 MB / 446.7 MB, free: 5.527 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001764/0.1003, allocations: 2.246 MB / 449 MB, free: 3.277 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.895e-05/0.1003, allocations: 0 / 449 MB, free: 3.277 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001398/0.1005, allocations: 19.84 kB / 449 MB, free: 3.258 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007084/0.1012, allocations: 338 kB / 449.3 MB, free: 2.926 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001409/0.1013, allocations: 55.73 kB / 449.4 MB, free: 2.871 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 8.731e-05/0.1014, allocations: 79.48 kB / 449.5 MB, free: 2.793 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.279e-05/0.1014, allocations: 11.92 kB / 449.5 MB, free: 2.781 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001021/0.1015, allocations: 43.89 kB / 449.5 MB, free: 2.738 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.478e-05/0.1016, allocations: 23.91 kB / 449.5 MB, free: 2.715 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.139e-05/0.1016, allocations: 0 / 449.5 MB, free: 2.715 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005022/0.1021, allocations: 351.3 kB / 449.9 MB, free: 2.371 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.321e-05/0.1021, allocations: 3.984 kB / 449.9 MB, free: 2.367 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.29e-05/0.1022, allocations: 27.92 kB / 449.9 MB, free: 2.34 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003912/0.1025, allocations: 335.1 kB / 450.2 MB, free: 2.012 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1026, allocations: 0 / 450.2 MB, free: 2.012 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1026, allocations: 0 / 450.2 MB, free: 2.012 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.91e-06/0.1026, allocations: 0 / 450.2 MB, free: 2.012 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.00062/0.1032, allocations: 361.8 kB / 450.6 MB, free: 1.629 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.1032, allocations: 12.92 kB / 450.6 MB, free: 1.617 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.215e-05/0.1033, allocations: 38.69 kB / 450.6 MB, free: 1.57 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002847/0.1061, allocations: 484.2 kB / 451.1 MB, free: 1.098 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.863e-05/0.1062, allocations: 113.7 kB / 451.2 MB, free: 0.9609 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.626e-05/0.1062, allocations: 3.938 kB / 451.2 MB, free: 0.957 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.513e-05/0.1063, allocations: 15.94 kB / 451.3 MB, free: 0.9414 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004816/0.1067, allocations: 301.2 kB / 451.5 MB, free: 0.6406 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.1068, allocations: 3.938 kB / 451.5 MB, free: 0.6367 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.539e-05/0.1068, allocations: 0 / 451.5 MB, free: 0.6367 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.1068, allocations: 4 kB / 451.6 MB, free: 0.6328 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004863/0.1073, allocations: 274.6 kB / 451.8 MB, free: 376 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1241/0.2314, allocations: 376.6 kB / 452.2 MB, free: 137 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006746/0.2321, allocations: 196.3 kB / 452.4 MB, free: 136.9 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001218/0.2322, allocations: 65.59 kB / 452.4 MB, free: 136.9 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.575e-05/0.2322, allocations: 2.891 kB / 452.4 MB, free: 136.9 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.301e-05/0.2322, allocations: 37.55 kB / 452.5 MB, free: 136.9 MB / 410.7 MB Notification: Performance of pre-optimization done (n=13): time 2.375e-06/0.2322, allocations: 3.438 kB / 452.5 MB, free: 136.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=17): time 0.001025/0.2333, allocations: 419.3 kB / 452.9 MB, free: 136.9 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.158e-05/0.2333, allocations: 58.39 kB / 453 MB, free: 136.8 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.089e-05/0.2333, allocations: 105.3 kB / 453.1 MB, free: 136.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.387e-05/0.2333, allocations: 26.27 kB / 453.1 MB, free: 136.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.189e-05/0.2334, allocations: 99.95 kB / 453.2 MB, free: 136.6 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.955e-05/0.2334, allocations: 59.03 kB / 453.2 MB, free: 136.6 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.662e-05/0.2335, allocations: 42.53 kB / 453.3 MB, free: 136.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.694e-05/0.2335, allocations: 318.9 kB / 453.6 MB, free: 136.2 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001618/0.2336, allocations: 83.67 kB / 453.7 MB, free: 136.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001711/0.2338, allocations: 115.9 kB / 453.8 MB, free: 136.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003202/0.2341, allocations: 205.8 kB / 454 MB, free: 136 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.2341, allocations: 0.5 kB / 454 MB, free: 136 MB / 410.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.00038/0.2345, allocations: 249.3 kB / 454.2 MB, free: 135.9 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.2345, allocations: 9.594 kB / 454.2 MB, free: 135.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.2345, allocations: 0.6562 kB / 454.2 MB, free: 135.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.2346, allocations: 4.172 kB / 454.2 MB, free: 135.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002025/0.2348, allocations: 51.75 kB / 454.3 MB, free: 135.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.2348, allocations: 2.219 kB / 454.3 MB, free: 135.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000113/0.2349, allocations: 15.31 kB / 454.3 MB, free: 135.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.84e-05/0.2349, allocations: 14.77 kB / 454.3 MB, free: 135.9 MB / 410.7 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 (21): * Single equations (assignments): 21 * 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 6.796e-05/0.235, allocations: 120 kB / 454.4 MB, free: 135.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.742e-05/0.235, allocations: 11.83 kB / 454.5 MB, free: 135.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000473/0.2355, allocations: 285.1 kB / 454.7 MB, free: 135.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.2355, allocations: 2.156 kB / 454.7 MB, free: 135.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.2355, allocations: 0 / 454.7 MB, free: 135.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.2355, allocations: 1.906 kB / 454.7 MB, free: 135.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006238/0.2361, allocations: 0.5326 MB / 455.3 MB, free: 135.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.2361, allocations: 3.125 kB / 455.3 MB, free: 135.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001396/0.2363, allocations: 45.09 kB / 455.3 MB, free: 135.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.2363, allocations: 3.969 kB / 455.3 MB, free: 135.3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.446e-05/0.2363, allocations: 11.73 kB / 455.3 MB, free: 135.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.2363, allocations: 1.25 kB / 455.3 MB, free: 135.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.2363, allocations: 1.875 kB / 455.3 MB, free: 135.3 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003067/0.2366, allocations: 332.8 kB / 455.7 MB, free: 135.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.674e-06/0.2366, allocations: 7.922 kB / 455.7 MB, free: 135.1 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.864e-05/0.2366, allocations: 7.688 kB / 455.7 MB, free: 135.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000113/0.2367, allocations: 13.66 kB / 455.7 MB, free: 135.1 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.098e-05/0.2367, allocations: 14.89 kB / 455.7 MB, free: 135.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.542e-05/0.2368, allocations: 16.78 kB / 455.7 MB, free: 135.1 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.221e-05/0.2368, allocations: 79.47 kB / 455.8 MB, free: 135 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2368, allocations: 0 / 455.8 MB, free: 135 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002119/0.237, allocations: 43.72 kB / 455.8 MB, free: 135 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 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.0005026/0.2375, allocations: 0.8881 MB / 456.7 MB, free: 134.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003356/0.2378, allocations: 195.9 kB / 456.9 MB, free: 134.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.2378, allocations: 0 / 456.9 MB, free: 134.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001309/0.238, allocations: 97.78 kB / 457 MB, free: 134 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002893/0.2382, allocations: 47.94 kB / 457.1 MB, free: 134 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005298/0.2388, allocations: 294.1 kB / 457.4 MB, free: 133.7 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.658e-05/0.2388, allocations: 79.67 kB / 457.4 MB, free: 133.6 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001555/0.239, allocations: 50.72 kB / 457.5 MB, free: 133.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001017/0.2391, allocations: 46.53 kB / 457.5 MB, free: 133.5 MB / 410.7 MB Notification: Performance of SimCode: time 5.21e-07/0.2391, allocations: 0 / 457.5 MB, free: 133.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0154/0.2545, allocations: 5.246 MB / 462.8 MB, free: 128.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.844/7.098, allocations: 4 kB / 462.8 MB, free: 128.5 MB / 410.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_IdealGasH2O_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_IdealGasH2O.fmu > Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/IdealGasH2O/IdealGasH2O.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.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.66610309202224]