Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.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.0008849/0.0008849, allocations: 83.69 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.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.0008457/0.0008457, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9201/0.9201, allocations: 177.1 MB / 204.3 MB, free: 5.707 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2552/0.2552, allocations: 32.79 MB / 293.5 MB, free: 1.219 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Media.TestOnly.MixIdealGasAir,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.MixIdealGasAir,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 439.6 MB, free: 4.277 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.512e-05/1.691e-05, allocations: 2.281 kB / 439.6 MB, free: 4.273 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.MixIdealGasAir): time 0.3064/0.3064, allocations: 131.8 MB / 0.558 GB, free: 0.8203 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.002727/0.3092, allocations: 2.82 MB / 0.5608 GB, free: 14 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.966e-05/0.3093, allocations: 3.938 kB / 0.5608 GB, free: 14 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004228/0.3097, allocations: 55.61 kB / 0.5608 GB, free: 13.94 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00201/0.3117, allocations: 1.079 MB / 0.5619 GB, free: 12.86 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003708/0.3121, allocations: 212.7 kB / 0.5621 GB, free: 12.66 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003386/0.3124, allocations: 360.4 kB / 0.5624 GB, free: 12.3 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.17e-05/0.3125, allocations: 9.297 kB / 0.5624 GB, free: 12.3 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002575/0.3127, allocations: 199.4 kB / 0.5626 GB, free: 12.1 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001462/0.3129, allocations: 99.69 kB / 0.5627 GB, free: 12 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 2.282e-05/0.3129, allocations: 16 kB / 0.5627 GB, free: 11.99 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001891/0.3148, allocations: 1.325 MB / 0.564 GB, free: 10.66 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 9.748e-05/0.3149, allocations: 87.77 kB / 0.5641 GB, free: 10.57 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 7.998e-05/0.315, allocations: 75.89 kB / 0.5642 GB, free: 10.5 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001134/0.3161, allocations: 1.072 MB / 0.5652 GB, free: 9.426 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.3161, allocations: 0 / 0.5652 GB, free: 9.426 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3161, allocations: 0 / 0.5652 GB, free: 9.426 MB / 474.7 MB Notification: Performance of Transformations before backend: time 6.061e-06/0.3161, allocations: 0 / 0.5652 GB, free: 9.426 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0007955/0.3169, allocations: 493.8 kB / 0.5657 GB, free: 8.918 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.3169, allocations: 8.031 kB / 0.5657 GB, free: 8.91 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.414e-05/0.317, allocations: 54.73 kB / 0.5657 GB, free: 8.848 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008402/0.3178, allocations: 212.6 kB / 0.566 GB, free: 8.641 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002455/0.3181, allocations: 189.6 kB / 0.5661 GB, free: 8.43 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.567e-05/0.3181, allocations: 16.94 kB / 0.5661 GB, free: 8.414 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.292e-05/0.3181, allocations: 23.89 kB / 0.5662 GB, free: 8.391 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004726/0.3186, allocations: 0.5657 MB / 0.5667 GB, free: 7.766 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.3186, allocations: 4 kB / 0.5667 GB, free: 7.762 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.147e-05/0.3187, allocations: 8 kB / 0.5667 GB, free: 7.754 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.3187, allocations: 4 kB / 0.5667 GB, free: 7.75 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000382/0.319, allocations: 398.4 kB / 0.5671 GB, free: 7.363 MB / 474.7 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.001254/0.3203, allocations: 0.7526 MB / 0.5679 GB, free: 6.566 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002732/0.3206, allocations: 213.1 kB / 0.5681 GB, free: 6.34 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001189/0.3207, allocations: 121.6 kB / 0.5682 GB, free: 6.215 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008091/0.3215, allocations: 306.2 kB / 0.5685 GB, free: 5.918 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.125e-05/0.3215, allocations: 46.48 kB / 0.5685 GB, free: 5.863 MB / 474.7 MB Notification: Performance of pre-optimization done (n=29): time 1.814e-06/0.3215, allocations: 0 / 0.5685 GB, free: 5.863 MB / 474.7 MB Notification: Performance of matching and sorting (n=29): time 0.000745/0.3223, allocations: 362.2 kB / 0.5689 GB, free: 5.508 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.625e-05/0.3223, allocations: 85.05 kB / 0.5689 GB, free: 5.406 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.916e-05/0.3224, allocations: 113 kB / 0.569 GB, free: 5.289 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 2.542e-05/0.3224, allocations: 33.7 kB / 0.5691 GB, free: 5.25 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.277e-05/0.3225, allocations: 120.5 kB / 0.5692 GB, free: 5.129 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.645e-05/0.3225, allocations: 111.1 kB / 0.5693 GB, free: 5.02 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.719e-05/0.3226, allocations: 60.38 kB / 0.5694 GB, free: 4.957 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 8.344e-05/0.3227, allocations: 330.8 kB / 0.5697 GB, free: 4.625 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001263/0.3228, allocations: 92.61 kB / 0.5698 GB, free: 4.535 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001572/0.3229, allocations: 187.5 kB / 0.5699 GB, free: 4.316 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002966/0.3232, allocations: 295.5 kB / 0.5702 GB, free: 3.992 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3232, allocations: 4 kB / 0.5702 GB, free: 3.988 MB / 474.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003869/0.3236, allocations: 348.3 kB / 0.5706 GB, free: 3.648 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.3236, allocations: 8 kB / 0.5706 GB, free: 3.641 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.3237, allocations: 3.984 kB / 0.5706 GB, free: 3.637 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.3237, allocations: 4 kB / 0.5706 GB, free: 3.633 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001773/0.3238, allocations: 71.91 kB / 0.5706 GB, free: 3.562 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.3239, allocations: 7.938 kB / 0.5706 GB, free: 3.555 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.324, allocations: 31.19 kB / 0.5707 GB, free: 3.527 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.383e-05/0.324, allocations: 23.94 kB / 0.5707 GB, free: 3.504 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (39): * Single equations (assignments): 39 * 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.924e-05/0.3241, allocations: 137.8 kB / 0.5708 GB, free: 3.359 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.858e-05/0.3242, allocations: 27.89 kB / 0.5709 GB, free: 3.332 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004254/0.3246, allocations: 315.2 kB / 0.5712 GB, free: 3.023 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.3246, allocations: 8 kB / 0.5712 GB, free: 3.016 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.3246, allocations: 0 / 0.5712 GB, free: 3.016 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.3246, allocations: 0 / 0.5712 GB, free: 3.016 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003485/0.3249, allocations: 278.4 kB / 0.5714 GB, free: 2.703 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.3249, allocations: 0 / 0.5714 GB, free: 2.703 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001639/0.3251, allocations: 63.83 kB / 0.5715 GB, free: 2.641 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.3251, allocations: 0 / 0.5715 GB, free: 2.641 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.892e-05/0.3251, allocations: 12 kB / 0.5715 GB, free: 2.629 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.3251, allocations: 4 kB / 0.5715 GB, free: 2.625 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3251, allocations: 0 / 0.5715 GB, free: 2.625 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004823/0.3256, allocations: 0.5087 MB / 0.572 GB, free: 2.109 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.674e-05/0.3256, allocations: 15.83 kB / 0.572 GB, free: 2.094 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.288e-05/0.3257, allocations: 8.062 kB / 0.572 GB, free: 2.086 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001521/0.3258, allocations: 15.98 kB / 0.572 GB, free: 2.07 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.911e-05/0.3258, allocations: 27.89 kB / 0.5721 GB, free: 2.043 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.389e-05/0.3259, allocations: 12 kB / 0.5721 GB, free: 2.031 MB / 474.7 MB Notification: Performance of sorting global known variables: time 3.391e-05/0.3259, allocations: 92.05 kB / 0.5722 GB, free: 1.941 MB / 474.7 MB Notification: Performance of sort global known variables: time 6e-08/0.3259, allocations: 0 / 0.5722 GB, free: 1.941 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0006091/0.3265, allocations: 239.4 kB / 0.5724 GB, free: 1.707 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (medium2.p,medium2.T,medium2.X[1],medium2.X[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 (29): * Single equations (assignments): 29 * 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.001344/0.3278, allocations: 1.391 MB / 0.5738 GB, free: 296 kB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0003462/0.3282, allocations: 248.2 kB / 0.574 GB, free: 48 kB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.3282, allocations: 128 / 0.574 GB, free: 48 kB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001342/0.3283, allocations: 121.4 kB / 0.5741 GB, free: 15.93 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005514/0.3289, allocations: 88.89 kB / 0.5742 GB, free: 15.85 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002154/0.331, allocations: 2.535 MB / 0.5767 GB, free: 13.18 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.463e-05/0.3311, allocations: 119.9 kB / 0.5768 GB, free: 13.04 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0002059/0.3313, allocations: 70.03 kB / 0.5768 GB, free: 12.97 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.3314, allocations: 60.48 kB / 0.5769 GB, free: 12.91 MB / 490.7 MB Notification: Performance of SimCode: time 6.61e-07/0.3314, allocations: 0 / 0.5769 GB, free: 12.91 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02655/0.358, allocations: 11.63 MB / 0.5883 GB, free: 1.484 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.063/7.421, allocations: 7.922 kB / 0.5883 GB, free: 1.477 MB / 490.7 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00019992 ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_MixIdealGasAir.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestOnly/MixIdealGasAir/MixIdealGasAir.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable medium2.p in file ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.csv. Warning: Get data of variable medium2.p from file ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.569596053101122]