Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.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 4.0.0+maint.om/package.mo", uses=false) 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.ReferenceAir.MoistAir1,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir1,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir1",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.001169/0.001169, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001077/0.001077, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.241/1.241, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001007/0.001007, allocations: 47.27 kB / 300.7 MB, free: 5.758 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.086/0.08703, allocations: 49.43 MB / 350.2 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir1): time 0.1877/0.2748, allocations: 50.54 MB / 400.7 MB, free: 12.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00544/0.2803, allocations: 5.189 MB / 405.9 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001633/0.2804, allocations: 8.312 kB / 405.9 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006523/0.2811, allocations: 249 kB / 406.1 MB, free: 8.188 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005097/0.2816, allocations: 364.1 kB / 406.5 MB, free: 7.895 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01474/0.2964, allocations: 7.104 MB / 413.6 MB, free: 3.035 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009889/0.2974, allocations: 1.087 MB / 414.7 MB, free: 2.438 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002025/0.2976, allocations: 144.9 kB / 414.8 MB, free: 2.363 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005474/0.3031, allocations: 3.599 MB / 418.4 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005058/0.3036, allocations: 402.6 kB / 418.8 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001124/0.3037, allocations: 56 kB / 418.9 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01438/0.3181, allocations: 9.752 MB / 428.6 MB, free: 5.488 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002515/0.3184, allocations: 227.5 kB / 428.8 MB, free: 5.266 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003619/0.3188, allocations: 310.8 kB / 429.1 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009635/0.3284, allocations: 5.489 MB / 434.6 MB, free: 15.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3284, allocations: 0 / 434.6 MB, free: 15.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3284, allocations: 3.938 kB / 434.6 MB, free: 15.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.609e-05/0.3285, allocations: 0 / 434.6 MB, free: 15.46 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: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.003044/0.3315, allocations: 1.366 MB / 436 MB, free: 14.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.3315, allocations: 8.031 kB / 436 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001091/0.3317, allocations: 90.45 kB / 436.1 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003402/0.332, allocations: 51.53 kB / 436.2 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004602/0.3325, allocations: 373.8 kB / 436.5 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.562e-05/0.3325, allocations: 29 kB / 436.5 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.531e-05/0.3326, allocations: 40 kB / 436.6 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001194/0.3338, allocations: 0.5959 MB / 437.2 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.3338, allocations: 0 / 437.2 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.169e-05/0.3339, allocations: 20 kB / 437.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.3339, allocations: 15.94 kB / 437.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001235/0.3351, allocations: 0.7417 MB / 438 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01449/0.3496, allocations: 11.97 MB / 449.9 MB, free: 13.99 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00114/0.3508, allocations: 0.5241 MB / 450.5 MB, free: 13.46 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00034/0.3511, allocations: 265 kB / 450.7 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01307/0.3642, allocations: 11.89 MB / 462.6 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.349e-05/0.3643, allocations: 43 kB / 462.6 MB, free: 14.95 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 2.314e-06/0.3643, allocations: 0 / 462.6 MB, free: 14.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=55): time 0.005231/0.3695, allocations: 2.115 MB / 464.8 MB, free: 12.74 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.986e-05/0.3696, allocations: 59.97 kB / 464.8 MB, free: 12.67 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003161/0.3699, allocations: 322.8 kB / 465.1 MB, free: 12.35 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.093e-05/0.37, allocations: 37.7 kB / 465.2 MB, free: 12.3 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001181/0.3701, allocations: 196.4 kB / 465.4 MB, free: 12.11 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001297/0.3702, allocations: 193.2 kB / 465.6 MB, free: 11.92 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001582/0.3704, allocations: 114.1 kB / 465.7 MB, free: 11.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.3705, allocations: 350.8 kB / 466 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003558/0.3709, allocations: 237 kB / 466.2 MB, free: 11.22 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005805/0.3715, allocations: 343.3 kB / 466.6 MB, free: 10.85 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001067/0.3725, allocations: 0.5995 MB / 467.2 MB, free: 10.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.678e-06/0.3725, allocations: 8 kB / 467.2 MB, free: 10.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001658/0.3742, allocations: 0.7517 MB / 467.9 MB, free: 9.441 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.3742, allocations: 4 kB / 467.9 MB, free: 9.438 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.3742, allocations: 7.938 kB / 467.9 MB, free: 9.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004281/0.3747, allocations: 106.8 kB / 468.1 MB, free: 9.316 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004614/0.3751, allocations: 127.8 kB / 468.2 MB, free: 9.191 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002271/0.3774, allocations: 3.472 MB / 471.6 MB, free: 5.418 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002705/0.3777, allocations: 20.17 kB / 471.7 MB, free: 5.398 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.317e-05/0.3778, allocations: 31.94 kB / 471.7 MB, free: 5.367 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002246/0.378, allocations: 193.6 kB / 471.9 MB, free: 5.168 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00027/0.3783, allocations: 43.62 kB / 471.9 MB, free: 5.125 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001462/0.3798, allocations: 0.815 MB / 472.7 MB, free: 4.277 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.3798, allocations: 8 kB / 472.8 MB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.004e-06/0.3798, allocations: 0 / 472.8 MB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001138/0.3809, allocations: 0.7558 MB / 473.5 MB, free: 3.441 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001875/0.3828, allocations: 1.298 MB / 474.8 MB, free: 2.082 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.3828, allocations: 0 / 474.8 MB, free: 2.082 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004231/0.3833, allocations: 99.88 kB / 474.9 MB, free: 1.984 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008518/0.3841, allocations: 156.6 kB / 475.1 MB, free: 1.828 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.33e-05/0.3842, allocations: 23.94 kB / 475.1 MB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003738/0.3846, allocations: 0.6445 MB / 475.7 MB, free: 1.137 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.3846, allocations: 8.125 kB / 475.7 MB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001521/0.3861, allocations: 0.9119 MB / 476.6 MB, free: 192 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001085/0.3862, allocations: 112.8 kB / 476.8 MB, free: 60 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.123e-05/0.3863, allocations: 12 kB / 476.8 MB, free: 48 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003696/0.3867, allocations: 19.98 kB / 476.8 MB, free: 28 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.477e-05/0.3868, allocations: 32.44 kB / 476.8 MB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.908e-05/0.3868, allocations: 31.94 kB / 476.8 MB, free: 15.96 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002641/0.3871, allocations: 253.9 kB / 477.1 MB, free: 15.72 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3871, allocations: 0 / 477.1 MB, free: 15.72 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003436/0.3905, allocations: 1.316 MB / 478.4 MB, free: 14.4 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (volume.medium.p,volume.medium.Xi[1],volume.medium.T) * 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 (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00716/0.3977, allocations: 3.044 MB / 481.5 MB, free: 11.33 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001613/0.3993, allocations: 0.8465 MB / 482.3 MB, free: 10.46 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.3994, allocations: 0 / 482.3 MB, free: 10.46 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005438/0.3999, allocations: 295.9 kB / 482.6 MB, free: 10.17 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001361/0.4013, allocations: 275.6 kB / 482.9 MB, free: 9.902 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008083/0.4094, allocations: 5.368 MB / 488.2 MB, free: 4.355 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003637/0.4097, allocations: 0.8326 MB / 489.1 MB, free: 3.492 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004948/0.4103, allocations: 148.2 kB / 489.2 MB, free: 3.348 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002395/0.4105, allocations: 159.4 kB / 489.4 MB, free: 3.191 MB / 398.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4105, allocations: 0 / 489.4 MB, free: 3.191 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8419/1.252, allocations: 50.29 MB / 0.527 GB, free: 1.07 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.54/14.79, allocations: 11.78 kB / 0.527 GB, free: 1.059 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir1_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir1.fmu > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/MoistAir1/MoistAir1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches