Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.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.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",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.001126/0.001126, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.00117/0.00117, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.368/1.368, allocations: 222.9 MB / 242.3 MB, free: 15.21 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.2167/0.2167, allocations: 44.18 MB / 336.6 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001852/0.001852, allocations: 64.62 kB / 408.5 MB, free: 27.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1445/0.1464, allocations: 60.82 MB / 469.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.4274/0.5738, allocations: 177.3 MB / 0.6315 GB, free: 15.39 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.009743/0.5836, allocations: 6.518 MB / 0.6378 GB, free: 8.848 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001013/0.5846, allocations: 19.88 kB / 0.6379 GB, free: 8.828 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001342/0.586, allocations: 405.7 kB / 0.6382 GB, free: 8.43 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00511/0.5912, allocations: 1.746 MB / 0.6399 GB, free: 6.68 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003803/0.595, allocations: 1.488 MB / 0.6414 GB, free: 5.199 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.002993/0.598, allocations: 2.11 MB / 0.6435 GB, free: 3.082 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001278/0.5993, allocations: 0.5413 MB / 0.644 GB, free: 2.539 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003924/0.6032, allocations: 1.702 MB / 0.6456 GB, free: 0.832 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002835/0.6061, allocations: 1.46 MB / 0.6471 GB, free: 15.37 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003346/0.6064, allocations: 79.94 kB / 0.6472 GB, free: 15.29 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00292/0.6094, allocations: 1.372 MB / 0.6485 GB, free: 13.91 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005604/0.6099, allocations: 454.8 kB / 0.6489 GB, free: 13.47 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000949/0.6109, allocations: 0.5562 MB / 0.6495 GB, free: 12.91 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00355/0.6145, allocations: 2.088 MB / 0.6515 GB, free: 10.82 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.6145, allocations: 3.938 kB / 0.6515 GB, free: 10.81 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.6145, allocations: 0 / 0.6515 GB, free: 10.81 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.901e-05/0.6146, allocations: 0 / 0.6515 GB, free: 10.81 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.003624/0.6182, allocations: 1.45 MB / 0.6529 GB, free: 9.312 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.6182, allocations: 8.031 kB / 0.6529 GB, free: 9.305 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001642/0.6184, allocations: 130.7 kB / 0.6531 GB, free: 9.168 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001407/0.6198, allocations: 278.6 kB / 0.6533 GB, free: 8.895 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009393/0.6208, allocations: 0.6129 MB / 0.6539 GB, free: 8.242 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001103/0.6209, allocations: 112.7 kB / 0.654 GB, free: 8.121 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001089/0.621, allocations: 60 kB / 0.6541 GB, free: 8.062 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00175/0.6228, allocations: 1.281 MB / 0.6553 GB, free: 6.711 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.249e-05/0.6228, allocations: 3.938 kB / 0.6553 GB, free: 6.707 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001106/0.6229, allocations: 35.98 kB / 0.6554 GB, free: 6.672 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.49e-05/0.623, allocations: 81.27 kB / 0.6555 GB, free: 6.594 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001521/0.6245, allocations: 1.047 MB / 0.6565 GB, free: 5.547 MB / 494.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.006238/0.6308, allocations: 4.956 MB / 0.6613 GB, free: 300 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004992/0.6313, allocations: 298.6 kB / 0.6616 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002379/0.6315, allocations: 154.5 kB / 0.6618 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.371e-05/0.6317, allocations: 101.2 kB / 0.6618 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.261e-05/0.6317, allocations: 42.5 kB / 0.6619 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=28): time 1.934e-06/0.6317, allocations: 0 / 0.6619 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33): time 0.006048/0.6378, allocations: 1.803 MB / 0.6636 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.741e-05/0.6378, allocations: 140.5 kB / 0.6638 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001028/0.6389, allocations: 0.9427 MB / 0.6647 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.64e-05/0.6389, allocations: 29.7 kB / 0.6647 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000369/0.6393, allocations: 0.5711 MB / 0.6653 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 9.722e-05/0.6394, allocations: 130.3 kB / 0.6654 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002526/0.6397, allocations: 218.6 kB / 0.6656 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001648/0.6398, allocations: 398.7 kB / 0.666 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004285/0.6403, allocations: 278.5 kB / 0.6663 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008189/0.6411, allocations: 0.8639 MB / 0.6671 GB, free: 9.859 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001223/0.6423, allocations: 1.176 MB / 0.6683 GB, free: 8.406 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/0.6424, allocations: 4 kB / 0.6683 GB, free: 8.402 MB / 0.4981 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001865/0.6442, allocations: 1.239 MB / 0.6695 GB, free: 7.152 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/0.6443, allocations: 12 kB / 0.6695 GB, free: 7.141 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.38e-05/0.6443, allocations: 27.98 kB / 0.6695 GB, free: 7.113 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001208/0.6455, allocations: 293.3 kB / 0.6698 GB, free: 6.824 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005431/0.6461, allocations: 203.6 kB / 0.67 GB, free: 6.625 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009693/0.647, allocations: 0.919 MB / 0.6709 GB, free: 5.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006452/0.6477, allocations: 44.06 kB / 0.6709 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.768e-05/0.6478, allocations: 71.98 kB / 0.671 GB, free: 5.566 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * 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 (112): * Single equations (assignments): 111 * 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.000381/0.6482, allocations: 341.2 kB / 0.6713 GB, free: 5.223 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001272/0.6483, allocations: 86.97 kB / 0.6714 GB, free: 5.137 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009667/0.6493, allocations: 0.5202 MB / 0.6719 GB, free: 4.609 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/0.6493, allocations: 4 kB / 0.6719 GB, free: 4.605 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.6493, allocations: 0 / 0.6719 GB, free: 4.605 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.732e-06/0.6493, allocations: 7.922 kB / 0.6719 GB, free: 4.598 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001576/0.6509, allocations: 1.129 MB / 0.673 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.6509, allocations: 0 / 0.673 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009585/0.6519, allocations: 179.8 kB / 0.6732 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.075e-05/0.652, allocations: 36.81 kB / 0.6732 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.87e-05/0.652, allocations: 11.98 kB / 0.6732 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001927/0.6539, allocations: 2.865 MB / 0.676 GB, free: 36 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.654, allocations: 0 / 0.676 GB, free: 36 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001071/0.655, allocations: 0.7069 MB / 0.6767 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002515/0.6553, allocations: 192 kB / 0.6769 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001143/0.6554, allocations: 8 kB / 0.6769 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004017/0.6558, allocations: 19.98 kB / 0.6769 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.51e-05/0.6559, allocations: 23.95 kB / 0.677 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-05/0.6559, allocations: 20.05 kB / 0.677 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0007462/0.6567, allocations: 0.6321 MB / 0.6776 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6567, allocations: 0 / 0.6776 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001332/0.658, allocations: 383.9 kB / 0.678 GB, free: 14.01 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (33): * Single equations (assignments): 31 * 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.003027/0.6611, allocations: 1.8 MB / 0.6797 GB, free: 12.19 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001411/0.6625, allocations: 0.7171 MB / 0.6804 GB, free: 11.47 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.6625, allocations: 7.875 kB / 0.6804 GB, free: 11.46 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0009127/0.6634, allocations: 366.4 kB / 0.6808 GB, free: 11.09 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001975/0.6654, allocations: 426.1 kB / 0.6812 GB, free: 10.69 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01082/0.6763, allocations: 8.573 MB / 0.6896 GB, free: 1.363 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006081/0.6769, allocations: 1.028 MB / 0.6906 GB, free: 312 kB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001178/0.6781, allocations: 390.8 kB / 0.6909 GB, free: 15.92 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004507/0.6785, allocations: 327.2 kB / 0.6912 GB, free: 15.6 MB / 0.5294 GB Notification: Performance of SimCode: time 8.61e-07/0.6786, allocations: 3.938 kB / 0.6913 GB, free: 15.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2978/0.9763, allocations: 30.03 MB / 0.7206 GB, free: 202.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.21/14.19, allocations: 5.812 kB / 0.7206 GB, free: 202.4 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGasFixedComposition/SimpleNaturalGasFixedComposition.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches