Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.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.001257/0.001257, allocations: 108.8 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.0013/0.0013, 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.333/1.333, allocations: 225.6 MB / 253.3 MB, free: 13.01 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.MixtureGases,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_MixtureGases",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_MixtureGases",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001411/0.001411, allocations: 47.94 kB / 371.2 MB, free: 9.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2263/0.2278, allocations: 52.19 MB / 423.4 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.3829/0.6107, allocations: 153 MB / 0.5629 GB, free: 13.6 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003617/0.6143, allocations: 4.06 MB / 0.5669 GB, free: 13.32 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001427/0.6144, allocations: 6.75 kB / 0.5669 GB, free: 13.31 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004217/0.6149, allocations: 108.9 kB / 0.567 GB, free: 13.29 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00275/0.6176, allocations: 1.247 MB / 0.5682 GB, free: 13.02 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008907/0.6185, allocations: 398.2 kB / 0.5686 GB, free: 12.96 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005254/0.619, allocations: 466.9 kB / 0.569 GB, free: 12.89 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.056e-05/0.6191, allocations: 10.22 kB / 0.5691 GB, free: 12.88 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003353/0.6194, allocations: 233.6 kB / 0.5693 GB, free: 12.85 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002047/0.6196, allocations: 145.3 kB / 0.5694 GB, free: 12.84 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.516e-05/0.6197, allocations: 15.62 kB / 0.5694 GB, free: 12.84 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003361/0.623, allocations: 2.268 MB / 0.5716 GB, free: 12.59 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001155/0.6231, allocations: 139.5 kB / 0.5718 GB, free: 12.58 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001602/0.6233, allocations: 168.8 kB / 0.5719 GB, free: 12.58 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001882/0.6252, allocations: 1.544 MB / 0.5734 GB, free: 12.49 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.6252, allocations: 0 / 0.5734 GB, free: 12.49 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.6252, allocations: 0 / 0.5734 GB, free: 12.49 MB / 462.1 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.6252, allocations: 3.938 kB / 0.5735 GB, free: 12.49 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.002057/0.6272, allocations: 0.71 MB / 0.5741 GB, free: 12.09 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.6273, allocations: 10.47 kB / 0.5742 GB, free: 12.09 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.551e-05/0.6273, allocations: 8.219 kB / 0.5742 GB, free: 12.09 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.762e-05/0.6274, allocations: 69.8 kB / 0.5742 GB, free: 12.05 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006727/0.6281, allocations: 107.2 kB / 0.5743 GB, free: 12.04 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004374/0.6285, allocations: 225.9 kB / 0.5745 GB, free: 11.88 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.785e-05/0.6285, allocations: 20 kB / 0.5746 GB, free: 11.88 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.944e-05/0.6286, allocations: 33.94 kB / 0.5746 GB, free: 11.88 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009766/0.6296, allocations: 0.5885 MB / 0.5752 GB, free: 11.83 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.6296, allocations: 6.594 kB / 0.5752 GB, free: 11.82 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.518e-05/0.6296, allocations: 8.906 kB / 0.5752 GB, free: 11.82 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.729e-05/0.6297, allocations: 24.3 kB / 0.5752 GB, free: 11.82 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001135/0.6308, allocations: 0.647 MB / 0.5758 GB, free: 11.78 MB / 462.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.002817/0.6336, allocations: 1.24 MB / 0.5771 GB, free: 11.16 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009097/0.6345, allocations: 349.7 kB / 0.5774 GB, free: 11.04 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004196/0.6349, allocations: 168.5 kB / 0.5775 GB, free: 11 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001966/0.6369, allocations: 0.5038 MB / 0.578 GB, free: 10.86 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.659e-05/0.6369, allocations: 37 kB / 0.5781 GB, free: 10.82 MB / 462.1 MB Notification: Performance of pre-optimization done (n=35): time 2.695e-06/0.6369, allocations: 5.203 kB / 0.5781 GB, free: 10.82 MB / 462.1 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: medium1.T Please use -d=bltdump for more information. Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: medium2.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=48): time 0.01416/0.6511, allocations: 3.174 MB / 0.5812 GB, free: 9.469 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.48e-05/0.6512, allocations: 94 kB / 0.5813 GB, free: 9.363 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001484/0.6513, allocations: 174.3 kB / 0.5814 GB, free: 9.246 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.065e-05/0.6514, allocations: 35.27 kB / 0.5815 GB, free: 9.215 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000113/0.6515, allocations: 188.5 kB / 0.5816 GB, free: 9.051 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001587/0.6517, allocations: 179.8 kB / 0.5818 GB, free: 8.918 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002029/0.6519, allocations: 120.4 kB / 0.5819 GB, free: 8.879 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.652, allocations: 334.3 kB / 0.5823 GB, free: 8.559 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007111/0.6527, allocations: 267.6 kB / 0.5825 GB, free: 8.508 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008176/0.6535, allocations: 424.5 kB / 0.5829 GB, free: 8.266 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001516/0.6551, allocations: 0.6998 MB / 0.5836 GB, free: 7.992 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.6551, allocations: 0 / 0.5836 GB, free: 7.992 MB / 462.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00181/0.6569, allocations: 0.7775 MB / 0.5844 GB, free: 7.789 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.6569, allocations: 7.688 kB / 0.5844 GB, free: 7.789 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.6569, allocations: 8.859 kB / 0.5844 GB, free: 7.785 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001973/0.6571, allocations: 60.2 kB / 0.5844 GB, free: 7.758 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001102/0.6582, allocations: 181 kB / 0.5846 GB, free: 7.711 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007471/0.6589, allocations: 1.08 MB / 0.5857 GB, free: 6.652 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007218/0.6597, allocations: 48.52 kB / 0.5857 GB, free: 6.637 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.834e-05/0.6597, allocations: 33.45 kB / 0.5857 GB, free: 6.633 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (70): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 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.0002574/0.66, allocations: 175.6 kB / 0.5859 GB, free: 6.5 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000124/0.6601, allocations: 27.2 kB / 0.5859 GB, free: 6.488 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002071/0.6622, allocations: 0.7875 MB / 0.5867 GB, free: 6.223 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.6622, allocations: 5.156 kB / 0.5867 GB, free: 6.223 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.6622, allocations: 2.469 kB / 0.5867 GB, free: 6.223 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.6622, allocations: 3.984 kB / 0.5867 GB, free: 6.219 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003288/0.6655, allocations: 1.534 MB / 0.5882 GB, free: 5.379 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.776e-06/0.6655, allocations: 6.406 kB / 0.5882 GB, free: 5.375 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00104/0.6666, allocations: 145.9 kB / 0.5884 GB, free: 5.332 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001286/0.6667, allocations: 39 kB / 0.5884 GB, free: 5.309 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.5e-05/0.6668, allocations: 28.42 kB / 0.5884 GB, free: 5.297 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002005/0.6688, allocations: 2.518 MB / 0.5909 GB, free: 2.797 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.6688, allocations: 6.969 kB / 0.5909 GB, free: 2.793 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002615/0.6714, allocations: 1.086 MB / 0.5919 GB, free: 2.32 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.814e-05/0.6715, allocations: 25.28 kB / 0.592 GB, free: 2.305 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.263e-05/0.6715, allocations: 12.25 kB / 0.592 GB, free: 2.305 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007767/0.6723, allocations: 43.31 kB / 0.592 GB, free: 2.289 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.423e-05/0.6724, allocations: 53.84 kB / 0.5921 GB, free: 2.258 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.458e-05/0.6725, allocations: 34.38 kB / 0.5921 GB, free: 2.25 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001074/0.6726, allocations: 116.5 kB / 0.5922 GB, free: 2.168 MB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.6726, allocations: 2.438 kB / 0.5922 GB, free: 2.168 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001594/0.6742, allocations: 386.5 kB / 0.5926 GB, free: 2.113 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (medium2.p,medium2.T,medium1.p,medium1.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 (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005287/0.6795, allocations: 2.379 MB / 0.5949 GB, free: 0.8047 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001863/0.6813, allocations: 0.6345 MB / 0.5955 GB, free: 0.6602 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.572e-06/0.6813, allocations: 0 / 0.5955 GB, free: 0.6602 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001068/0.6824, allocations: 0.5209 MB / 0.596 GB, free: 372 kB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007756/0.6832, allocations: 105.7 kB / 0.5961 GB, free: 328 kB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008362/0.6915, allocations: 4.252 MB / 0.6003 GB, free: 13.68 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004398/0.692, allocations: 0.7819 MB / 0.6011 GB, free: 12.95 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008425/0.6928, allocations: 187.6 kB / 0.6012 GB, free: 12.83 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003768/0.6932, allocations: 127.1 kB / 0.6014 GB, free: 12.8 MB / 478.1 MB Notification: Performance of SimCode: time 1.272e-06/0.6932, allocations: 4 kB / 0.6014 GB, free: 12.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05285/0.746, allocations: 20.24 MB / 0.6211 GB, free: 9.195 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.75/14.49, allocations: 7.016 kB / 0.6211 GB, free: 9.191 MB / 494.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.MixtureGases_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_MixtureGases_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_MixtureGases.fmu > Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.MixtureGases_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/MixtureGases/MixtureGases.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.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: 17.37727763300063]