Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Nitrogen",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Nitrogen",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.001183/0.001183, allocations: 103.7 kB / 16.41 MB, free: 6.508 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.001202/0.001202, allocations: 192.2 kB / 17.34 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.426/1.426, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2203/0.2203, allocations: 43.53 MB / 314.1 MB, free: 460 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003231/0.003231, allocations: 67.91 kB / 441.3 MB, free: 6.145 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1456/0.1489, allocations: 57.79 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen): time 0.4531/0.602, allocations: 179.7 MB / 0.6629 GB, free: 7.129 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.008044/0.6101, allocations: 5.747 MB / 0.6685 GB, free: 1.359 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006365/0.6108, allocations: 19.88 kB / 0.6685 GB, free: 1.34 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0009044/0.6117, allocations: 318 kB / 0.6688 GB, free: 1.027 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.003964/0.6157, allocations: 1.579 MB / 0.6703 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.003223/0.619, allocations: 1.241 MB / 0.6715 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.002595/0.6216, allocations: 1.841 MB / 0.6733 GB, free: 12.36 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007607/0.6224, allocations: 462.4 kB / 0.6738 GB, free: 11.91 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002877/0.6252, allocations: 1.226 MB / 0.675 GB, free: 10.68 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001348/0.6266, allocations: 0.7549 MB / 0.6757 GB, free: 9.922 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001316/0.6268, allocations: 60 kB / 0.6758 GB, free: 9.863 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001886/0.6286, allocations: 0.8308 MB / 0.6766 GB, free: 9.031 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0003035/0.629, allocations: 263.3 kB / 0.6768 GB, free: 8.773 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0004707/0.6294, allocations: 394.2 kB / 0.6772 GB, free: 8.387 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002147/0.6316, allocations: 1.437 MB / 0.6786 GB, free: 6.945 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.339e-06/0.6316, allocations: 0 / 0.6786 GB, free: 6.945 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.303e-06/0.6316, allocations: 0 / 0.6786 GB, free: 6.945 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.77e-05/0.6316, allocations: 0 / 0.6786 GB, free: 6.945 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.002516/0.6342, allocations: 1.152 MB / 0.6797 GB, free: 5.742 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.6342, allocations: 11.89 kB / 0.6798 GB, free: 5.73 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001345/0.6344, allocations: 98.52 kB / 0.6798 GB, free: 5.625 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008109/0.6352, allocations: 139.4 kB / 0.68 GB, free: 5.488 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008929/0.6361, allocations: 0.5512 MB / 0.6805 GB, free: 4.895 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001205/0.6362, allocations: 104.4 kB / 0.6806 GB, free: 4.781 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001086/0.6363, allocations: 47.98 kB / 0.6807 GB, free: 4.734 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001288/0.6376, allocations: 0.8019 MB / 0.6814 GB, free: 3.859 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.228e-05/0.6377, allocations: 11.94 kB / 0.6815 GB, free: 3.848 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.453e-05/0.6377, allocations: 24 kB / 0.6815 GB, free: 3.824 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.813e-05/0.6378, allocations: 40.97 kB / 0.6815 GB, free: 3.785 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00107/0.6389, allocations: 0.6166 MB / 0.6821 GB, free: 3.168 MB / 0.5137 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.004774/0.6437, allocations: 3.978 MB / 0.686 GB, free: 14.94 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006149/0.6443, allocations: 351.6 kB / 0.6863 GB, free: 14.59 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003012/0.6446, allocations: 173.3 kB / 0.6865 GB, free: 14.41 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004918/0.6451, allocations: 370 kB / 0.6869 GB, free: 14 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.845e-05/0.6452, allocations: 38.84 kB / 0.6869 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=34): time 2.114e-06/0.6452, allocations: 0 / 0.6869 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of matching and sorting (n=39): time 0.005637/0.6508, allocations: 1.672 MB / 0.6885 GB, free: 12.21 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.871e-05/0.6509, allocations: 136.5 kB / 0.6887 GB, free: 12.05 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007775/0.6517, allocations: 0.6134 MB / 0.6893 GB, free: 11.43 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 5.01e-05/0.6518, allocations: 37.7 kB / 0.6893 GB, free: 11.38 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003124/0.6521, allocations: 371.8 kB / 0.6896 GB, free: 11.02 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001282/0.6522, allocations: 146.8 kB / 0.6898 GB, free: 10.87 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002378/0.6525, allocations: 154.6 kB / 0.6899 GB, free: 10.71 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002074/0.6527, allocations: 378.8 kB / 0.6903 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003636/0.6531, allocations: 205.9 kB / 0.6905 GB, free: 10.14 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000637/0.6537, allocations: 0.5202 MB / 0.691 GB, free: 9.469 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001031/0.6547, allocations: 0.7497 MB / 0.6917 GB, free: 8.582 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.69e-06/0.6547, allocations: 4 kB / 0.6917 GB, free: 8.578 MB / 0.5294 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001508/0.6563, allocations: 0.8768 MB / 0.6926 GB, free: 7.691 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/0.6563, allocations: 15.94 kB / 0.6926 GB, free: 7.676 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.491e-05/0.6563, allocations: 8 kB / 0.6926 GB, free: 7.668 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001391/0.6577, allocations: 312.8 kB / 0.6929 GB, free: 7.359 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003978/0.6581, allocations: 127.8 kB / 0.693 GB, free: 7.234 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001232/0.6594, allocations: 0.9425 MB / 0.694 GB, free: 6.266 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004641/0.6598, allocations: 27.94 kB / 0.694 GB, free: 6.238 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000104/0.66, allocations: 67.98 kB / 0.694 GB, free: 6.172 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0003815/0.6603, allocations: 245.4 kB / 0.6943 GB, free: 5.922 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000131/0.6605, allocations: 71.58 kB / 0.6944 GB, free: 5.852 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001374/0.6619, allocations: 0.6862 MB / 0.695 GB, free: 5.141 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.6619, allocations: 4 kB / 0.695 GB, free: 5.137 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.6619, allocations: 0 / 0.695 GB, free: 5.137 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.6619, allocations: 0 / 0.695 GB, free: 5.137 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002313/0.6642, allocations: 1.622 MB / 0.6966 GB, free: 3.367 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.562e-05/0.6643, allocations: 4 kB / 0.6966 GB, free: 3.363 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001044/0.6653, allocations: 203.8 kB / 0.6968 GB, free: 3.164 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.975e-05/0.6654, allocations: 28.97 kB / 0.6968 GB, free: 3.133 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.977e-05/0.6655, allocations: 19.98 kB / 0.6969 GB, free: 3.113 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002367/0.6678, allocations: 2.873 MB / 0.6997 GB, free: 15.96 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.6678, allocations: 4.031 kB / 0.6997 GB, free: 15.96 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001284/0.6691, allocations: 0.8133 MB / 0.7005 GB, free: 15.11 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002882/0.6694, allocations: 196.6 kB / 0.7006 GB, free: 14.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.489e-05/0.6695, allocations: 11.98 kB / 0.7007 GB, free: 14.89 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003563/0.6699, allocations: 12 kB / 0.7007 GB, free: 14.88 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.67, allocations: 43.95 kB / 0.7007 GB, free: 14.84 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.799e-05/0.6701, allocations: 43.92 kB / 0.7008 GB, free: 14.79 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0005567/0.6707, allocations: 443.1 kB / 0.7012 GB, free: 14.37 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6707, allocations: 0 / 0.7012 GB, free: 14.37 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0009712/0.6716, allocations: 295.7 kB / 0.7015 GB, free: 14.08 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (volume.medium.p,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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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 {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.002407/0.6741, allocations: 1.61 MB / 0.703 GB, free: 12.43 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001212/0.6753, allocations: 0.5624 MB / 0.7036 GB, free: 11.87 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.6753, allocations: 3.938 kB / 0.7036 GB, free: 11.87 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001025/0.6763, allocations: 418.7 kB / 0.704 GB, free: 11.45 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001634/0.678, allocations: 362.5 kB / 0.7043 GB, free: 11.09 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008903/0.6869, allocations: 6.311 MB / 0.7105 GB, free: 4.387 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006016/0.6875, allocations: 0.9339 MB / 0.7114 GB, free: 3.426 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00091/0.6884, allocations: 270 kB / 0.7117 GB, free: 3.16 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004604/0.6889, allocations: 271.3 kB / 0.7119 GB, free: 2.895 MB / 0.545 GB Notification: Performance of SimCode: time 1.382e-06/0.6889, allocations: 0 / 0.7119 GB, free: 2.895 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0626/0.7515, allocations: 25.4 MB / 0.7367 GB, free: 9.461 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.91/13.66, allocations: 15.8 kB / 0.7367 GB, free: 9.445 MB / 0.5762 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Nitrogen.fmu > ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/Nitrogen/Nitrogen.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches