Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir.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.001208/0.001208, allocations: 108.6 kB / 21.22 MB, free: 0.7305 MB / 14.72 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.001229/0.001229, allocations: 191.5 kB / 24.51 MB, free: 4.086 MB / 14.72 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 1.322/1.322, allocations: 225.6 MB / 253.3 MB, free: 13.03 MB / 206.1 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.ReferenceAir.MoistAir,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 47.94 kB / 371.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2253/0.2268, allocations: 52.2 MB / 423.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir): time 0.03428/0.2611, allocations: 26.66 MB / 450.1 MB, free: 3.852 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003256/0.2643, allocations: 2.251 MB / 452.3 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001249/0.2644, allocations: 0 / 452.3 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004101/0.2648, allocations: 67.64 kB / 452.4 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005064/0.2653, allocations: 159.1 kB / 452.6 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01861/0.284, allocations: 6.568 MB / 459.1 MB, free: 10.8 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005412/0.2845, allocations: 306.9 kB / 459.4 MB, free: 10.5 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.86e-05/0.2846, allocations: 13.28 kB / 459.4 MB, free: 10.49 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00034/0.2849, allocations: 143.5 kB / 459.6 MB, free: 10.35 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002651/0.2852, allocations: 123.6 kB / 459.7 MB, free: 10.23 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.648e-05/0.2852, allocations: 12 kB / 459.7 MB, free: 10.22 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01904/0.3042, allocations: 9.682 MB / 469.4 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001578/0.3044, allocations: 63.8 kB / 469.5 MB, free: 472 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001975/0.3046, allocations: 103.6 kB / 469.6 MB, free: 368 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01088/0.3155, allocations: 4.708 MB / 474.3 MB, free: 11.64 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/0.3155, allocations: 0 / 474.3 MB, free: 11.64 MB / 382.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.3155, allocations: 4 kB / 474.3 MB, free: 11.64 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.727e-06/0.3155, allocations: 4 kB / 474.3 MB, free: 11.63 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.003303/0.3188, allocations: 1.071 MB / 475.3 MB, free: 10.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.3188, allocations: 12.03 kB / 475.4 MB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.496e-05/0.3189, allocations: 4.516 kB / 475.4 MB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.842e-05/0.3189, allocations: 50.73 kB / 475.4 MB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001523/0.3191, allocations: 24.22 kB / 475.4 MB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002658/0.3193, allocations: 164.9 kB / 475.6 MB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.924e-05/0.3194, allocations: 8.328 kB / 475.6 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.101e-05/0.3194, allocations: 27.97 kB / 475.6 MB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007617/0.3202, allocations: 289.4 kB / 475.9 MB, free: 9.91 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.3202, allocations: 0 / 475.9 MB, free: 9.91 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.45e-05/0.3202, allocations: 12 kB / 475.9 MB, free: 9.898 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.94e-05/0.3202, allocations: 7.938 kB / 475.9 MB, free: 9.891 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008262/0.3211, allocations: 311.8 kB / 476.2 MB, free: 9.586 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001493/0.3226, allocations: 0.7884 MB / 477 MB, free: 8.727 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007327/0.3233, allocations: 241.1 kB / 477.3 MB, free: 8.473 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003214/0.3236, allocations: 125.6 kB / 477.4 MB, free: 8.344 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01125/0.3349, allocations: 2.69 MB / 480.1 MB, free: 5.652 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.662e-05/0.3349, allocations: 34.55 kB / 480.1 MB, free: 5.609 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.325e-06/0.3349, allocations: 0 / 480.1 MB, free: 5.609 MB / 382.1 MB Notification: Performance of matching and sorting (n=36): time 0.002988/0.3379, allocations: 0.6881 MB / 480.8 MB, free: 4.914 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.708e-05/0.338, allocations: 85.09 kB / 480.9 MB, free: 4.812 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001305/0.3381, allocations: 122 kB / 481 MB, free: 4.684 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.432e-05/0.3381, allocations: 37.7 kB / 481 MB, free: 4.641 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.68e-05/0.3382, allocations: 116.8 kB / 481.1 MB, free: 4.523 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001316/0.3383, allocations: 126.8 kB / 481.3 MB, free: 4.398 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001367/0.3385, allocations: 73.64 kB / 481.3 MB, free: 4.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.3386, allocations: 330.8 kB / 481.7 MB, free: 3.988 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003985/0.339, allocations: 135.9 kB / 481.8 MB, free: 3.855 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005155/0.3396, allocations: 219.4 kB / 482 MB, free: 3.613 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001008/0.3406, allocations: 372.6 kB / 482.4 MB, free: 3.227 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.3406, allocations: 0 / 482.4 MB, free: 3.227 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.00122/0.3418, allocations: 411.2 kB / 482.8 MB, free: 2.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.3418, allocations: 8 kB / 482.8 MB, free: 2.812 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.3418, allocations: 0 / 482.8 MB, free: 2.812 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.3418, allocations: 7.938 kB / 482.8 MB, free: 2.805 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004678/0.3423, allocations: 87.88 kB / 482.9 MB, free: 2.719 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.634e-05/0.3423, allocations: 4 kB / 482.9 MB, free: 2.715 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002939/0.3426, allocations: 23.97 kB / 482.9 MB, free: 2.691 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.809e-05/0.3427, allocations: 20.06 kB / 482.9 MB, free: 2.672 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (43): * Single equations (assignments): 43 * 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.0001683/0.3428, allocations: 149.6 kB / 483.1 MB, free: 2.516 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001436/0.343, allocations: 23.89 kB / 483.1 MB, free: 2.492 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004914/0.3435, allocations: 190.4 kB / 483.3 MB, free: 2.297 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.733e-06/0.3435, allocations: 4 kB / 483.3 MB, free: 2.293 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.3435, allocations: 0 / 483.3 MB, free: 2.293 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.705e-06/0.3435, allocations: 3.984 kB / 483.3 MB, free: 2.289 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001804/0.3453, allocations: 0.7384 MB / 484 MB, free: 1.488 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/0.3453, allocations: 4 kB / 484 MB, free: 1.484 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004241/0.3457, allocations: 84.03 kB / 484.1 MB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.842e-06/0.3457, allocations: 4 kB / 484.1 MB, free: 1.398 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.455e-05/0.3458, allocations: 15.92 kB / 484.1 MB, free: 1.383 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.153e-06/0.3458, allocations: 8 kB / 484.1 MB, free: 1.375 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3458, allocations: 0 / 484.1 MB, free: 1.375 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001609/0.3474, allocations: 0.7069 MB / 484.8 MB, free: 0.6367 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001303/0.3475, allocations: 47.83 kB / 484.9 MB, free: 0.5898 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.545e-05/0.3475, allocations: 11.94 kB / 484.9 MB, free: 0.5781 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003569/0.3479, allocations: 23.98 kB / 484.9 MB, free: 0.5547 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.574e-05/0.3479, allocations: 23.89 kB / 484.9 MB, free: 0.5312 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.183e-05/0.348, allocations: 24.05 kB / 485 MB, free: 0.5078 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.167e-05/0.3481, allocations: 95.27 kB / 485.1 MB, free: 424 kB / 382.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3481, allocations: 0 / 485.1 MB, free: 424 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.002755/0.3508, allocations: 0.9512 MB / 486 MB, free: 15.46 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (medium.p,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 (37): * Single equations (assignments): 37 * 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.006913/0.3577, allocations: 2.392 MB / 488.4 MB, free: 13.02 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001127/0.3589, allocations: 335.7 kB / 488.7 MB, free: 12.7 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3589, allocations: 4 kB / 488.7 MB, free: 12.69 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005003/0.3594, allocations: 176.9 kB / 488.9 MB, free: 12.52 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007617/0.3601, allocations: 100.1 kB / 489 MB, free: 12.42 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006748/0.3669, allocations: 3.152 MB / 492.2 MB, free: 9.109 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003878/0.3673, allocations: 0.7332 MB / 492.9 MB, free: 8.352 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003568/0.3676, allocations: 85.98 kB / 493 MB, free: 8.266 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001991/0.3678, allocations: 71.39 kB / 493.1 MB, free: 8.195 MB / 398.1 MB Notification: Performance of SimCode: time 4.4e-07/0.3678, allocations: 0 / 493.1 MB, free: 8.195 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06945/0.4373, allocations: 32.95 MB / 0.5137 GB, free: 7.387 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.1/12.54, allocations: 7.719 kB / 0.5137 GB, free: 7.383 MB / 430.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-05 Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir.fmu > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/MoistAir/MoistAir.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir.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: 16.50328378804261]