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.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.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(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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001363/0.001363, allocations: 110.4 kB / 17.78 MB, free: 5.285 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.001556/0.001556, allocations: 183.9 kB / 18.71 MB, free: 4.363 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.426/1.426, allocations: 222.9 MB / 242.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2222/0.2222, allocations: 44.18 MB / 336.7 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 67.88 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.424/0.4255, allocations: 60.82 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.MixIdealGasAir): time 0.185/0.6106, allocations: 149.9 MB / 0.6648 GB, free: 5.699 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.003813/0.6144, allocations: 3.146 MB / 0.6679 GB, free: 2.543 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001289/0.6146, allocations: 0 / 0.6679 GB, free: 2.543 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0003983/0.615, allocations: 59.64 kB / 0.6679 GB, free: 2.484 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.002665/0.6177, allocations: 1.029 MB / 0.6689 GB, free: 1.453 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005753/0.6183, allocations: 199.4 kB / 0.6691 GB, free: 1.262 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0004809/0.6188, allocations: 350.7 kB / 0.6695 GB, free: 0.918 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 5.774e-05/0.6189, allocations: 21.06 kB / 0.6695 GB, free: 0.8945 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002912/0.6191, allocations: 143.5 kB / 0.6696 GB, free: 0.7539 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002327/0.6194, allocations: 115.6 kB / 0.6697 GB, free: 0.6406 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 3.577e-05/0.6194, allocations: 12 kB / 0.6697 GB, free: 0.6289 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002748/0.6222, allocations: 1.488 MB / 0.6712 GB, free: 15.14 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0001023/0.6223, allocations: 79.77 kB / 0.6713 GB, free: 15.06 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.000125/0.6224, allocations: 107.6 kB / 0.6714 GB, free: 14.95 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.001708/0.6242, allocations: 0.9861 MB / 0.6723 GB, free: 13.96 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.6242, allocations: 0 / 0.6723 GB, free: 13.96 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.543e-06/0.6242, allocations: 4 kB / 0.6723 GB, free: 13.96 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.176e-06/0.6242, allocations: 0 / 0.6723 GB, free: 13.96 MB / 0.5294 GB 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.001138/0.6253, allocations: 0.5423 MB / 0.6729 GB, free: 13.37 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.6254, allocations: 16.03 kB / 0.6729 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.92e-05/0.6255, allocations: 50.73 kB / 0.6729 GB, free: 13.3 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001447/0.6269, allocations: 208.5 kB / 0.6731 GB, free: 13.09 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004024/0.6273, allocations: 251.6 kB / 0.6734 GB, free: 12.81 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.203e-05/0.6274, allocations: 16.38 kB / 0.6734 GB, free: 12.79 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.585e-05/0.6274, allocations: 16 kB / 0.6734 GB, free: 12.78 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006036/0.628, allocations: 381.4 kB / 0.6738 GB, free: 12.39 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.6281, allocations: 0 / 0.6738 GB, free: 12.39 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.862e-05/0.6281, allocations: 12 kB / 0.6738 GB, free: 12.38 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.6281, allocations: 4 kB / 0.6738 GB, free: 12.38 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005863/0.6287, allocations: 391.8 kB / 0.6741 GB, free: 12 MB / 0.5294 GB 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.001771/0.6305, allocations: 0.8085 MB / 0.6749 GB, free: 11.13 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004098/0.6309, allocations: 221 kB / 0.6751 GB, free: 10.9 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001871/0.6311, allocations: 128.6 kB / 0.6753 GB, free: 10.77 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002181/0.6333, allocations: 0.988 MB / 0.6762 GB, free: 9.613 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.973e-05/0.6334, allocations: 46.5 kB / 0.6763 GB, free: 9.559 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=29): time 2.074e-06/0.6334, allocations: 0 / 0.6763 GB, free: 9.559 MB / 0.5294 GB Notification: Performance of matching and sorting (n=29): time 0.001284/0.6347, allocations: 357.8 kB / 0.6766 GB, free: 9.203 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.158e-05/0.6348, allocations: 89.05 kB / 0.6767 GB, free: 9.098 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.6349, allocations: 109.8 kB / 0.6768 GB, free: 8.98 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.726e-05/0.6349, allocations: 29.7 kB / 0.6768 GB, free: 8.945 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.635, allocations: 120.3 kB / 0.6769 GB, free: 8.824 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001008/0.6352, allocations: 106.5 kB / 0.6771 GB, free: 8.719 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001569/0.6353, allocations: 58.03 kB / 0.6771 GB, free: 8.656 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000149/0.6355, allocations: 330.8 kB / 0.6774 GB, free: 8.324 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002113/0.6357, allocations: 104.6 kB / 0.6775 GB, free: 8.223 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002478/0.6359, allocations: 171.6 kB / 0.6777 GB, free: 8.02 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004878/0.6364, allocations: 310 kB / 0.678 GB, free: 7.68 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.6365, allocations: 0 / 0.678 GB, free: 7.68 MB / 0.5294 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000651/0.6371, allocations: 340 kB / 0.6783 GB, free: 7.348 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.6371, allocations: 8.312 kB / 0.6783 GB, free: 7.34 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.886e-06/0.6372, allocations: 4 kB / 0.6783 GB, free: 7.336 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.09e-05/0.6372, allocations: 8 kB / 0.6783 GB, free: 7.328 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003386/0.6375, allocations: 71.89 kB / 0.6784 GB, free: 7.258 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.53e-05/0.6376, allocations: 7.938 kB / 0.6784 GB, free: 7.25 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002212/0.6378, allocations: 23.78 kB / 0.6784 GB, free: 7.227 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.007e-05/0.6378, allocations: 23.98 kB / 0.6784 GB, free: 7.203 MB / 0.5294 GB 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 0.00016/0.638, allocations: 137.7 kB / 0.6786 GB, free: 7.059 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.6381, allocations: 19.81 kB / 0.6786 GB, free: 7.039 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006523/0.6388, allocations: 318.2 kB / 0.6789 GB, free: 6.723 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.6388, allocations: 8 kB / 0.6789 GB, free: 6.715 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.6388, allocations: 0 / 0.6789 GB, free: 6.715 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.789e-06/0.6388, allocations: 7.984 kB / 0.6789 GB, free: 6.707 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005653/0.6394, allocations: 323 kB / 0.6792 GB, free: 6.34 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.6394, allocations: 3.938 kB / 0.6792 GB, free: 6.336 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003265/0.6398, allocations: 63.89 kB / 0.6793 GB, free: 6.273 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.576e-06/0.6398, allocations: 0 / 0.6793 GB, free: 6.273 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.073e-05/0.6398, allocations: 8 kB / 0.6793 GB, free: 6.266 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.6398, allocations: 4 kB / 0.6793 GB, free: 6.262 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.6398, allocations: 0 / 0.6793 GB, free: 6.262 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007442/0.6406, allocations: 0.5062 MB / 0.6798 GB, free: 5.738 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 6.85e-05/0.6406, allocations: 92.86 kB / 0.6799 GB, free: 5.629 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.56e-05/0.6407, allocations: 8.062 kB / 0.6799 GB, free: 5.621 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003106/0.641, allocations: 11.98 kB / 0.6799 GB, free: 5.609 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.02e-05/0.6411, allocations: 23.97 kB / 0.6799 GB, free: 5.586 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.639e-05/0.6411, allocations: 19.92 kB / 0.6799 GB, free: 5.566 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 4.834e-05/0.6412, allocations: 87.28 kB / 0.68 GB, free: 5.48 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.41e-07/0.6412, allocations: 0 / 0.68 GB, free: 5.48 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0008697/0.642, allocations: 227.8 kB / 0.6802 GB, free: 5.258 MB / 0.5294 GB 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.002178/0.6442, allocations: 1.376 MB / 0.6816 GB, free: 3.855 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0005165/0.6447, allocations: 260.1 kB / 0.6818 GB, free: 3.602 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.6448, allocations: 0.625 kB / 0.6818 GB, free: 3.602 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0002036/0.645, allocations: 123.9 kB / 0.682 GB, free: 3.48 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006453/0.6456, allocations: 95.69 kB / 0.682 GB, free: 3.391 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003577/0.6492, allocations: 2.666 MB / 0.6846 GB, free: 0.5703 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003606/0.6496, allocations: 0.7324 MB / 0.6854 GB, free: 15.81 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0003043/0.6499, allocations: 73.97 kB / 0.6854 GB, free: 15.74 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001382/0.65, allocations: 55.42 kB / 0.6855 GB, free: 15.69 MB / 0.545 GB Notification: Performance of SimCode: time 2.044e-06/0.6501, allocations: 3.938 kB / 0.6855 GB, free: 15.68 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03468/0.6847, allocations: 10.54 MB / 0.6958 GB, free: 5.258 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.753/8.437, allocations: 9.75 kB / 0.6958 GB, free: 5.25 MB / 0.545 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_MixIdealGasAir_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_MixIdealGasAir.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestOnly/MixIdealGasAir/MixIdealGasAir.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches