Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.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.Air,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air",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.001469/0.001469, allocations: 114.4 kB / 17.78 MB, free: 5.258 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.001934/0.001934, allocations: 183 kB / 18.72 MB, free: 4.332 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.375/1.375, 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.2235/0.2235, allocations: 44.18 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001529/0.001529, allocations: 67.88 kB / 470.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.398/0.3995, allocations: 60.82 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air): time 0.1896/0.5891, allocations: 174.4 MB / 0.6887 GB, free: 13.11 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.00797/0.5971, allocations: 5.33 MB / 0.6939 GB, free: 7.762 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007783/0.598, allocations: 19.88 kB / 0.694 GB, free: 7.742 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001044/0.599, allocations: 314 kB / 0.6942 GB, free: 7.434 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.004709/0.6038, allocations: 1.267 MB / 0.6955 GB, free: 6.168 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.002893/0.6067, allocations: 0.958 MB / 0.6964 GB, free: 5.215 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.002453/0.6092, allocations: 1.852 MB / 0.6982 GB, free: 3.355 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008326/0.61, allocations: 461.3 kB / 0.6987 GB, free: 2.902 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002476/0.6125, allocations: 1.086 MB / 0.6997 GB, free: 1.812 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001114/0.6136, allocations: 0.6539 MB / 0.7004 GB, free: 1.156 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.000191/0.6138, allocations: 67.94 kB / 0.7004 GB, free: 1.09 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001448/0.6153, allocations: 0.6242 MB / 0.701 GB, free: 476 kB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003292/0.6156, allocations: 263.3 kB / 0.7013 GB, free: 212 kB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0005981/0.6162, allocations: 394.3 kB / 0.7017 GB, free: 15.82 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002138/0.6184, allocations: 1.308 MB / 0.7029 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.6184, allocations: 3.938 kB / 0.703 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.074e-06/0.6184, allocations: 0 / 0.703 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.096e-05/0.6184, allocations: 0 / 0.703 GB, free: 14.5 MB / 0.5606 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.002607/0.621, allocations: 1.123 MB / 0.7041 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.6211, allocations: 8.031 kB / 0.7041 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001538/0.6213, allocations: 102.4 kB / 0.7042 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008531/0.6221, allocations: 143.5 kB / 0.7043 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009206/0.623, allocations: 0.5396 MB / 0.7048 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001019/0.6232, allocations: 96.41 kB / 0.7049 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.632e-05/0.6232, allocations: 48 kB / 0.705 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001238/0.6245, allocations: 0.8175 MB / 0.7058 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.357e-05/0.6245, allocations: 7.938 kB / 0.7058 GB, free: 11.44 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.659e-05/0.6246, allocations: 20 kB / 0.7058 GB, free: 11.42 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.002e-05/0.6247, allocations: 44.92 kB / 0.7058 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001108/0.6258, allocations: 0.6243 MB / 0.7064 GB, free: 10.75 MB / 0.5606 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.004871/0.6307, allocations: 3.958 MB / 0.7103 GB, free: 6.531 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005639/0.6312, allocations: 363.6 kB / 0.7106 GB, free: 6.168 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002691/0.6315, allocations: 165.3 kB / 0.7108 GB, free: 6.004 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000115/0.6316, allocations: 97.36 kB / 0.7109 GB, free: 5.891 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.474e-05/0.6317, allocations: 38.84 kB / 0.7109 GB, free: 5.844 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 1.623e-06/0.6317, allocations: 0 / 0.7109 GB, free: 5.844 MB / 0.5606 GB Notification: Performance of matching and sorting (n=39): time 0.005681/0.6374, allocations: 1.681 MB / 0.7126 GB, free: 4.09 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.896e-05/0.6375, allocations: 136.5 kB / 0.7127 GB, free: 3.926 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009268/0.6384, allocations: 0.6134 MB / 0.7133 GB, free: 3.305 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.197e-05/0.6385, allocations: 33.7 kB / 0.7133 GB, free: 3.266 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003197/0.6388, allocations: 371.8 kB / 0.7137 GB, free: 2.898 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001425/0.639, allocations: 146.8 kB / 0.7138 GB, free: 2.754 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002391/0.6392, allocations: 162.6 kB / 0.714 GB, free: 2.59 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0002827/0.6395, allocations: 378.7 kB / 0.7143 GB, free: 2.211 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000384/0.6399, allocations: 209.8 kB / 0.7145 GB, free: 2.008 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000596/0.6405, allocations: 0.5125 MB / 0.715 GB, free: 1.348 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001042/0.6416, allocations: 0.7513 MB / 0.7158 GB, free: 468 kB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.015e-05/0.6416, allocations: 4 kB / 0.7158 GB, free: 464 kB / 0.5606 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.2601/0.9018, allocations: 0.875 MB / 0.7166 GB, free: 189.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.548e-05/0.9018, allocations: 11.59 kB / 0.7167 GB, free: 189.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.7e-05/0.9019, allocations: 9.594 kB / 0.7167 GB, free: 189.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001612/0.9035, allocations: 314.3 kB / 0.717 GB, free: 189.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004309/0.9039, allocations: 122.7 kB / 0.7171 GB, free: 189.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001048/0.905, allocations: 0.9349 MB / 0.718 GB, free: 188.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004981/0.9055, allocations: 26.72 kB / 0.718 GB, free: 188.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.893e-05/0.9056, allocations: 70.28 kB / 0.7181 GB, free: 188.8 MB / 0.5606 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.0003514/0.906, allocations: 245.2 kB / 0.7183 GB, free: 188.7 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001232/0.9061, allocations: 76.61 kB / 0.7184 GB, free: 188.7 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001689/0.9078, allocations: 0.8588 MB / 0.7192 GB, free: 188.4 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.9078, allocations: 6.812 kB / 0.7192 GB, free: 188.4 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.9078, allocations: 2.797 kB / 0.7192 GB, free: 188.4 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.9078, allocations: 2.062 kB / 0.7192 GB, free: 188.4 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002071/0.9099, allocations: 1.462 MB / 0.7207 GB, free: 187.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/0.9099, allocations: 6.828 kB / 0.7207 GB, free: 187.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001102/0.911, allocations: 203.3 kB / 0.7209 GB, free: 187.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.176e-05/0.9111, allocations: 28.73 kB / 0.7209 GB, free: 187.5 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.633e-05/0.9112, allocations: 22.92 kB / 0.7209 GB, free: 187.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001565/0.9128, allocations: 2.876 MB / 0.7237 GB, free: 184.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.9128, allocations: 4.281 kB / 0.7237 GB, free: 184.6 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001273/0.9141, allocations: 0.8365 MB / 0.7245 GB, free: 184.2 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002563/0.9143, allocations: 192.7 kB / 0.7247 GB, free: 184 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.506e-05/0.9144, allocations: 8.922 kB / 0.7247 GB, free: 184 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003751/0.9148, allocations: 20.39 kB / 0.7248 GB, free: 184 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001201/0.9149, allocations: 41.61 kB / 0.7248 GB, free: 184 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.798e-05/0.915, allocations: 43.27 kB / 0.7248 GB, free: 184 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0005491/0.9156, allocations: 440.2 kB / 0.7253 GB, free: 183.8 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9156, allocations: 0.9844 kB / 0.7253 GB, free: 183.8 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0009012/0.9165, allocations: 261.9 kB / 0.7255 GB, free: 183.8 MB / 0.5606 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.002151/0.9186, allocations: 1.549 MB / 0.727 GB, free: 182.8 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001365/0.92, allocations: 0.5568 MB / 0.7276 GB, free: 182.6 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.399e-06/0.92, allocations: 1.125 kB / 0.7276 GB, free: 182.6 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00106/0.9211, allocations: 409.6 kB / 0.728 GB, free: 182.4 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001621/0.9227, allocations: 374 kB / 0.7283 GB, free: 182.4 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007776/0.9305, allocations: 6.353 MB / 0.7345 GB, free: 178.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004051/0.931, allocations: 0.9294 MB / 0.7354 GB, free: 177.5 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001012/0.932, allocations: 464 kB / 0.7359 GB, free: 177.3 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004445/0.9324, allocations: 287.4 kB / 0.7361 GB, free: 177.1 MB / 0.5606 GB Notification: Performance of SimCode: time 7.71e-07/0.9324, allocations: 0 / 0.7361 GB, free: 177.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04679/0.9792, allocations: 24.38 MB / 0.76 GB, free: 156.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.8/13.77, allocations: 13.17 kB / 0.76 GB, free: 156.4 MB / 0.5606 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_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_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/Air/Air.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches