Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Nitrogen",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001583/0.001583, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002034/0.002034, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2196/0.2196, allocations: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 75.3 kB / 417.7 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1182, allocations: 62.45 MB / 480.1 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen): time 0.4188/0.537, allocations: 177.2 MB / 0.642 GB, free: 1.816 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.007752/0.5448, allocations: 5.342 MB / 0.6472 GB, free: 12.46 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007787/0.5457, allocations: 19.88 kB / 0.6472 GB, free: 12.45 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00103/0.5467, allocations: 318 kB / 0.6475 GB, free: 12.13 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004267/0.551, allocations: 1.335 MB / 0.6488 GB, free: 10.8 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003144/0.5542, allocations: 1.064 MB / 0.6499 GB, free: 9.738 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002255/0.5564, allocations: 1.848 MB / 0.6517 GB, free: 7.887 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007986/0.5572, allocations: 462.9 kB / 0.6521 GB, free: 7.426 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002296/0.5596, allocations: 1.082 MB / 0.6532 GB, free: 6.34 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001477/0.5611, allocations: 0.7549 MB / 0.6539 GB, free: 5.582 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002596/0.5613, allocations: 60 kB / 0.654 GB, free: 5.523 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001785/0.5631, allocations: 0.5852 MB / 0.6545 GB, free: 4.938 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004596/0.5636, allocations: 263.3 kB / 0.6548 GB, free: 4.68 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007319/0.5643, allocations: 398.1 kB / 0.6552 GB, free: 4.289 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002235/0.5666, allocations: 1.297 MB / 0.6564 GB, free: 2.988 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.5666, allocations: 0 / 0.6564 GB, free: 2.988 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.5666, allocations: 0 / 0.6564 GB, free: 2.988 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.37e-05/0.5667, allocations: 0 / 0.6564 GB, free: 2.988 MB / 494.1 MB 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.002688/0.5693, allocations: 1.107 MB / 0.6575 GB, free: 1.828 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.5694, allocations: 8.031 kB / 0.6575 GB, free: 1.82 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001798/0.5696, allocations: 98.52 kB / 0.6576 GB, free: 1.715 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009284/0.5705, allocations: 139.6 kB / 0.6577 GB, free: 1.578 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008991/0.5714, allocations: 0.504 MB / 0.6582 GB, free: 1.035 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001145/0.5716, allocations: 100.4 kB / 0.6583 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001099/0.5717, allocations: 51.98 kB / 0.6584 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00133/0.573, allocations: 0.8097 MB / 0.6592 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.182e-05/0.573, allocations: 7.938 kB / 0.6592 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.648e-05/0.5731, allocations: 27.94 kB / 0.6592 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.464e-05/0.5732, allocations: 36.97 kB / 0.6592 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001084/0.5743, allocations: 0.6204 MB / 0.6598 GB, free: 15.3 MB / 0.4981 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.00489/0.5792, allocations: 3.963 MB / 0.6637 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006545/0.5799, allocations: 354 kB / 0.6641 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003023/0.5802, allocations: 177.3 kB / 0.6642 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001354/0.5803, allocations: 93.38 kB / 0.6643 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.344e-05/0.5804, allocations: 38.84 kB / 0.6643 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=34): time 4.889e-06/0.5804, allocations: 0 / 0.6643 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of matching and sorting (n=39): time 0.006222/0.5866, allocations: 1.67 MB / 0.666 GB, free: 8.664 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.144e-05/0.5867, allocations: 136.5 kB / 0.6661 GB, free: 8.5 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008217/0.5875, allocations: 0.6133 MB / 0.6667 GB, free: 7.875 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.025e-05/0.5876, allocations: 33.7 kB / 0.6667 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003405/0.588, allocations: 366.9 kB / 0.6671 GB, free: 7.473 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001414/0.5881, allocations: 150 kB / 0.6672 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002205/0.5884, allocations: 150.5 kB / 0.6674 GB, free: 7.172 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002125/0.5886, allocations: 374.8 kB / 0.6677 GB, free: 6.797 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003763/0.589, allocations: 205.9 kB / 0.6679 GB, free: 6.594 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006354/0.5896, allocations: 0.5125 MB / 0.6684 GB, free: 5.934 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00103/0.5906, allocations: 0.7564 MB / 0.6692 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.5907, allocations: 4 kB / 0.6692 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001537/0.5922, allocations: 0.8834 MB / 0.67 GB, free: 4.141 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.507e-05/0.5922, allocations: 10.5 kB / 0.67 GB, free: 4.133 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.512e-05/0.5923, allocations: 8 kB / 0.6701 GB, free: 4.125 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001394/0.5937, allocations: 317.1 kB / 0.6704 GB, free: 3.812 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004067/0.5941, allocations: 132.6 kB / 0.6705 GB, free: 3.684 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001297/0.5954, allocations: 0.9292 MB / 0.6714 GB, free: 2.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006787/0.5961, allocations: 31.98 kB / 0.6714 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001217/0.5962, allocations: 64.06 kB / 0.6715 GB, free: 2.637 MB / 0.4981 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.0005712/0.5968, allocations: 253.8 kB / 0.6717 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002791/0.5971, allocations: 67.16 kB / 0.6718 GB, free: 2.312 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002231/0.5993, allocations: 0.8577 MB / 0.6726 GB, free: 1.438 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.224e-05/0.5994, allocations: 4 kB / 0.6726 GB, free: 1.434 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.189e-05/0.5994, allocations: 0 / 0.6726 GB, free: 1.434 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.296e-06/0.5994, allocations: 4 kB / 0.6726 GB, free: 1.43 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002766/0.6022, allocations: 1.461 MB / 0.6741 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.653e-06/0.6022, allocations: 4 kB / 0.6741 GB, free: 15.83 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001052/0.6032, allocations: 211.9 kB / 0.6743 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001268/0.6034, allocations: 28.78 kB / 0.6743 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.659e-05/0.6035, allocations: 19.94 kB / 0.6743 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003163/0.6066, allocations: 2.882 MB / 0.6771 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.062e-06/0.6067, allocations: 7.969 kB / 0.6771 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001381/0.608, allocations: 0.8207 MB / 0.6779 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003823/0.6084, allocations: 184.2 kB / 0.6781 GB, free: 11.35 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001618/0.6086, allocations: 15.94 kB / 0.6781 GB, free: 11.33 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004528/0.6091, allocations: 15.98 kB / 0.6781 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.6092, allocations: 47.89 kB / 0.6782 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.092e-05/0.6093, allocations: 39.98 kB / 0.6782 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0005797/0.6099, allocations: 443.1 kB / 0.6786 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.31e-07/0.6099, allocations: 0 / 0.6786 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0009795/0.6108, allocations: 248 kB / 0.6789 GB, free: 10.56 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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.002176/0.613, allocations: 1.568 MB / 0.6804 GB, free: 8.953 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001279/0.6143, allocations: 0.6006 MB / 0.681 GB, free: 8.352 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/0.6143, allocations: 5.562 kB / 0.681 GB, free: 8.348 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001014/0.6154, allocations: 422.7 kB / 0.6814 GB, free: 7.922 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001701/0.6171, allocations: 358.9 kB / 0.6818 GB, free: 7.586 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008922/0.626, allocations: 6.553 MB / 0.6882 GB, free: 0.6328 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000582/0.6266, allocations: 0.9261 MB / 0.6891 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001394/0.628, allocations: 465.9 kB / 0.6895 GB, free: 15.23 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005532/0.6286, allocations: 283.3 kB / 0.6898 GB, free: 14.95 MB / 0.5294 GB Notification: Performance of SimCode: time 6.32e-07/0.6286, allocations: 7.938 kB / 0.6898 GB, free: 14.95 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2412/0.8699, allocations: 24.14 MB / 0.7133 GB, free: 198.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.15/13.02, allocations: 5.156 kB / 0.7134 GB, free: 198.1 MB / 0.5294 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Nitrogen.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/Nitrogen/Nitrogen.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,volume.medium.T,volume.medium.p Variables in the result:time,volume.medium.T,volume.medium.p